Code Monkey home page Code Monkey logo

doppio's Introduction

DoppioVM: A JVM in Coffeescript

Doppio is a double shot of espresso. In this case it's also a JVM written in Coffeescript.

It began life as a Mid-term project for CS 691ST, Spring 2012 at UMass Amherst.

To try Doppio now, head to the live demo page.

Getting & Building the Code

After 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 protected]

Run coffee -wc */*.coffee & to auto-generate javascript sources if you make any changes to the code.

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.

Usage

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

Testing

Run the automated test-runner to check runtime and disassembler output:

make test

The tests can take a while to complete, so consider running them in parallel (make -j4).

doppio's People

Contributors

int3 avatar jleahey avatar perimosocordiae avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.