Is D Dead?

rikki cattermole rikki at cattermole.co.nz
Wed Sep 15 10:35:50 UTC 2021


On 15/09/2021 10:28 PM, IGotD- wrote:
> On Wednesday, 15 September 2021 at 10:00:39 UTC, Walter Bright wrote:
>>
>> GC already is an optional feature in D.
> 
> It depends what you mean by that, arrays and about all other data 
> structures rely on GC. Also entire Phobos require GC.

False. std.traits works just fine ;)

std.format could work if it wasn't for exceptions!

> D without any libraries does not rely on GC but then you have removed 
> many useful features of the language. The situation is similar with C++ 
> but there the library only depends on malloc/free without any extra 
> memory penalty and tracing penalty.

There really are only 3 features that you end up missing in -betterC, 
aside from the GC.

Exceptions, classes, TLS.

Classes are slowly coming along, but they are being resolved.
https://issues.dlang.org/show_bug.cgi?id=21416 is as far as I'm aware 
one of the few bugs associated with it.

TLS is out of the question as far as I'm aware.

Exceptions, using stack unwinding do need a runtime, so they are out, 
but I *really* want to see that resolved. I'd love to see an alternative 
to heap allocated stack unwinding exceptions in D.


More information about the Digitalmars-d mailing list