from Hacker News

I wrote a Brainfuck to Go compiler

by kabirgoel on 6/5/22, 12:09 PM with 22 comments

  • by lifthrasiir on 6/7/22, 6:29 AM

    Meanwhile, a Go to Brainfuck compiler remains uncharted territory.

    (If you are genuinely curious, there is already a BASIC-to-Brainfuck compiler [1] and a C-to-Brainfuck compiler [2].)

    [1] https://esolangs.org/wiki/BFBASIC

    [2] https://esolangs.org/wiki/C2BF (and I think I've seen at least two more)

  • by stevekemp on 6/7/22, 7:47 AM

    Related to this I used go to compile brainfuck to x86 assembly:

    https://github.com/skx/bfcc

    That was a fun project I challenged myself to complete in a weekend.

  • by AdvicePlz on 6/7/22, 5:27 AM

    I might be wrong, but is this not a transpiler instead of a compiler?
  • by Hnrobert42 on 6/7/22, 10:21 AM

    I can never take Brainfuck seriously because it has such a juvenile name.