esolang

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

Expected: Hello World!

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

SymbolPoetic digitDoes
;0End
[ ]1 2Loop as in brainfuck
+ -3 4Change the byte by 1
> <5 6Move the pointer by 1
. ,7 8Print, read
?9A 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.
Expected: cat
Expected: desserts

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

Further

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 poeticfuck

Source

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