esolang

Duocentehexaquinquagesimal

Brainfuck as one number, written in the digits of a golfing language.

Makonede, 2021 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 4 known programs · Test method

Run it

Expected: cat

The idea

Makonede made Duocentehexaquinquagesimal in 2021, as the next link in a chain. Unary writes a brainfuck program as a count of zeros, and Golunar writes that count in decimal. Duocentehexaquinquagesimal writes it as a compressed integer of 05AB1E, a golfing language with 256 characters in its code page.

Read the story

The name means 256, but the specification's interpreter puts the code between two of 05AB1E's • and its generator writes base 255. A compressed integer cannot hold the • that closes it, so it has 255 digits, and the examples are written in base 255.

The machine

  1. Read the program as a number in base 255. The digits are 0 to 9, A to Z, a to z, and then the rest of 05AB1E's code page in its order, without •.
  2. Write the number in binary and drop the first 1.
  3. Every three bits are a brainfuck command.
Bits000001010011100101110111
Brainfuck><+-.,[]

The brainfuck runs as Try It Online runs it. Cells hold 8 bits and wrap, the tape grows both ways, and the end of the input reads 0.

Example

The cat is ,[.,], which is 56,623 in Golunar.

The cat is ,[.,], which is 56,623 in Golunar. In base 255 that is 222 × 255 + 13, and the digits 222 and 13 are ß and D.

Expected: Hello, World!

The Hello World is 28 digits. Inside is a 72 command brainfuck program that needs cells that wrap.

The reverse cat ;&Oo is ,[>,]<[.<]. The adder 3Σª;â is ,>,[<+>-]<., which adds two bytes. The digits 0 and 1 are 48 and 49, and 97 is a.

Expected: cba
Expected: a

Patterns it teaches

Further

Duocentehexaquinquagesimal builds on Brainfuck.

Brainfuck equivalents

Brainfuck derivatives

Write your own in Run Convert a program from Duocentehexaquinquagesimal

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: duocentehexaquinquagesimal.

Command line

shib run duocentehexaquinquagesimal -e 'ßD' --input 'cat'
shib manual duocentehexaquinquagesimal

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/duocentehexaquinquagesimal.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org