esolang

PopFuck

Brainfuck with the loops, the input and the way back taken out. What is left counts up and prints.

Mihai Popa, 2024 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: Hello, world!

The idea

Mihai Popa made PopFuck in 2024 as a smaller and, in the specification's own words, crappier version of brainfuck. Three commands add 1, 5 or 10 to the current cell, and the fourth prints the cell as a character and moves on to a new one. Nothing moves back, nothing repeats and nothing is read, so a program is a list of character codes written out in tens and ones.

The machine

CommandDoes
+Add 1 to the cell
5Add 5
0Add 10
>Print the cell as a character, then move to the next cell

Every other character is a comment. Each new cell starts at 0. The specification does not say how big a cell is; it is a byte, as in brainfuck.

Example

H is 72, seven tens and two ones.

H is 72, seven tens and two ones. , is 44 and the space is 32.

The specification calls this one its XKCD random number. 52 is the code of the digit 4.

Expected: 4

Patterns it teaches

Further

PopFuck builds on Brainfuck.

Brainfuck derivatives

Cell-based

Write your own in Run Convert a program from PopFuck

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run popfuck -e '00000++>'
shib manual popfuck

Source

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

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

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