chc4/samsara
View on GitHub ↗ ★ 80 Rust
a reference-counting cycle collection library in rust
12 mentions on Hacker News by 3 people: 0 stories, 12 comments · first 2023-08-14 · latest 2024-12-13
20082026
-
…the algorithm discussed in OP, though there may be some subtle differences in implementation: https://github.com/chc4/samsara
comment by zozbot234 · 2024-12-13 · in Garbage collected smart pointers in Rust via concurrent cycle collection -
…efficiency. I suspect we'll see a "hockey stick" adoption curve once everyone figures this out. [1] https://github.com/chc4/samsara
comment by hathawsh · 2024-10-28 · in Using Rust in non-Rust servers to improve performance -
There's also more recent implementations such as https://github.com/chc4/samsara (quite similar to https://github.com/pebal/sgcl , which is for C++. Both implement a concurrent tracing algorithm which allows for reduced latency compared to…
comment by zozbot234 · 2024-08-01 · in Crafting Interpreters with Rust: On Garbage Collection -
…If you want to experiment with 'lightweight' traced GC for systems programming, you might like https://github.com/chc4/samsara (for Rust) or https://github.com/pebal/sgcl (for C++) both implementing a concurrent tracing algorithm which is…
comment by zozbot234 · 2024-06-26 · in Tracing garbage collection for arenas -
https://github.com/chc4/samsara is also worth looking into, implementing the same concurrent GC algorithm for Rust. A C++ implementation is available at https://github.com/pebal/sgcl .
comment by zozbot234 · 2024-05-16 · in Some notes on Rust, mutable aliasing and formal verification -
…for very specific cases, preferably using a high performance concurrent implementation much like https://github.com/chc4/samsara (for Rust) or https://github.com/pebal/sgcl (for C++).
comment by zozbot234 · 2024-03-30 · in Garbage collection for systems programmers (2023) -
…cycles. In that context it's worth trying a high-performance concurrent GC implementation such as https://github.com/chc4/samsara Samsara.
comment by zozbot234 · 2024-03-26 · in Rust data structures with circular references (2021) -
…be the heart of such an argument Rust can actually support high-performance concurrent GC, see https://github.com/chc4/samsara for an experimental implementation. But unlike other languages it gives you the option of not using it.
comment by zozbot234 · 2024-03-25 · in Why choose async/await over threads? -
…in practice is quite limited. There is an implementation of incremental cycle collection in Rust: https://github.com/chc4/samsara It's made possible because Rust can tell apart read-only and read-write references (except for references to…
comment by zozbot234 · 2024-01-21 · in Boehm-Demers-Weiser conservative C/C++ Garbage Collector -
…GC implementations for Rust, e.g. Samsara https://redvice.org/2023/samsara-garbage-collector/ https://github.com/chc4/samsara that avoid blocking, except to a minimal extent in rare cases of contention. That fits pretty well with the…
comment by zozbot234 · 2023-12-03 · in Steel – An embeddable and extensible Scheme dialect -
There are a number of efforts along these lines, the most interesting is probably Samsara https://github.com/chc4/samsara https://redvice.org/2023/samsara-garbage-collector/ which implements a concurrent, thread-safe GC with no global…
comment by zozbot234 · 2023-09-11 · in Removing garbage collection from the Rust language (2013) -
Nice blog post! I also wrote a concurrent reference counted cycle collector in Rust ( https://github.com/chc4/samsara , https://redvice.org/2023/samsara-garbage-collector/ ) though never published it to crates.io. It's neat to see the…
comment by chc4 · 2023-08-14 · in I built a garbage collector for a language that doesn’t need one