← Back to context

Comment by cowlevel

10 days ago

Java, surprisingly, is not that much slower than Rust - but given these bugs, Java blows Rust away in memory safety. So I'd say it is the language you are looking for. Presumably any other JVM language also passes the test and maybe also CLR languages.

> but given these bugs, Java blows Rust away in memory safety.

It's not like Java is immune to memory safety-related implementation bugs either (e.g., [0]):

> A resource area allocated object is probably passed/used outside of the scope of the corresponding ResourceMark (similar to JDK-8325672).

So "blows Rust away in memory safety" doesn't seem quite supported enough?

[0]: https://bugs.openjdk.org/browse/JDK-8336095