Re:TinyVM 1.0 released; adds 16 lines of code, registers, a ...
by chrisb on Friday August 26, 2011 @06:36PM
(#2930221)
In a slightly similar vein, you might enjoy looking at my Dot Net Anywhere project: https://github.com/chrisdunelm/DotNetAnywhere/tree/master/dn... (or http://www.dotnetanywhere.org for an easy to use zip download that will load and compile directly on Windows)
It is an almost complete .NET2.0 CIL interpreter, so it can run your exe's compiled from C#/VB/etc...
I'm not sure it has much practical application, but it was certainly fun to write, and I learnt a huge amount about interpreters and how .NET works.
PS Lots of bugs, a memory leak, an incomplete base class library, etc... so don't try to use this for anything serious!
It's a stack-oriented VM, similarly designed to be as simple as possible, but my goal was to create something like an idealized game console. Thus, I have basic graphics support and gamepad input. The project includes a compiler for a dialect of Forth and a big pile of example code.