A Fast Bytecode VM for Arithmetic: The Compiler
In this series of posts, we write a fast bytecode compiler and a virtual machine for arithmetic in Haskell. We explore the following topics:
Parsing arithmetic expressions to Abstract Syntax Trees (ASTs).
Unit testing for our parser.
Interpreting ASTs.
Compiling ASTs to bytecode.
Disassembling and decompiling bytecode.
Unit testing for our compiler.
Property-based testing for our compiler.
Efficiently executing bytecode in a virtual machine (VM).
Unit testing and property-based testing for our V...
Read more at abhinavsarkar.net