Muddle
Meant to be a stack, ended up a tape. Six commands, no input and no loops.
Singingbanana, 2018 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
Singingbanana made Muddle in 2018. The specification says it was meant to be stack based and ended up tape based, was meant to stay unimplemented and was designed while its interpreter was being written. It was also meant to be Turing incomplete on purpose, to study the bounds of computation.
Read the story
The tape holds words. * puts the next word at the end of it, and the pointer picks a cell to print. The pointer wraps around, so on a tape of two cells, cell 2 is cell 0 again. There is no input, no condition and no jump, so every program runs once from left to right and stops.
The machine
| Word | Does |
|---|---|
* word | Put the word, a number or any text, at the end of the tape |
> | Take 1 from the pointer |
< | Add 1 to the pointer |
! | Print the whole tape |
^ | Print the cell under the pointer |
? | Empty the tape |
Commands are separated by spaces. The pointer starts at 0. The specification does not show how a print ends, so each one ends with a line feed, as a Python print does.
Example
In the second one the pointer goes to 2 on a tape of two cells, and wraps back to the first word.
In the second one the pointer goes to 2 on a tape of two cells, and wraps back to the first word.
Further
See also
Also in Turing tarpits
Write your own in Run Convert a program from Muddle
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: muddle.
Command line
shib run muddle -e '* Hello * World! !'shib manual muddleSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/muddle.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org