Plan for D

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Tue May 18 15:42:14 UTC 2021


On Tuesday, 18 May 2021 at 15:26:08 UTC, zjh wrote:
> What are the advantages of D
> It's metaprogramming
> C++20 metaprogramming can beat C #, Java and so on

I think C++20 surpasses D in terms of metaprogramming and 
modelling. Concepts and stackless coroutines does make a 
difference.

But C++ takes years to master... So there is a high investment of 
time needed.

> Our disadvantage is GC.

One disadvantage is that the D's GC design is a sledgehammer from 
a time when CPUs had 1 core and kilobytes of memory.

The real disadvantage is that it is taking so much time to get an 
alternative memory managment strategy. That is primarily because 
too much effort is spent arguing about @safe.

It would have been better to just require @safe to use GC and let 
@nogc be @system, because @safe is clearly out of reach on a 
theoretical level if you don't want a tedious attribute infested 
coding experience... At least in this decade.






More information about the Digitalmars-d mailing list