EasyFlakes
Brainfuck with its characters spelt out as words, which makes it longer and only a little easier.
2023 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
EasyFlakes is from 2023. The specification calls it a derivative of Branflakes that is easyish. Each brainfuck character becomes a word, and a loop becomes bracket( and ) around the words it repeats. The Hello World takes 66 words, and the specification notes that it takes this much even to write a simple hello world.
The machine
| Word | Brainfuck | Does |
|---|---|---|
right left | > < | Move the pointer |
up down | + - | Add or take 1 |
output input | . , | Print or read a character |
bracket( ... ) | [ ... ] | Repeat while the cell is not 0 |
Cells hold 0 to 255 and wrap. The Hello World walks five cells left of where it starts, so the tape runs both ways. Reading past the end of the input gives 0.
Example
The Hello World is the brainfuck program…
The Hello World is the brainfuck program +[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+. word for word. It needs cells that wrap.
The truth machine prints what it reads, then takes 2 away until the cell is 0. A 0 gets there after 24 rounds. A 1 never does, so after 256 rounds a counter beside it wraps to 0 and an inner loop prints 1 for ever.
The cat, up bracket(input output), stops on a null input after it has printed it.
Patterns it teaches
- Turing tarpit: brainfuck's eight commands, spelt out.
Further
See also
EasyFlakes builds on Brainfuck.
Brainfuck equivalents
Write your own in Run Convert a program from EasyFlakes
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: easyflakes.
Command line
shib run easyflakes -e 'up bracket(input output)' --input 'cat '