Patrick Ziegler and Fabio Niephaus explain how to compile Java applications to WebAssembly using GraalVM Native Image and Wasm GC.
Wasm I/O 2025 - Barcelona, 27-28 March
Slides: 2025.wasm.io/slides/the-future-of-write-once-run-anywhere-fr…
Programming languages that are designed to be statically compiled such as Rust, Go, and C++ already provide good support for Wasm, unlike languages such as Java or Python. But what does it take to compile Java to Wasm?
In this session, we’ll introduce the brand new Wasm backend for GraalVM Native Image, which allows developers to compile Java applications into efficient Wasm modules leveraging the new Wasm GC proposal. We explain how Native Image and the new backend work, outline possible use cases, and show live demos. We also discuss current limitations and provide an overview of what to expect next.
If you’re interested in the future of Java and WebAssembly, this talk is for you!
Why it's here
1 person recommends this
What people say. Recommended as the inspiration for compiling Clojure projects to WebAssembly executables.
r
u/riebeck100in r/Clojure • Recommends
Compiled Clojure to WASM executable using Graal VM
I recently watched [The Future of Write Once, Run Anywhere: From Java to WebAssembly by Patrick Ziegler & Fabio Niephaus].
Compiled my project cljcc ( a toy C compiler ) to WASM executable, and made a a simple frontend for it.
Deployed link: cljcc.shagunagrawal.me
https://preview.redd.it/rf1sk10tu1xe1.png?width=1873&format=png&auto=webp&s=da15cd0dbbe245d1717e939f2c0392b3c72cacb5