Anmelden

Foojay.io | Friends of OpenJDK and Java Programming· Staffel 5· Folge 98

The End of JNI Pain: How WebAssembly Is Quietly Replacing Native Libraries in Java (#98)

Samstag, 13. Juni 2026 · 44 min

MP3

Shownotes

WebAssembly is already running inside Java applications, but most developers just don't know it yet.
In this episode, Andrea Peruffo walks us through how WebAssembly is becoming the modern, safe alternative to JNI. Run Rust, C, and other native libraries directly on the JVM, without the crash risks, per-platform packaging headaches, or the observability blackhole that JNI creates.
From JRuby's Prism parser to SQLite and full Postgres running as pure Java bytecode, the use cases are real. And the project making it possible, Endive, under the Bytecode Alliance, is open and ready to explore.
Guest
Andrea Peruffo
• GitHub: github.com/andreaTP
• LinkedIn: linkedin.com/in/andrea-peruffo-32269178
• Bluesky: bsky.app/profile/andreatp.bsky.social
Links
•
A New Generation of Java Libraries: Wasm Becomes the Implementation Detail (foojay.io/today/a-new-generation-of-java-libra…)

•
Chicory on GitHub (github.com/dylibso/chicory)

•
Endive on GitHub (github.com/bytecodealliance/endive)

•
Endive documentation (endive.run/docs)

•
Bytecode Alliance (bytecodealliance.org)

•
OpenJDK Project Detroit (openjdk.org/projects/detroit)
Timestamps
Introduction of topic and guests
What is WebAssembly?
Comparing the performance with JavaScript
JRuby already uses WebAssembly
JNI versus FFM API versus WebAssembly
Other Java-related tools that use WebAssembly
History of the Chicory and Endive projects to bring WebAssembly to Java
Projects of the Bytecode Alliance
The Endive project as the glue to bring WebAssembly tools to Java
Integration of the Redline compiler
Why this is the perfect solution to modernize existing Java applications
Is this approach performant?
What future changes in Java and the JVM will make this even better
How Endive can be used in AI development
What to expect in Endive
Conclusions

Anmelden oder registrieren

Jetzt

0:00 / 0:00