TeaVM
=====
What is TeaVM?
--------------
In short, TeaVM gets a bytecode, running over JVM, and translates it to the JavaScript code,
which does exactly the same thing as the original bytecode does.
It is based on its cross-compiler which transforms `class` files to JavaScript.
But there is something more:
* a sophisticated per-method dependency manager, which greatly reduces the JavaScript output;
* an optimizer capable of things like devirtualization, inlining, constant propagation,
loop invariant motion and many other;
* implementation of subset of core Java library;
How to use
----------
There are some options of using TeaVM. One is the maven build. First, you write your code as if it were an
ordinary Java project:
package org.teavm.samples;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
Second, you include the following dependency in your `pom.xml`: