> Markdown version of [/events/world-congress-2026-europe/sessions/1379-native-speed-java](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1379-native-speed-java). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Native Speed, Java Comfort: Calling Rust from the JVM with Project Panama - **Date:** Friday, Jul 10, 2026 - **Time:** 15:40–16:10 (30 min) - **Room:** Stage 8 - powered by Red Hat - **Event:** World Congress 2026 Europe ## Recording [Watch recording](https://www.wearedevelopers.com/videos/100338-native-speed-java-comfort-calling-rust-from-the-jvm-with-project-panama) ## Description The JVM is one of the most impressive pieces of software engineering, making Java incredibly fast for most workloads. But sometimes, "fast" isn't enough. For domains like scientific computing, AI, or processing massive volumes of text, we need to call highly-optimized native libraries written in C++ or Rust to gain a critical performance edge or access functionality not available on the JVM. For decades, this meant using the Java Native Interface (JNI)—a powerful but notoriously complex and unsafe bridge to the native world. Enter Project Panama. With the Foreign Function & Memory (FFM) API, Java finally has a safe, supported, and elegant way to call native code, eliminating the need for brittle glue code and manual memory management. This talk puts it to the test with a classic Java challenge: the regular expression engine. Join me for a practical, hands-on session where we will replace Java's capable but often-outperformed regex engine with Rust's highly optimized regex crate. We will walk through two implementations side-by-side: the "old way" with JNI and the "new way" with Project Panama. You will see firsthand how Panama simplifies interfacing with native code and improves safety. We'll cap it off with live benchmarks to compare the performance of both approaches against standard Java regex, helping you understand not just how to call native code, but also when it's truly worth the effort. ## Speaker ### [Gonzalo Ortiz Jaureguizar](https://www.wearedevelopers.com/@gonzalo-ortiz-jaureguizar) Performance engineer at Startree ## Related talks at this congress - [Java Sucks (So C# Didn't Have To)](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1305-java-sucks-so-c-didn) — Adele Carpenter - [Swapping Code, Losing Memory: A JVM Deep Dive](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1365-swapping-code-losing) — Marco Sussitz - [Supercharge your JVM performance with Project Leyden](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1172-supercharge-your-jvm) — Ana Maria Mihalceanu - [From Bytes to Execution: Writing a WebAssembly Runtime in Rust](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1098-from-bytes-to) — Gaurav Gahlot