Dead
Six letters on a tape of whole numbers, and no way to go back.
Ilaylevy, 2021 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Ilaylevy designed Dead in 2021. A program is a row of single letters that work on a tape of integers. The cells have no bound in size or sign, and the tape goes on in both directions. There is no loop and no jump, so a program runs once from left to right and stops. esolangs.org files it as total and unusable for programming.
The machine
| Command | Does |
|---|---|
p | Print the current cell as a number |
a s | Add one; subtract one |
i | Read a number into the cell |
l r | Move left; move right |
Numbers print with nothing between them, as the counter prints 1234. Every other character does nothing, and i gives 0 when the input has no number left.
Example
The counter adds one and prints, four times.
The counter adds one and prints, four times. The cat reads one number and prints it. A program can print at most one number per letter, so a run is never longer than its source.
Patterns it teaches
- Turing completeness: without a jump a language cannot even count to a number it reads.
Further
See also
Cell-based
Write your own in Run Convert a program from Dead
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: dead.
Command line
shib run dead -e 'ip' --input '42'shib manual deadSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/dead.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org