The Future of Write Once, Run Anywhere: From Java to WebAssembly by Patrick Ziegler & Fabio Niephaus

Conference: Wasm I/O 2025

Year: 2025

Wasm I/O 2025 - Barcelona, 27-28 March Slides: https://2025.wasm.io/slides/the-future-of-write-once-run-anywhere-from-java-to-webassembly-wasmio25.pdf 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!