Anti-Plushie language
Deadfish that swears at you and quits when the number gets to 2, 3, 4 or 31.
None1, 2023 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 6 known programs · Test method
Run it
The idea
None1 made the Anti-Plushie language in 2023 to be plushie incomplete. It is Deadfish, four commands on one number, with four numbers it refuses to hold. The moment a command would make the number one of them, a message is printed instead and the run ends.
Read the story
Counting up from 0 is over after two steps. The only way past 2, 3 and 4 is to go below zero and square. -3 squared gives 9, and from there a program can count down to 5 or up to 30.
The machine
| Command | Does |
|---|---|
i d | Add 1, subtract 1 |
s | Square |
o | Print the number and a line feed |
| Number | Message |
|---|---|
| 2 | Oh shit!!! |
| 3 | Fuck you! |
| 4 | Fuck off! |
| 31 | Cut it out! |
The number starts at 0 and has no bounds. Deadfish resets 256 and -1 to 0, but the specification's examples need an unbounded number, and its Python implementation leaves it unbounded by default. That implementation swaps the messages for 2 and 3; this implementation keeps the rules and the example ii.
Example
The second goes down to -5, squares to 25 and counts up to 31.
The second goes down to -5, squares to 25 and counts up to 31. The specification gives the third as its way to print Fuck you!, but counting down from 9 reaches 4 before it reaches 3.
Patterns it teaches
- Hostile design: the language refuses the numbers a program needs first.
See also
Anti-Plushie language builds on Deadfish~.
Deadfish derivatives
Write your own in Run Convert a program from Anti-Plushie language
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: anti-plushie-language.
Command line
shib run anti-plushie-language -e 'ii'shib manual anti-plushie-languageSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/anti-plushie-language.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org