Post #1616338
2026-04-23 17:25 UTC
The Edge of Safe Rust
https://kyju.org/blog/tokioconf-2026/
excellent blog post by kyren / Catherine West showing common ways to deal with circular references with rust ownership and borrowing, and evolving "Vec + indexing" step by step to fix its downsides until reaching pretty much the design of the gc-arena crate
a garbage collector can be a fancy data structure, not necessarily a pervasive language characteristic!
Replies (2)
-
@lumi@snug.moe 2026-04-23 17:26
@simon ooo, will have a look. i've always loved using allocation arenas, they're such a neat pattern
-
@tarix29@tech.lgbt 2026-04-23 17:45
@simon the fact that I wasn't taught about arena allocators in college is despicable, especially since I took all of the low-level/systems courses my university offered