D programming language popularity

jmh530 john.michael.hall at gmail.com
Sun Nov 8 14:21:25 UTC 2020


On Sunday, 8 November 2020 at 09:27:08 UTC, Paulo Pinto wrote:
> On Sunday, 8 November 2020 at 01:36:09 UTC, IGotD- wrote:
>> On Sunday, 8 November 2020 at 01:22:15 UTC, Paul Backus wrote:
>>>
>>> D already supports changing GC algorithms. [1] Currently, 
>>> there are only two algorithms to choose from (conservative 
>>> and precise), but there's nothing stopping anyone from adding 
>>> more.
>>>
>>> [1] https://dlang.org/spec/garbage.html#gc_config
>>
>> D only supports tracing GC.
>
> So?
>
> There are plenty tracing GC algorithms to choose from:
>
> - mark and sweep
> - concurrent
> - fully parallel
> - pauseless
> - colouring
> - with nursery
> - with several generations
> - thread local
> - real time
> - soft real time
> - how far interior pointers are supported
> - with or without safe points
> - copy on write for mutations
>
> http://gchandbook.org/contents.html provides a good overview, 
> although it has been somehow superseded by research published 
> in ACM SIGPLAN and IEEE papers as well.
>
> Plenty of opportunities for alternative implementations to plug 
> into D's runtime.

Would it be possible to tune the existing GC to control how much 
garbage is collected? I mean, for instance, to tell the GC to 
label objects as garbage as normal, but only to collect so much 
at a time. The others would be saved to be collected later.


More information about the Digitalmars-d mailing list