Deadman
Deadfish written in smileys, card suits and bullets, with an accumulator that can hold text.
Win7HE, 2025 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Win7HE made Deadman in 2025 as an evil version of Deadfish. The four Deadfish commands become ☺ ☻ ♥ ♦, and six more symbols are added. The accumulator can hold text as well as a number, so ♦ can print a word, and ○ builds text five characters at a time. ♠ jumps to the position the accumulator holds, which makes loops possible.
Read the story
Deadfish resets its accumulator at 256 and at -1. Deadman does not.
The machine
| Symbol | Does |
|---|---|
☺ ☻ | Add 1; take 1 away |
♥ ♣ | Square; double |
♦ | Output the accumulator |
• | Empty the accumulator |
◘ | Set it to a line of input |
○ | Append the next five characters and skip them |
◙ | Compare with the next three characters; skip ten more if they differ |
♠ | Jump to the position in the accumulator, counted from 0 |
The accumulator starts at 0, so text needs a • first. The interpreter is a Scratch project that is not in the specification. Text that is not a number counts as 0, as in Scratch, and each output gets its own line. The truth machine depends on details of that project the specification does not give.
Example
The XKCD random number adds 1 twice and squares.
The XKCD random number adds 1 twice and squares.
The Hello world builds its text in three pieces of five. The last piece is ld! and two dots, so the dots are printed too.
Patterns it teaches
- Counter machines: one accumulator, and a jump to the number it holds.
Further
See also
Deadman builds on Deadfish~.
Accumulator-based
Deadfish derivatives
Write your own in Run Convert a program from Deadman
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: deadman.
Command line
shib run deadman -e '•◘♦' --input 'hi'shib manual deadmanSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/deadman.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org