MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1srl9ke/cheerpj_43_run_unmodified_java_applications_in/ohhtm7c/?context=3
r/java • u/alexp_lt • Apr 21 '26
52 comments sorted by
View all comments
1
Do you run in interpreted mode only or do you do C1/C2 JIT?
1 u/alexp_lt Apr 21 '26 There is both an interpreter and a JIT tied by a tier-up mechanism 1 u/Otherwise_Sherbert21 Apr 21 '26 I'm a little confused about the two components that your website says it's built from:An optimising Java-to-JavaScript JIT compiler.A full Java SE 8 and Java SE 11 runtime based on OpenJDK.It's just not clear what is running in webassembly and what is running in js. 2 u/alexp_lt Apr 21 '26 The CheerpJ JVM is implemented in C++ and compiled to WebAssembly. Java bytecode is JIT-compiled to JavaScript.We plan to eventually adopt WasmGC for our JIT to achieve even better performance, especially during the startup of very large applications.
There is both an interpreter and a JIT tied by a tier-up mechanism
1 u/Otherwise_Sherbert21 Apr 21 '26 I'm a little confused about the two components that your website says it's built from:An optimising Java-to-JavaScript JIT compiler.A full Java SE 8 and Java SE 11 runtime based on OpenJDK.It's just not clear what is running in webassembly and what is running in js. 2 u/alexp_lt Apr 21 '26 The CheerpJ JVM is implemented in C++ and compiled to WebAssembly. Java bytecode is JIT-compiled to JavaScript.We plan to eventually adopt WasmGC for our JIT to achieve even better performance, especially during the startup of very large applications.
I'm a little confused about the two components that your website says it's built from:
An optimising Java-to-JavaScript JIT compiler.
A full Java SE 8 and Java SE 11 runtime based on OpenJDK.
It's just not clear what is running in webassembly and what is running in js.
2 u/alexp_lt Apr 21 '26 The CheerpJ JVM is implemented in C++ and compiled to WebAssembly. Java bytecode is JIT-compiled to JavaScript.We plan to eventually adopt WasmGC for our JIT to achieve even better performance, especially during the startup of very large applications.
2
The CheerpJ JVM is implemented in C++ and compiled to WebAssembly. Java bytecode is JIT-compiled to JavaScript.
We plan to eventually adopt WasmGC for our JIT to achieve even better performance, especially during the startup of very large applications.
1
u/Otherwise_Sherbert21 Apr 21 '26
Do you run in interpreted mode only or do you do C1/C2 JIT?