Hacker GitHub

← All repos

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

Mentions per year 12 mentions · busiest year 2024 (9)
20082026
  1. …the algorithm discussed in OP, though there may be some subtle differences in implementation: https://github.com/chc4/samsara
  2. …efficiency. I suspect we'll see a "hockey stick" adoption curve once everyone figures this out. [1] https://github.com/chc4/samsara
  3. 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…
  4. …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
  5. 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 .
  6. …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++).
  7. …cycles. In that context it's worth trying a high-performance concurrent GC implementation such as https://github.com/chc4/samsara Samsara.
  8. …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?
  9. …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…
  10. …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…
  11. 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…
  12. 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…