nameless language
Brainfuck written as four-bit binary words, with five extra commands in the spare codes.
2012 · Turing complete: yes · ●●○ moderate · esolangs.org
Tested with 3 known programs · Hello World on Try It Online: identical · Test method
Run it
The idea
The nameless language came from the Nameless Wiki in 2012. A program looks like a binary dump, where every command is four digits of 0 and 1. The eight brainfuck commands take the codes 0 to 7. Five of the eight codes left over get new jobs. 1000 and 1001 add or subtract the next word as a number, so 1000 1111 adds 15 at once. 1010 flips a coin, 1011 clears the cell, and 1100 sends the pointer home.
The machine
A tape of 30,000 byte cells that wrap at 256, and a pointer at cell 0. The tape wraps at both ends; the specification says so for the left one.
| Word | Does |
|---|---|
0000 0001 | > < |
0010 0011 | + - |
0100 0101 | . , |
0110 0111 | [ ] |
1000 w | Add the word w (0 to 15) |
1001 w | Subtract the word w |
1010 | Cell becomes 0 or 1 at random |
1011 | Cell becomes 0 |
1100 | Pointer back to cell 0 |
Every character other than 0 and 1 is a comment, so spaces between words are fine. The coin comes from a fixed seed, so runs replay. Reading past the end of the input gives 0.
Example
The first adds 15 four times and then 5, which is 65, A.
The first adds 15 four times and then 5, which is 65, A. The second is a cat. It reads five letters into five cells, jumps home with 1100, and prints them.
Patterns it teaches
- Encoding tricks: a fixed word size turns the spare codes into an instruction set with room for arguments.
- Turing tarpit: brainfuck inside, so it is complete.
Further
See also
nameless language builds on Brainfuck.
Brainfuck derivatives
Write your own in Run Convert a program from nameless language
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: nameless.
Command line
shib run nameless -e '1000 1111 1000 1111 1000 1111 1000 1111 1000 0101 0100'shib manual namelessSource
- Module
langs/tio/ports.js- Interpreter
langs/tio/nameless.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org