4 ms·
I can't imagine how there could be. All a GC does is free the programmer from worrying about memory leaks/manual memory management themselves (sort of). It does
by eximius 11y ago
I can't imagine how there could be. All a GC does is free the programmer from worrying about memory leaks/manual memory management themselves (sort of). It doesn't have any effect on computability.
- lgunsch 11y agoIt does have a significant impact on performance. Especially for real time operating systems, micro controlles, and other embedded systems. There for sure exists more then zero problems where garbage collection would be a worse solution then manual memory management. Even if you leave kernel development out of the equation.
- pif 11y ago> All a GC does is free the programmer from ... Not only this. It also forces the programmer to implement RAII by hand.
- deleted 11y ago[deleted]
- ben0x539 11y agoThere's some difference between "it's computable" and "it's practical to write a program that does it in a reasonably simple and maintainable way", though. If you have GC, it can free up a bunch of your complexity budget that you need elsewhere.