‹ BackHN Continuity

Thread

I wrote a ray tracer in Brainfuck

94 points · 21 comments · epestr

  1. extraduder_ire · · focus · HN ↗
    There have been some other attempts to build compilers that output brainfuck.

    This one supports some LLVM IR instructions: <a href="https:&#x2F;&#x2F;github.com&#x2F;caozhanhao&#x2F;llvm-brainfuck" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;caozhanhao&#x2F;llvm-brainfuck

    There&#x27;s a list of others here, with asm2bf seeming the most complete: <a href="https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;Brainfuck_code_generation" rel="nofollow">https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;Brainfuck_code_generation

    1. epestr · · focus · HN ↗
      The operations generated for the DSL does cover most of the assembly instructions present in asm2bf on insoection. And goes further by supporting some math.h values by hardcoding them and making them more optimal.

      Though the important distinction here is instructions there seem to be for integer types as the base and mine uses fixed point arithmetic by default.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.