News for hackers. Stuff that matters.
Re:Zig's new LinkedList API (it's time to learn fieldParentPtr) by simonask on Tuesday April 15, 2025 @03:24PM (#43697317)
Yeah, wait-free data structures often contain linked lists. That doesn’t cancel out all of the other problems.

Anecdotally, I’ve seen wait-free structures used incorrectly many more times than I’ve seen them used correctly. Some people think they are magically faster because “acquiring a mutex lock is expensive”, but that’s far from always the case.

Re:Zig's new LinkedList API (it's time to learn fieldParentPtr) by mgaunard on Friday April 18, 2025 @04:51PM (#43731756)
a CAS-loop, as suggested in the message you're replying to, is certainly not wait-free, only lock-free.
Re:Zig's new LinkedList API (it's time to learn fieldParentPtr) by simonask on Thursday April 24, 2025 @10:32AM (#43783295)
Thanks, my mistake. :-)