I'm looking for small VMs like this to run sandboxed experiments and test just-in-time (JIT) compilers so that I can explore things like converting abstract syntax trees (AST) between languages and prefix/infix/postfix notation, if anyone has any favorites.
Bonus points for supporting advanced concepts like atomic operations for concurrency.
3 comments
[ 9.4 ms ] story [ 22.1 ms ] threadhttps://www.andreinc.net/2021/12/01/writing-a-simple-vm-in-l...
Discussion:
https://news.ycombinator.com/item?id=29492183
I'm looking for small VMs like this to run sandboxed experiments and test just-in-time (JIT) compilers so that I can explore things like converting abstract syntax trees (AST) between languages and prefix/infix/postfix notation, if anyone has any favorites.
Bonus points for supporting advanced concepts like atomic operations for concurrency.
Reminds me of the web layout of https://craftinginterpreters.com/a-virtual-machine.html