Ask HN: What's a good tutorial for writing a stack-based virtual machine?
Eventually I'd like to write my own language like Lua (but stack-based), mostly for fun and partly for practice. But I don't fully understand a lot of aspects of how a virtual machine like that works. Can you recommend a good tutorial on it? Thanks!
(
3 comments
| 3 points
| on HN
)
Brodie's 'Staring Forth' would be a good point to branch out from. It's fun and it will maybe give you a new perspective on programming.