Wizzcake
Every word is a command, gibberish or not. The sine of its hash decides which.
RainbowDash, 2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
RainbowDash made Wizzcake in 2024. It has one register, one stack and seven commands, but no way to name them. Each word of the text is hashed, and the sine of the hash decides how many commands the word runs, one to six, and which ones. So any text is a program, and nobody can plan one without the interpreter at hand.
Read the story
The specification says the program Hello world does not print Hello world. It prints the number -2887711, and then the word world prints a NUL on a line of its own.
The machine
The interpreter on the specification picks a number from 1 to 9 for each round of a word.
| Pick | Does |
|---|---|
| 2 | Print the stack joined by spaces, then empty it |
| 3 | Set the register to a number made from the sine |
| 4 | Push the register, then set it to 0 |
| 5 | Subtract such a number from the register |
| 6 | Clear the register |
| 7 | Clear the stack |
| 8 | Print each item as a character, its code the item times 0.0149878, then empty the stack |
Picks 1 and 9 do nothing. A command that added a number to the register was taken out, because fixing a bug in it would have changed older programs. The specification lists words found to be useful. Foxy pops the stack, Sus pushes the register and prints it as a character, and I clears both.
Example
Each i a fault among prints a row of five zeros, so five of them print the 5 by 5 square.
Each i a fault among prints a row of five zeros, so five of them print the 5 by 5 square.
The word baka takes 4,889,132 from the register, and sus prints it as a character. Salpynx's script on its article finds that 83,845 words baka before sus print ඞ. That program is included too, and runs in 251,538 steps.
Further
Ideas it shows
See also
Stack-based
Write your own in Run Convert a program from Wizzcake
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: wizzcake.
Command line
shib run wizzcake -e 'Sus'shib manual wizzcakeSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/wizzcake.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org