Most of us are familiar with virtual machines (VMs) as a way to test out various operating systems, reliably deploy servers and other software, or protect against potentially malicious software. But virtual machines arenāt limited to running full server or desktop operating systems.Ā This tiny VM is capable of deploying software on less powerful systemsĀ like the Raspberry Pi or AVR microcontrollers, and it is exceptionally fast as well.
The virtual machine is built from scratch, including the RISC processor with only 61 opcodes, a 64 bit core, and runs code written in his own programming language called āBracketsā or in assembly. Itās designed to be modular, so only those things needed for a given application are loaded into the VM. With these design criteria it turns out to be up to seven times as fast as comparably small VMs like NanoVM. The projectās creator, [koder77], has even used its direct mouse readout and joystick functionality to control a Raspberry Pi 3D camera robot.
For anyone looking to add an efficient VM to a small computing environment, [koder77] has made the project open-sourceĀ on his GitHub page. This also includes all of the modules he has created so far which greatly expand the projectās capabilities. For some further reading on exceedingly tiny virtual machines,Ā we featured this project way back in 2012Ā which allows users to run Java on similar hardware.