Manishearth/rust-gc
View on GitHub ↗ ★ 1,064 Rust
Simple tracing (mark and sweep) garbage collector for Rust
21 mentions on Hacker News by 16 people: 0 stories, 21 comments · first 2015-05-18 · latest 2025-04-28
20082026
-
…prevents one from implementing garbage-collected types, and I've been looking into this myself: https://github.com/Manishearth/rust-gc It's "Simple tracing (mark and sweep) garbage collector for Rust", which allows cyclic allocations with…
comment by Ciantic · 2025-04-28 · in Migrating away from Rust -
…saying it shouldn’t be a language level feature and it’s perfectly fine as an opt-in library. [1] https://github.com/Manishearth/rust-gc [2] https://github.com/oilpan-gc/cppgc
comment by vlovich123 · 2025-03-31 · in Rust Any part 3: we have upcasts -
I wonder if they explored using a Gc like https://github.com/Manishearth/rust-gc with Rust. I think that probably removes all the borrow checker / cycle impedance mismatch while providing a path to remove Gc from the critical path…
comment by vlovich123 · 2025-03-12 · in A 10x Faster TypeScript -
There are experiments for a Gc<T> here: https://github.com/Manishearth/rust-gc
comment by DougBTX · 2020-11-05 · in The Fatal Flaw of Ownership Semantics -
…like? I could see the opposite working out very well. Having a GC type you can box other types in. https://github.com/Manishearth/rust-gc
comment by mateus_amin · 2020-10-20 · in Assorted Thoughts on Zig and Rust -
…subset of this). There are some Rust libraries for tracing GC (e.g. [2]) as a starting point. [2] https://github.com/Manishearth/rust-gc
comment by lifthrasiir · 2020-01-22 · in Why Rust closures are somewhat hard -
…then no, not really, though it was discussed in https://github.com/rust-lang/rfcs/issues/415 [1]: https://github.com/Manishearth/rust-gc [2]: https://github.com/withoutboats/shifgrethor
comment by remram · 2019-05-24 · in Go is Google's language, not ours -
Manishearth did, as an experiment. :) https://github.com/Manishearth/rust-gc
comment by pjmlp · 2018-04-12 · in A Gentle Introduction to Rust -
…rules a bit instead. FWIW there's a Rust GC library that provides opt-in GC for when you need it. https://github.com/Manishearth/rust-gc
comment by vlovich123 · 2018-03-24 · in 100 days with Rust: a series of brick walls -
…as many cycles as I want, and then collecting the whole thing at once after my computation is done. https://github.com/Manishearth/rust-gc
comment by tyoverby · 2017-02-17 · in Rust Sucks If I Fail to Write X -
…A simple tracing (mark and sweep) garbage collector for Rust: https://github.com/Manishearth/rust-gc
comment by webmaven · 2017-01-28 · in Rust as a Language for High Performance GC Implementation [pdf] -
Then use https://github.com/Manishearth/rust-gc if you're willing to pay the price of a GC (still experimental). Or better, stick to a GC'ed language. If you don't need manual memory management, it's obviously going to be a burden. There…
comment by kaoD · 2017-01-24 · in The struggle with Rust -
No, it does not. It does allow you to implement it if you want though: https://github.com/Manishearth/rust-gc
comment by dignan · 2016-12-27 · in Rust vs C Pitfalls -
…to show a real implmentation. I haven't tested it closely, but I believe that Rust with this crate: https://github.com/Manishearth/rust-gc is an implementation for "GC only when you need it".
comment by ingenter · 2016-10-13 · in Reclaiming C++ Data Structures with Cycles -
…used rust in production, but I think it allows you to do precisely this, using the following crate: https://github.com/Manishearth/rust-gc . > Of course, there is an argument that just GCing everything is as efficient as bothering with…
comment by ingenter · 2016-10-13 · in Reclaiming C++ Data Structures with Cycles -
Or use https://github.com/manishearth/rust-gc , https://github.com/fitzgen/rajan-bacon-cc
comment by Manishearth · 2016-04-14 · in Announcing Rust 1.8 -
…It's for integrating with languages/applications that have a GC, like spidermonkey or V8. https://github.com/manishearth/rust-gc actually lets you cleanly mix GC and non-GC heap objects (even put pointers to GC heap objects on the malloc…
comment by Manishearth · 2016-04-04 · in Malloc envy -
…checker happy and lose sight of the actual task. Maybe the idea of a drop in GC type for rust (ie. https://github.com/Manishearth/rust-gc/ ) has some merit after all...
comment by shadowmint · 2015-09-12 · in Warming up to Go -
…neat advanced features that makes this possible to consider). Single threaded only for now. [1]: http://github.com/manishearth/rust-gc [^]: Since I'm already calling RefCell a single threaded RWLock, perhaps this cyclic definition isn't…
comment by Manishearth · 2015-05-18 · in The Problem With Single-threaded Shared Mutability