Garbage collection in D

bearophile bearophileHUGS at lycos.com
Thu Jun 4 09:27:46 PDT 2009


Robert Fraser:
> Of course, this only applies to programs which allocate and throw away a 
> lot of small objects. This is a style encouraged by Java and C#'s 
> programming models, much less so by, say, C++'s.

Right, there are many potential new D programmers coming from Java that may want to use that style that relies a lot on an efficient GC. But you are missing another important style of programming that allocates & frees tons of objects: functional-style programming, where immutable data is the norm. If the D2 language will want to appeal to functional programmers it will have to manage such immutables more efficiently.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list