A Fast Bytecode VM for Arithmetic: The Compiler

(abhinavsarkar.net)

69 points | by abhin4v 3 days ago

3 comments

  • cmontella 14 hours ago

    Super cool! I just happened to write one of these last week, I posted it here if anyone wants to take a look at another implementation: https://github.com/mech-lang/mech/releases/tag/v0.2.58-beta

    The code is here: https://github.com/mech-lang/mech/tree/main/src/core/src/pro...

    • pm 10 hours ago

      Cool project!

      This article is yet another reminder I need to learn Haskell (I've been meaning to for a decade), although the code from this article is approachable considering the topic. However, I've just started using Rust for professional projects, so the code you've posted is a bit easier to read, if more verbose, though the concepts are still unfamiliar to me.

      I'm assuming this isn't your first go at writing a compiler?

    • SchwKatze 6 hours ago

      VM based interpreters is one of my most loved topics in CS, it's freaking simple but so powerful