May 28

As of late, I have taken up an interest in learning about how the D language is implemented at a compiler level, specifically the GC implementation. Unfortunately, the source code is poorly documented, and is too large to simply read all of it in a reasonable amount of time. If anyone here can help me, or at least point me to relevant resources, I would be very grateful.

May 28
On 28/05/2024 12:54 PM, Ruby The Roobster wrote:
> As of late, I have taken up an interest in learning about how the D language is implemented at a compiler level, specifically the GC implementation.  Unfortunately, the source code is poorly documented, and is too large to simply read all of it in a reasonable amount of time.  If anyone here can help me, or at least point me to relevant resources, I would be very grateful.

From a theory standpoint this book should give you a pretty good overview of how GC's work. It is the book I recommend for introduction to GC's.

https://www.amazon.com/Garbage-Collection-Handbook-International-Perspectives-dp-1032218037/dp/1032218037/ref=dp_ob_title_bk

But yes that GC is very hard to get into, and its been tacked on over the years which make it even harder to untangle. Plus there is a memory allocator in there too.