4 ms·
> I just happen to program in a space where I like the trade offs of ARC better than those of a tracing GC. Even ARC has to be augmented with some tracing in o
by zozbot234 5y ago
> I just happen to program in a space where I like the trade offs of ARC better than those of a tracing GC.
Even ARC has to be augmented with some tracing in order to deterministically collect cycles. Ideally, of course, we would want to describe things like "non-cyclic ownership graph" as part of the type system, so that the compiler itself can decide where the addition of tracing infrastructure is necessary. (Delayed deallocation, as often seen in tracing, concurrent etc. GC, might be expressed as moving the ownership of finalized objects to some sort of cleanup task. But if you code carefully, the need for this ought to be very rare.)