Better Garbage Collection

By bootstrapping

In the last post I mention I mention about Garbage Collectors. This post talks about what can be done to make Garbage Collectors better for “serious programmers”.

The current garbage collector makes programmers hapless even when they know what sort of memory management will be good for them. Currently I have not seen a language that will provide garbage collection as well as control over the garbage collection. I could prefer the GC is a separated from the languages itself in such a way that it is pluggable. I can write a GC for my program if I want to otherwise it uses the default GC.

Every program is written to solve a problem. There can not be “generic program” that can solve all the problems. Similarly there can not a GC that can do memory management for all the programs. Memory management differs from application to application. So we sometime do need to take control of memory management. Sometime I just may want to take control of memory management for specific classes or data.

Are there any languages created are this line? Or Most of the people see Generic GC is enough for all problems?

Leave a Reply