3 ms·
Yes, from the FAQ: "The CheerpJ compiler, based on LLVM/Clang, as well as on parts of Cheerp, converts Java bytecode into JavaScript, without requiring the Java
by kodablah 9y ago
Yes, from the FAQ: "The CheerpJ compiler, based on LLVM/Clang, as well as on parts of Cheerp, converts Java bytecode into JavaScript, without requiring the Java source. CheerpJ can be invoked on whole Java archives (.jar) or on single .class files, and generates a .jar.js (or .js) output. "
We've seen this plenty with GWT and the likes, but this one is self-hosted in the browser to support dynamic class loading. As with Emscripten, the real struggle is the stdlib, not the translation. As an alternative, I would recommend people look at TeaVM[0].
0 - https://github.com/konsoletyper/teavm https://github.com/konsoletyper/teavm
- azakai 9y agoAnother related project is Doppio, an open source JVM written in TypeScript, https://github.com/plasma-umass/doppio https://github.com/plasma-umass/doppio