esolang

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

Expected: A

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.

WordDoes
0000 0001> <
0010 0011+ -
0100 0101. ,
0110 0111[ ]
1000 wAdd the word w (0 to 15)
1001 wSubtract the word w
1010Cell becomes 0 or 1 at random
1011Cell becomes 0
1100Pointer 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.
Expected: hello

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

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 nameless

Source

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