A Fast Bytecode VM for Arithmetic: The Compiler(abhinavsarkar.net)
abhinavsarkar.net
A Fast Bytecode VM for Arithmetic: The Compiler
https://abhinavsarkar.net/posts/arithmetic-bytecode-vm-compiler/
3 comments
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?
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?
Glad someone found it useful! It's at least represents a more fleshed out working example, and it's in a little module so it's pretty self-contained and easy to read through.
> I'm assuming this isn't your first go at writing a compiler?
Not quite, the first real language I worked on was called Eve: https://witheve.com
> I'm assuming this isn't your first go at writing a compiler?
Not quite, the first real language I worked on was called Eve: https://witheve.com
VM based interpreters is one of my most loved topics in CS, it's freaking simple but so powerful
[deleted]
The code is here: https://github.com/mech-lang/mech/tree/main/src/core/src/pro...