News for hackers. Stuff that matters.
Re:Dashmap: Fast concurrent HashMap for Rust by lcy on Friday March 27, 2020 @02:05AM (#22700724)
> unless you perform all writes while holding a mutex

No. Maybe you are not familiar with the concurrency data structures community. Many techniques are invented and used in concurrency data structures, e.g., intrinsic CPU atomic instructions, like CAS, that make the data structures "lock-free".

CAS: https://en.wikipedia.org/wiki/Compare-and-swap.

Re:Dashmap: Fast concurrent HashMap for Rust by ahupp on Friday March 27, 2020 @02:23AM (#22700777)
From the comment:

> you don’t get atomic writes across multiple data structures

They're saying that lock-free approaches don't help when you have to ensure consistency across multiple datastructures.