Fun Translations
Login
Fun Translations
Toggle sidebar
Runs 100% in your browser · No server execution

Deadfish Interpreter

A minimalist language with one accumulator and four commands: increment, decrement, square, and output. Jonathan Todd Skinner , 2006

(output will appear here)

Log in or register to save and load your programs and unlock access to more esolangs.

About Deadfish

Deadfish was created by Jonathan Todd Skinner in 2006. It has exactly four commands — i (increment), d (decrement), s (square), and o (output) — operating on a single integer accumulator that starts at zero. If the accumulator ever reaches −1 or 256, it silently resets to zero. Every other character in the source is ignored.

The name is a joke: the language is so limited it is essentially dead in the water. Yet it is surprisingly interesting to write programs for, because reaching a particular target number requires careful sequencing of squaring operations to avoid the reset traps. The example below computes 6² + 6 = 42 and prints it.

← All languages in Esolang Studio