4 ms·
Is there ever a plan for GC?
by spopejoy 7y ago
Is there ever a plan for GC?
- remram 7y agoThere are garbage collection libraries in progress: rust-gc[1] and shifgrethor[2]. If you mean language support, then no, not really, though it was discussed in https://github.com/rust-lang/rfcs/issues/415 https://github.com/rust-lang/rfcs/issues/415 [1]: https://github.com/Manishearth/rust-gc https://github.com/Manishearth/rust-gc [2]: https://github.com/withoutboats/shifgrethor https://github.com/withoutboats/shifgrethor
- collinmanderson 7y agoI feel like not having a GC is rust’s biggest advantage over higher level languages. It allows rust to work in environments that only languages like C, C++ can work in. (Embedded, shared libraries, etc)
- spopejoy 7y agoI more meant "GC for those who want it", as advanced GC with Edens and mark-sweep tenured generations can handle high-allocation and large-heap scenarios that are extremely challenging for simpler MM approaches. I don't know if this really can be done as a library though.