Earlier quoted context omitted.
I don’t understand you completely. Most programs are not video decoders running a tiny tiny code on gigabytes of data, they contain quite a bit of code and many parts of it run irregularly. By not “paying attention” to memory allocations on these vast amount of cases, you get similar, or sometimes even better performance, safer and more correct software, faster. If it turns out to be a critical part, it is very easy…
I'd liken it to the Linus quote regarding data-structures https://lwn.net/Articles/193244/ And in what world is a GC safer and more correct? And no, please don't argue that it is faster in any meaningful way. > So in like 90+% of cases, a GC is a huge boost to productivity, and this is proved by their extensive usage in the industry. It is not a boost in productivity. And the reason for why it has extensive use in th…
Swift chose a different approach, but their tradeoff was lower memory overhead vs performance. It is likely a worthwhile goal for mobile devices, but that is a niche. And by the way, for all practical purposes RC is a garbage collection algorithm, it just tracks dead links instead of live ones.
So there is one solution for correctness and safety without GC, which comes with plenty of warts. How exactly GC is not a boost in productivity?