We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Numeralfuck

From Esolang
Jump to navigation Jump to search

Numeralfuck is a brainfuck derivative where the program is a single long number made by User:Mutasimos in 2026.

Translation into normal brainfuck

The program has two parts: a length, and the program itself. The length determines how many instructions we have. The program is first converted to binary (we read 3 * length bits). We read 3 most significant bits (0-pad if needed), convert them using the table given, and repeat until we have exhausted the list of bits. While reading a number a character that isn't a digit will be ignored.

Binary Command
0b000 +
0b001 -
0b010 <
0b011 >
0b100 .
0b101 ,
0b110 [
0b111 ]

Examples

The examples are translated from regular brainfuck by Python.

Hello world!

122,139437237616026088383464502677005420925596503029562
37927748470888367497133355359909137471280365013196

The binary it produces is quite long. The corresponding brainfuck program:

+++++++++++[>++++++>+++++++++>++++++++>++++>+++>+<<<<<<-]>+++
+++.>++.+++++++..+++.>>.>-.<<-.<.+++.------.--------.>>>+.>-.

Cat program

5,23855

This in binary is `101 110 100 101 111` which turns into `,[.,]`