More radical ideas about gc and reference counting
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 30 18:51:38 PDT 2014
On 4/30/14, 6:04 PM, Steven Schveighoffer wrote:
> destructors are for cleaning up non-GC resources. File handles, malloc'd
> memory, etc. I don't see why these need to be eliminated.
Virtually all GCs are known to be horrible at managing scarce resources
(including memory itself). Giving the task of managing such to the GC is
like making the cross-eyed guy be the shooter in
https://www.youtube.com/watch?v=sen8Tn8CBA4.
Andrei
More information about the Digitalmars-d
mailing list