esolang

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

Expected: 9

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

CommandDoes
i dAdd 1, subtract 1
sSquare
oPrint the number and a line feed
NumberMessage
2Oh shit!!!
3Fuck you!
4Fuck off!
31Cut 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.
Expected: Cut it out!
Expected: Fuck off!

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.

Further

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-language

Source

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