Compiling Ruby. Part 2: RiteVM (opens in new tab)
mruby (so-called “embedded” Ruby) is a relatively small Ruby implementation. mruby is based on a register-based virtual machine. In the previous article, I mentioned the difference between stack- and register-based VMs, but what is a Virtual Machine? As obvious as it gets, a Virtual Machine is a piece of software that mimics specific behavior(s) of a Real Machine. Depending on the kind of virtual machine, the capabilities may vary. A VM can mimic a typical computer’s complete behavior, allowi...
Read the original article