4 ms·
Also, leaking memory with reference cycles from shared ownership
by tipsytoad 4y ago
Also, leaking memory with reference cycles from shared ownership
- dcow 4y agoThis seems to be a problem that even Swift can’t solve. The only languages that avoid this issue are ones with active GCs. Not that I don't agree and wouldn't love to see efforts made here.
- swsieber 4y agoIt'd be possible to add an active GC to Rust. There are some library attempts at that: - https://lib.rs/crates/gc https://lib.rs/crates/gc - https://github.com/withoutboats/shifgrethor https://github.com/withoutboats/shifgrethor But they don't look particularly usable. Beyond that, yeah, it sucks.
- naasking 4y agoThere are local cycle collection algorithms, but Rust doesn't expose enough metadata to write them in Rust itself. They're also not cheap to run.