esolang

F-PULSE

Brainfuck spelled out in three-letter words, with a few shortcuts and no input at all.

2015 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: Hello World!

The idea

F-PULSE was made in 2015 with an interpreter in PHP. It keeps brainfuck's tape and loops but writes every command as a word, the way assembly does, and leaves out input. On top of brainfuck it adds steps of 5 and 10, arithmetic on the first two cells, printing numbers, and moving the pointer to a cell by its number.

The machine

WordDoes
NXT LSTMove right; move left
PLS MNSAdd 1; take 1
PFV MFV PTN MTNAdd or take 5; add or take 10
MLT DIV POWCell 0 times, divided by, or to the power of cell 1, into the current cell
OUT PUTPrint the current cell as a character; as a number
OUTU PUTUThe same for cell 0
MOVCopy the cell whose number the current cell holds
GTOMove to the cell whose number the current cell holds
OCL GCLPrint the pointer; store it in the current cell
CLR CLRU NOPClear the current cell; clear cell 0; nothing
CBGN[ ... ]CENDLoop while the current cell is not 0

Cells are numbered from 0. In this implementation they hold whole numbers without wrapping, and DIV keeps the whole part.

Example

The Hello world fills three cells with 70, 100 and 30 in one loop of ten and then nudges them.

The Hello world fills three cells with 70, 100 and 30 in one loop of ten and then nudges them.

The two small examples. The first divides 10 by 2 into cell 2. The second stands on cell 1, which holds 0, and GTO moves it to cell 0.

Expected: 5
Expected: 2
Expected: 1024

The 99 bottles of beer is 3,490 words of plain brainfuck and runs as written, typo and all. Every verse says to pass it fround.

Patterns it teaches

  • Turing tarpit: brainfuck under longer names, with a few conveniences.

Further

F-PULSE builds on Brainfuck.

Brainfuck derivatives

Write your own in Run Convert a program from F-PULSE

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: f-pulse.

Command line

shib run f-pulse -e 'PLS PLS NXT GTO PUT'
shib manual f-pulse

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/f-pulse.js

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

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