2 ms·
By the name i'd say Arc is reference counting, which isn't exactly garbage collection...
by nottorp 2y ago
By the name i'd say Arc is reference counting, which isn't exactly garbage collection...
- rc00 2y agoReference counting is quite literally a subset of garbage collection.
- nottorp 2y agoThen malloc/free are quite literally a subset of the borrow checker :)
- pod_krad 2y agoGarbage Collector acts mainly in unpredictable way. I mean it is possible it won't free memory even if counter is zero already. This is not true if we are talking about Rust.
- rc00 2y agohttps://news.ycombinator.com/item?id=43614013 https://news.ycombinator.com/item?id=43614013