News for hackers. Stuff that matters.
Re:What it feels like when Rust saves your bacon by pkulak on Friday June 24, 2022 @11:09AM (#31863382)
A lockless thread queue (not entirely sure what that would be, sorry; a queue in front of a pool?) seems like the kind of low-level library that could be written with liberal use of unsafe. No need to flagellate yourself on the altar of compile-time safety.
Re:What it feels like when Rust saves your bacon by jesse__ on Saturday June 25, 2022 @11:04AM (#31875859)
Then why would I use rust in the first place?
Re:What it feels like when Rust saves your bacon by ColonelPhantom on Sunday June 26, 2022 @04:53AM (#31882218)
So that you can write "primitives" such as a queue in unsafe, and assuming it is correct, it is not possible to introduce bugs from other code.

Also, things like queues tend to be implemented in either the stdlib or a very popular library. So they are very well tested and likely to be widely reviewed.