DoppioVM: A JVM in Coffeescript
Doppio is a double shot of espresso. In this case it's also a JVM written in Coffeescript.
To try Doppio now, head to the live demo page.
Getting & Building the Code
git clone, do
git submodule update --init --recursive
Most programs need the Java Class Library. On OS X Lion:
cd third_party/classes unzip /System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
Use Coffeescript v1.2.0 (which is the default version you get from npm).
If you want to run the console-based frontend, you'll need the
optimist node.js library:
npm install optimist
To run Doppio on localhost, run
. startup.sh, or start the browser frontend manually:
python -m SimpleHTTPServer 8000 & cpp -P browser/index.html index.html open http://localhost:8000/
The code can also be run from the console. For example:
./console/disassembler.coffee test/Println.class ./console/runner.coffee test/Println
Run the automated test-runner to check runtime and disassembler output:
The tests can take a while to complete, so consider running them in parallel (