Future of memory management in D

Greg Strong mageofmaple at protonmail.com
Wed Nov 17 22:36:51 UTC 2021


On Wednesday, 17 November 2021 at 18:47:35 UTC, Imperatorn wrote:
> On Wednesday, 17 November 2021 at 18:09:56 UTC, Zoadian wrote:
>> On Wednesday, 17 November 2021 at 02:32:21 UTC, H. S. Teoh 
>> wrote:
>>> On Wed, Nov 17, 2021 at 01:57:23AM +0000, zjh via 
>>> Digitalmars-d wrote:
>>>> [...]
>>>
>>> Why bend over backwards to please the GC-phobic crowd?  
>>> They've already made up their minds, there's no convincing 
>>> them.
>>>
>>> [...]
>>
>> I 100% agree with this. There are more important things that 
>> need improvement. GC and no-GC work well enough in D 
>> (Exceptions are the only thing that needs a bit of extra work 
>> with @nogc).
>
> Yes, we need to focus on the bigger picture

Agreed.  Trying to please everybody is a losing battle.  If the 
GC is so offensive to you, why are you here?  There are other 
languages.

I'm using D to build a chess variant engine where there are 
recursive functions that call each other a million times a 
second.  I absolutely, positively cannot have any GC happening 
there!  No problem.  I pre-allocate what I need and I can further 
add @nogc to be certain.  (Which helped me because there was a 
place where I was doing a closure that could allocate and I 
didn't realize it.)

D is great at letting you go the direction you want.  The 
hysterical no-gc crowd should find another language.  That being 
said, reducing GC usage in phobos is a worth goal...


More information about the Digitalmars-d mailing list