fitzgen/generational-arena
View on GitHub ↗ ★ 690 Rust archived
A safe arena allocator that allows deletion without suffering from the ABA problem by using generational indices.
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2019-05-30 · latest 2024-12-24
20082026
-
…your user ID example, the programmer of that system should have used a generational arena such as: https://github.com/fitzgen/generational-arena It solves exactly this problem. When you `free` any index, it bumps a counter which is paired…
comment by dmkolobov · 2024-12-24 · in Four limitations of Rust's borrow checker -
…from the only arena allocator written in Rust. From the same author, a zero-unsafe arena allocator: https://github.com/fitzgen/generational-arena There are many, many arena implementations available with varying characteristics. It's…
comment by coder543 · 2021-06-03 · in A new ProtoBuf generator for Go -
…indexes" which is why googling didn't help me. This project was more helpful for my understanding: https://github.com/fitzgen/generational-arena I'm not sure what your ultimate point was though? You don't have to use anything like that in…
comment by holy_city · 2019-05-30 · in Boden – Native mobile cross-platform applications