esolang

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

Expected: 1234

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

CommandDoes
pPrint the current cell as a number
a sAdd one; subtract one
iRead a number into the cell
l rMove 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.
Expected: 42
Expected: 9

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

Further

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 dead

Source

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