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
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
| Word | Does |
|---|---|
NXT LST | Move right; move left |
PLS MNS | Add 1; take 1 |
PFV MFV PTN MTN | Add or take 5; add or take 10 |
MLT DIV POW | Cell 0 times, divided by, or to the power of cell 1, into the current cell |
OUT PUT | Print the current cell as a character; as a number |
OUTU PUTU | The same for cell 0 |
MOV | Copy the cell whose number the current cell holds |
GTO | Move to the cell whose number the current cell holds |
OCL GCL | Print the pointer; store it in the current cell |
CLR CLRU NOP | Clear the current cell; clear cell 0; nothing |
CBGN[ ... ]CEND | Loop 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.
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
See also
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-pulseSource
- 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