News for hackers. Stuff that matters.
Re:Does the Bronze Garbage Collector Make Rust Easier to Use? by torginus on Thursday December 23, 2021 @06:59AM (#29661000)
Tbh, I'm not sure about this GC-purism. I've encountered tons of high-end C++ that's absolutely full of smart pointers, which is a form of GC. Rust has Rc<> and Arc<> as well. Having a a ref-counted GC instead of a tracing one doesn't seem like a step up in 'purity' to me.
Re:Does the Bronze Garbage Collector Make Rust Easier to Use? by jeremyjh on Thursday December 23, 2021 @07:26AM (#29661165)
Ref-counting provides consistent performance - the costs are amortized smoothly over the operations. They aren't doing all this work for "purity".
Re:Does the Bronze Garbage Collector Make Rust Easier to Use? by bjourne on Thursday December 23, 2021 @11:24AM (#29663368)
Performance of ref-counting is proportional to the size of the dead objects. Performance of tracing gc is proportional to the size of the alive objects. In other words, there are many real-world situations in which ref-counting pauses are much longer than tracing gc pauses.
Re:Does the Bronze Garbage Collector Make Rust Easier to Use? by louthy on Thursday December 23, 2021 @07:45AM (#29661301)
Ref counting can also lead to memory leaks with circular references.