esolang

Anti-Plushie language DIY

Deadfish, with a list of numbers it refuses to hold.

None1, 2025 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: 256

The idea

None1 made the Anti-Plushie language DIY in 2025. Underneath it is Deadfish, four commands on one number. On top a program may forbid numbers. A line x "message" forbids x, and the moment the number becomes x the message is printed and the run ends.

Read the story

The specification calls each list of restrictions an interpreter, because it makes a new language. Its examples are the Anti-Plushie language, which refuses 2, 3, 4 and 31 with rude messages, Deadfish that cannot store 1, and Deadfish on C major, which refuses -1. In the Anti-Plushie language a program can only get past 2 by going down to -3 or lower and squaring. The smallest number it reaches that way is 9.

The machine

LineDoes
x "message"Forbid the whole number x
one wordRun its characters as Deadfish commands
anything elseNothing
CommandDoes
i dAdd 1, subtract 1
sSquare
oPrint the number and a line feed

The number starts at 0 and has no bounds. The specification's Python implementation never resets 256 or -1 to 0, as Deadfish does, and this implementation follows it. That is what lets a program count below -1, which the Anti-Plushie language needs to get past 2.

The implementation reads every line from standard input, restrictions and commands alike. In this implementation the program's lines come first and the input's lines after them. So a set of restrictions from the specification can be given a program to run as its input.

Example

The first squares 2 three times and prints 256, where Deadfish would print 0.
Expected: 1 Error: The value must be a natural number.
Expected: 4 Sixteen is too many.

The first squares 2 three times and prints 256, where Deadfish would print 0. The second is the Deadfish on C major. Its input prints 1 and then counts down past 0. The third forbids 16 itself, so the second s ends the run.

Patterns it teaches

  • Every text runs: a line that is neither a restriction nor a word is ignored.
  • Hostile design: the program decides which numbers the language refuses.

Further

Anti-Plushie language DIY builds on Deadfish~.

Meta-languages

Deadfish derivatives

Write your own in Run Convert a program from Anti-Plushie language DIY

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: anti-plushie-language-diy.

Command line

shib run anti-plushie-language-diy -e '1 "You can'\''t store 1"' --input 'iiso'
shib manual anti-plushie-language-diy

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/anti-plushie-language-diy.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org