Getting Started with DukeScript and TeaVM
Once your application is ready, you can then decide how you want to deploy it. Whether you want more feature rich Bck2Brwsr, or lightweight (but not as complete) TeaVM. The best way to get started is currently to use the MineSweeper application and modify it to your needs:
$ hg clone http://source.apidesign.org/hg/html~demo/ $ cd html~demo/ $ hg up -C b157a20a6945 # version b157a20a6945 is known to work $ mvn clean install -DskipTests $ cd minesweeper/ $ mvn -Pteabrwsr clean package bck2brwsr:show
$ mvn exec:java
Competition is Good!
Now the competition between VMs can start! We have a way to write a sample application once and then execute it and compare the results. For example here is a minesweeper (written with DukeScript APIs) executed by TeaVM: http://xelfi.cz/minesweeper/teavm/ and here is one executed by Bck2Brwsr: http://xelfi.cz/minesweeper/bck2brwsr/ - the same HTML page, the same Java code - just different VMs (btw. I have speeded up the Bck2Brwsr start a bit; now it should be less than a second):