We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
-2
-2 is an esoteric programming language made by User:Dragoneater67 in 2026. It partially inspired by six seven and was made to force Esofish implementors to implement floating point number esolangs.
Overview
The program is a tab-separated sequence of instructions executed right-to-left in an implicit infinite loop. There is a queue of arbitrary precision floating point numbers. Dequeueing an empty queue results in halting.
| Instruction | Description |
|---|---|
| number | Enqueue number, it is represented in decimal with . as the floating point.
|
| o | Dequeue a number and output it. |
| x | Dequeue a number and execute the rest of the program as the esolang with the name equal to the number. |
| {code} | Dequeue a number and run code if it is an integer. |
Examples
XKCD Random Number
0.1 {o} 4.0 1.0
Computational class
-2 is Turing-complete even without the x as Cyclic tag system can be translated into it. First we should start a program with 1 0.1 , then encode productions starting from the last:
{is appended, production is translated in reverse, each0becomes0.1 0.1 0.1and each 1 becomes1 0.1 0.1, then} { { } { } } { }is appended.- After the first production is translated (which is put in the end)
{is put, then we put initial data queue in reverse, encoded in the same way productions are, then} 1is appended.