Java in WebAssembly
Many exciting WebAssembly things are happening in the Java ecosystem. There are a few projects that are rapidly maturing, and that can generate browser-oriented JS.
The various projects handle memory management differently. Their feature sets also differ.
- The Bytecoder project cross-compiles Java to WebAssembly that can be executed in the browser
- The TeaVM project has experimental support for browser-based WebAssembly
- A dedicate WebAssembly compiler called JWebAssembly can translate any JVM bytecode to WebAssembly, including Groovy, Clojure, and Kotlin. It, too, is browser-centric.
- CheerpJ is much more ambitious, handling the UI as well
Here are some great resources: