Languages · Turing tarpits2004
Whirl
Only 0 and 1. 1 rotates the current ring of commands, 0 reverses it, and a second 0 runs the selected command and switches rings.
2004 · esolangs.org
Tested with 2 examples and 3 known programs · Hello World on Try It Online: identical · Test method
Run it
Hello World
Expected output
Hello, World!
Output
What it is
Whirl (esolangs.org/wiki/Whirl, Ruby reference whirl.rb): 1 rotates the ring, 0 reverses it; a second 0 runs its command and switches rings
How its machine works
Its machine has only two symbols, rings of commands.
Examples
Example
Expected output
7
Output
Quirks
- A run stops after 3,000,000 steps.
See also
Turning tarpits
Write your own in Run Convert a program from Whirl
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: whirl.
Command line
shib run whirl -e '0110010000110001100010011001100011110000011100' --input '3 4'shib manual whirlSource
- Module
langs/grid/index.js- Interpreter
langs/grid/whirl.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org