News for hackers. Stuff that matters.
Re:What it feels like when Rust saves your bacon by kajaktum on Friday June 24, 2022 @10:51AM (#31862966)
>The specific exercise I have in mind is a lockless thread queue. < 20 lines in C .. ~200 lines in Rust.

Do they have an equivalent API? Rust does have a hard time explaining very, very low level stuff that you'd have to do unsafe and various magicks. But once you get the unsafe details right, the consumer API for them tends to be extremely rigid and fool proof.

Re:What it feels like when Rust saves your bacon by jnordwick on Saturday June 25, 2022 @12:22AM (#31872596)
> Rust does have a hard time explaining very, very low level stuff

A little odd for a supposed system langauge

Re:What it feels like when Rust saves your bacon by kaba0 on Saturday June 25, 2022 @01:32PM (#31877072)
But it is just not true. Rust has a hard time writing algorithms where objects don’t have a singular owner. That’s all, it is not low level stuff. It for example has proper SIMD support, while the supposedly low level c doesn’t.