Go, D, and the GC

Shachar Shemesh via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 4 23:52:47 PDT 2015


On 04/10/15 19:14, welkam wrote:
> On Sunday, 4 October 2015 at 12:40:00 UTC, rsw0x wrote:
>> these tools are not very good and they don't help when the standard
>> library(...or builtin language features...) use the GC and tie your hands
>
> IMO tools for memory management in D are way better than that of other
> languages. Game developers who use c++ dont use all of c++
> features(templates, exceptions), because they care about performance the
> same can be said about D. Yes some features use GC heap, but you can
> just not use it. Or you can use so little that GC collection wont even
> kick in. With Go you have no real option but to use GC.

When D structs has a destructor that is guaranteed to run for any 
instance that finished construction, no matter what is the use case, 
then we can have that discussion.

Until then, no, D's mechanisms for non-heap allocations are vastly 
inferior to C++'s.

Shachar


More information about the Digitalmars-d mailing list