Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (22 sloc) 945 Bytes


Sunday afternoon. One hour. Less than 150LOC (< 4kb).

MicroVM is a stack-based micro virtual machine written in Ruby, running its own micro bytecode format called MC.

MC Bytecode


$ wget
$ chmod +x microvm
$ ./microvm

You can try some example MC files in this very repo.


It's a learning example: it's a really simple implementation of a VM that works, so it's easy to get a general grasp about how things are structured.


  • Compact bytecode format (although it could be more compact)
  • Method calls
  • Types: only String and Fixnum for now.
  • Sort of runtime type checking

Who's this

This was made by Josep M. Bach (Txus) under the MIT license. I'm @txustice on twitter (where you should probably follow me!).