How to use a Rust library inside the JVM application
summary
Core Scala optimizer core gets rewritten in Rust and exposed to the JVM via robusta gni and JNI; protobuf messages serialize requests so Java and Rust stay in sync; native binaries for macOS and Linux get bundled into the Scala artifact; Rust panics map to Java exceptions and fallbacks prevent crashes; team runs a shadow run comparing results, fixes about 20 mismatches, and flips traffic only after confidence; system runs over a year in production with no major incidents.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:28Optimization problems are hard
- 5:01Rewriting takes time
- 14:48Error handling
- 15:11DON'T PANIC
related talks
45mLuckily, You Don’t Have to Rewrite Everything in Rust
28mRust and Scala, Sitting in a Tree….
56mGet the best of both worlds: Integrating Rust with other languages
56mWhen to Choose Rust
43mRust intro for Java Developers
52mImplementing a Simple JVM in Rust
27mRust for Java developers
31mUsing Rust from C... or Any Language
