Garbage Collection for Systems Programmers

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Apr 4 06:35:49 UTC 2024


On 03/04/2024 10:28 PM, rkompass wrote:
> On Tuesday, 2 April 2024 at 14:50:19 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> On 03/04/2024 2:23 AM, Guillaume Piolat wrote:
>>> If you want to use GC and be portable, then (currently in D today) 
>>> you have to write your own D runtime. Of which there is 3 or 4 custom 
>>> ones!
>>
>> And worse still they each have to implement the compiler hooks, when 
>> all they really need to implement is stuff like allocation of memory!
>>
> 
> Is this the reason why there is no D for Arduino?
> 
> (Which would be a big + in terms of popularity).

No. Although it hasn't helped.

Micro's tend to be on the small size, all the extra metadata you need 
for D code like ModuleInfo and TypeInfo could easily exceed that budget 
or bump you up into one of the more expensive micros killing D off as a 
possible language.

About the max you'd want here is -betterC which already works.


More information about the Digitalmars-d mailing list