News for hackers. Stuff that matters.
Re:Solving the ABA Problem in Rust with Tagged Pointers by LegionMammal978 on Friday February 14, 2025 @10:31AM (#43049333)
The slotmap crate [0], which stores an unordered object list in a Vec with persistent indices, implements a similar tagging scheme to avoid ABA problems. It's neat to see how this can be applied to raw pointers as well.

[0] https://docs.rs/slotmap/latest/slotmap/

There are no comments on this comment yet.