Odasjoi
Six commands typed by smashing the keyboard, one accumulator, and a loop that forgets.
None1, 2023 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
None1 made Odasjoi in 2023. Its name and all six of its commands come from smashing random keys. esolangs.org files it under unusable for programming.
The machine
One accumulator holds a signed integer of any size and starts at 0. Commands go one to a line, in any case.
| Command | Does |
|---|---|
fowdif | Add 1 |
wekeww | Take 1 away |
woiejd | Read a decimal number from a line of input |
doqije | Print the accumulator in decimal |
iwejdo | Halt if the accumulator is 0 |
oweijw | Run the commands after it forever |
The Python interpreter in the specification runs a loop by calling itself on the rest of the program, with the accumulator as it was at oweijw. So every round starts from the same number. A loop that reads no input does the same in every round, so it halts in its first round or never.
Example
The first is the random number, chosen by four increments.
The first is the random number, chosen by four increments. The second is its truth machine. On 0 it halts at iwejdo; on 1 it prints 1 forever. The last reads numbers and prints them until it reads a 0.
Further
See also
Also in Jokes
Write your own in Run Convert a program from Odasjoi
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: odasjoi.
Command line
shib run odasjoi -e 'woiejd
doqije
iwejdo
oweijw
doqije' --input '0'shib manual odasjoiSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/odasjoi.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org