Terrence Parr presented an introduction to virtual machines. He implemented a simple virtual machine and put the code in both Java and C varieties on GitHub: I decided to implement the same virtual machine in one of the worst languages for such a task: Lua. Lua itself uses a virtual machine. Now we have a virtual machine inside another virtual machine. Furtheremore, Lua doesn’t have an integer type or the switch statement.
Read More →