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:
npm install -g email@example.com
If you want to run the console-based frontend, you'll need the
optimist node.js library:
npm install optimist
To build the release copy of the code, you'll need rdiscount as well.
To run Doppio on localhost, run
. startup.sh, or start the browser frontend manually:
cpp -P -traditional-cpp browser/index.html index.html python -m SimpleHTTPServer 8000 &
To get the optimized release version:
make release cd build python -m SimpleHTTPServer 8000 &
Then point your browser to 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 (