PoeticFuck
Poetic's ten digits as ten symbols, which makes it brainfuck with a random byte and an end.
None1, 2024 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
None1 made PoeticFuck in 2024 to write Poetic the way brainfuck is written. Each of Poetic's digits gets a symbol. Poetic's counted + and - become runs of single steps, so 35 in Poetic is +++++.
Read the story
Without ; and ? it would be brainfuck on a wrapping tape of 30,000 bytes.
The machine
| Symbol | Poetic digit | Does |
|---|---|---|
; | 0 | End |
[ ] | 1 2 | Loop as in brainfuck |
+ - | 3 4 | Change the byte by 1 |
> < | 5 6 | Move the pointer by 1 |
. , | 7 8 | Print, read |
? | 9 | A random byte |
Bytes and the pointer wrap. At the end of input , leaves the byte as it was.
Example
The cat clears each byte before it reads the next.
The cat clears each byte before it reads the next. That way the loop ends at the end of input, when , leaves the cleared 0 in place.
Patterns it teaches
- Turing tarpit: brainfuck's commands with two more.
- Nondeterminism:
?is a random byte. It comes from a fixed seed, so a run replays.
Further
See also
PoeticFuck builds on Brainfuck.
Brainfuck derivatives
Write your own in Run Convert a program from PoeticFuck
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: poeticfuck.
Command line
shib run poeticfuck -e ',[.[-],];' --input 'cat'shib manual poeticfuckSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/poeticfuck.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org