Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2025 (3)
20082026
  1. > 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…
  2. The explanation document is interesting: https://github.com/camel-cdr/bfcpp/blob/main/TUTORIAL.md
  3. ▲ 45
    Optimizing Brainfuck interpreter in the C preprocessor
    story by namanyayg · 2025-03-20 · 12 comments
  4. …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:…
  5. ▲ 3
    Show HN: Optimizing brainfuck interpreter using only the C preprocessor
    story by camel-cdr · 2021-12-04 · 4 comments