www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Implementation Details

reply Ruby The Roobster <michaeleverestc79 gmail.com> writes:
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 27
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
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.
May 27