camel-cdr/bfcpp
View on GitHub ↗ ★ 69 C
Optimizing Brainfuck interpreter in the C preprocessor
5 mentions on Hacker News by 4 people: 2 stories, 3 comments · first 2021-12-04 · latest 2025-03-23
20082026
-
> https://github.com/camel-cdr/bfcpp/blob/main/TUTORIAL.md#32-... > loops like [-], [>] and [<] could even be completely reduced to a single operation. This has got me wondering if it would make sense to pre-process the BF programs I've…
comment by bob1029 · 2025-03-23 · in Optimizing Brainfuck interpreter in the C preprocessor -
The explanation document is interesting: https://github.com/camel-cdr/bfcpp/blob/main/TUTORIAL.md
comment by jenadine · 2025-03-23 · in Optimizing Brainfuck interpreter in the C preprocessor -
…in how this works I've written a bit of a tutorial, where I try to explain the code base: https://github.com/camel-cdr/bfcpp/blob/main/TUTORIAL.md Also, if you want to play around with this online, here is the code in godbolt:…
comment by camel-cdr · 2021-12-04 · in Show HN: Optimizing brainfuck interpreter using only the C preprocessor