Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by afdbcreid on Thursday November 19, 2026 @03:52PM
(#50566203)
Not accurate. Most datastructures that use unsafe in Rust are primitives; `Box`, `Vec`, `Rc`/`Arc`, `HashMap` and `BTreeMap`. Of those, only the equivalent to `HashMap` and `BTreeMap` are written in Java, and they can be written in safe Rust as well if you're willing to give up some of the performance (e.g. always initializing - thing that happens in Java as well). More complex data structures (e.g. graphs) can and often are implemented without unsafe at all.
[ Parent
| on HN ]
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by pron on Thursday November 19, 2026 @04:33PM
(#50566723)
I know that you can write slow data structures in safe Rust, but the standard library's data structures are supposed to be efficient. Anyway, a quick look at how common unsafe is in Rust vs Java, both in the standard library and in applications, and you'll see that it's much more common in Rust.