Rusty Java - Transition the Java Runtime from C/C++ to Rust.

Johan Sjolen johan.sjolen at oracle.com
Wed Nov 27 14:42:47 UTC 2024


Hi Eric,

I don't know. Good question.  The JVM's internals are constantly changing, and we do occasionally upgrade C++ version.
Integrating Rust seriously with the currently existing JVM, perhaps by replacing a subsystem such as Unified Logging or container support would be interesting. One could evaluate whether that gains us some safety and a nicer developer experience when further working on those subsystems. Rust has some very nice features and IDE support that just seems impossible to achieve with C++. I don't think I'll be out of a job if the JVM switched to Rust :-).
If you think that producing Rust code for the JVM (and not a JSR) would be exciting and cool to do, then why not do it? To be clear: I won't give you an approval on a PR that switches out C++ with Rust, even for a subsystem, but that has more to do with the major effort that would require in all other areas than the coding itself.

Good luck, and have fun.

- Johan


More information about the discuss mailing list