HexHive/printbf
View on GitHub ↗ ★ 697 Brainfuck
Brainfuck interpreter inside printf
14 mentions on Hacker News by 14 people: 7 stories, 7 comments · first 2015-12-28 · latest 2025-01-07
20082026
-
…that printf() is Turing complete and wrote a first person shooter in 13kB of Javascript. https://github.com/HexHive/printbf https://github.com/carlini/js13k2019-yet-another-doom-clone
comment by basementcat · 2025-01-07 · in A minimax chess engine in regular expressions -
…and an obfuscated tic-tac-toe with it. [0]: https://nebelwelt.net/publications/files/15SEC.pdf [1]: https://github.com/HexHive/printbf [2]: https://github.com/carlini/printf-tac-toe
comment by thaliaarchi · 2023-07-01 · in Lesser known tricks, quirks and features of C -
That code is wrapped in a loop - https://github.com/HexHive/printbf/blob/master/src/pbf_pre.c...
comment by moonchild · 2021-01-09 · in Best of show – abuse of libc -
…this. [0] That printf allows for this kind of Turing complete control flow is well known [1]. [0] https://github.com/HexHive/printbf [1] http://nebelwelt.net/publications/files/15SEC.pdf
comment by shakna · 2021-01-09 · in Best of show – abuse of libc -
https://github.com/HexHive/printbf well this is a brainfuck interpreter inside printf. I’m pretty sure there are plenty of c-to-bf transpilers.
comment by hahajk · 2021-01-08 · in Best of show – abuse of libc -
▲ 4
Printbf – Brainfuck Interpreter in Printfstory by pcr910303 · 2019-12-04 · 1 comment
-
▲ 1
A printf based Brainfuck Interpreter (2017)story by genuinebyte · 2019-04-19 · 0 comments
-
https://github.com/HexHive/printbf/blob/master/src/pbf_pre.c...
comment by Sir_Cmpwn · 2017-12-21 · in A Brainfuck interpreter inside a single printf statement -
▲ 82
A Brainfuck interpreter inside a single printf statementstory by Cieplak · 2017-12-20 · 20 comments
-
Reminds me of the turing complete interpreter lurking in libc's printf. https://github.com/HexHive/printbf
comment by peterwaller · 2016-12-31 · in Be Careful with Python's New-Style String Format -
▲ 3
Brainfuck interpreter inside printfstory by vanni · 2016-12-16 · 0 comments
-
▲ 1
Printbf – Brainfuck interpreter in printfstory by hanumantmk · 2016-12-15 · 0 comments
-
▲ 1
Brainfuck interpreter inside printfstory by jaybosamiya · 2016-12-14 · 0 comments
-
▲ 2
Printf is Turing-complete (repo from 32C3 talk)story by ojno · 2015-12-28 · 1 comment