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

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

June 12, 2026 · 44 min · Season 5 · Episode 98

About this episode

This episode discusses how WebAssembly is becoming a modern alternative to JNI in Java applications.

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: https://github.com/andreaTP/ LinkedIn: https://www.linkedin.com/in/andrea-peruffo-32269178/ Bluesky: https://bsky.app/profile/andreatp.bsky.social Links A New Generation of Java Libraries: Wasm Becomes the Implementation Detail Chicory on GitHub Endive on GitHub Endive documentation Bytecode Alliance OpenJDK Project Detroit Timestamps 00:00 Introduction of topic and guests 00:56 What is WebAssembly? 03:35 Comparing the performance with JavaScript 05:45 JRuby already uses WebAssembly 09:04 JNI versus FFM API versus WebAssembly 13:58 Other Java-related tools that use…

Explore listener stats, chart rankings, contacts and more on the Foojay.io, the Friends Of OpenJDK! podcast page.