On 11/3/13 10:29 PM, Oren Ben-Kiki wrote:
Even if RC allowed cycles (I don't quite see how...) the whole thing wouldn't be send-able, unless one uses ARC. But ARC has even more performance penalties than RC... And doing cycle-supporting ARC across tasks seems like pushing it - you might as well admit you are doing global GC in the 1st place.
I'm not sure I agree. I wasn't thinking that we would detect cycles with ARC, for one thing: we'd just let them leak. Not good, but more flexible.
Unlike global GC, thread-safe reference counting has the nice property that you only pay for it when you use it. Thread-safe reference counting is used in a lot of C++ applications. Using it for everything is right out for performance-critical applications—it's poison in that concentration—but using it when you truly need it is totally fine IMHO.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
