There is one important case...
Posted Nov 28, 2011 7:07 UTC (Mon) by khim
In reply to: On the contrary...
Parent article: Wingo: the gnu extension language
Forgot to add: there are one important case where GC is immensely useful: batch jobs.
If your goal is not to work indefinitely and serve user requests but to process finite amount of data and die then it does not really mater if you program has memory leaks or on: when it'll finish OS will reclaim all the memory anyway. What does matter is the ability to process the data using known amount of memory. In this case GC's responsibility is different: it does not need remove all memory leaks (as you've rightfully pointed out it can not really do that), but if it can collect enough memory for the program to fit in quota till it finishes - then it's enough.
to post comments)