News for hackers. Stuff that matters.
Re:The next circle of security hell by AnthonyMouse on Monday November 23, 2026 @02:03PM (#50617260)
Isn't that the actual problem though? It doesn't matter if you use Rust if you use "unsafe" everywhere because it's faster than doing it right.
Re:The next circle of security hell by dwattttt on Monday November 23, 2026 @02:07PM (#50617311)
It's not perfect or absolute, but the unsafe way in Rust is often harder. As the simplest example, raw pointer operations have less syntactic sugar, so using them is less ergonomic.

Other avenues for bad are still there though.

Re:The next circle of security hell by AnthonyMouse on Monday November 23, 2026 @02:20PM (#50617553)
> As the simplest example, raw pointer operations have less syntactic sugar, so using them is less ergonomic.

It's more typing, but it's also less thinking because you get the code to compile immediately. And if you don't like typing then that's easy, just write "unsafe" once inside a function that you can call in 500 different places.

At some point you have to actually care or it's not going to work out.

Re:The next circle of security hell by dralley on Monday November 23, 2026 @04:24PM (#50619531)
Have you ever written Rust, much less unsafe Rust? It does not sound like you have, to be honest.
Re:The next circle of security hell by dwattttt on Monday November 23, 2026 @04:35PM (#50619698)
> just write "unsafe" once inside a function that you can call in 500 different places

It's usually the opposite. If you're being forced to write unsafe, odds are there's a crash bug about to appear (the word "forced" was very specifically chosen, I've been in both of these positions quite a few times).

And if you're not being forced to write unsafe, not writing it really is easier. Precedence of operations means that if you want to call a method/access a field of a raw pointer, it's a minimum of `(*a).` to reference it. A reference is just the `.`.

Re:The next circle of security hell by dralley on Monday November 23, 2026 @04:09PM (#50619336)
My frustration with many anti-anti Rust arguments is that they are basically strawmans. "Use unsafe because it's faster"