Bytecode compilers and interpreters (Hacker News)
Created on 2020-08-24T05:31:39.256549
- Stack machines are easy to build
- Register machines are faster since they do not waste time shuffling data
- A stack machine can be seen as a register machine with only two registers
- AST machines lose cache locality, bytecode is a flat stream.
- Optimized ASTs exist which are designed to be run.
- https://interpreterbook.com/
- http://craftinginterpreters.com/
- https://compilerbook.com/
- http://www.usenix.org/events/vee05/full_papers/p153-yunhe.pdf
TODO seem like interesting reading; re-link these to cards about the papers once read