Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there ever a plan for GC?


There 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

[1]: https://github.com/Manishearth/rust-gc [2]: https://github.com/withoutboats/shifgrethor


I 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)


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: