Garbage Collection for Systems Programmers

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Apr 2 14:50:19 UTC 2024


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!

Locking people into a specific compiler version makes peoples lives 
harder than it needs to be.

Split the hooks out, into a compiler adjacent library with a well 
defined API for runtimes to implement will make custom runtime writers 
lives a lot easier.

It'll also mean faster builds since less stuff is in object.d so lots of 
wins here.


More information about the Digitalmars-d mailing list