3 ms·
> Thus, users of modern non-GC languages do not experience the pauses seen in GC languages /doubt Once you're facing, for example, the deallocation of an enti
by jhgb 5y ago
> Thus, users of modern non-GC languages do not experience the pauses seen in GC languages
/doubt
Once you're facing, for example, the deallocation of an entire tree that you own and that's going out of scope, your pause is unbounded. Compared to that, a GC'd language could delay the deallocation, or even in case of stuff like C4 have a dedicated thread deal with it.
Sure, you can always write code in a way that avoids this, but non-consing is also an option for many of the GC'd languages (at least the more advanced ones, like Common Lisp).
- ncmncm 5y agoGC languages, boxing everything, oblige constructing elaborate linked structures. Boxing is exceptional in non-GC languages, and trivially avoided where latency would matter. So, doubt all you like, unavoidable random millisecond pauses are not a problem in non-GC languages, no matter how much you wish otherwise.