Garbage Collection for Systems Programmers

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Apr 7 09:47:51 UTC 2024


On 07/04/2024 9:41 PM, ryuukk_ wrote:
> On Sunday, 7 April 2024 at 06:16:13 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> On 07/04/2024 7:09 AM, Sebastian Nibisz wrote:
>>> On Saturday, 6 April 2024 at 16:49:44 UTC, Richard (Rikki) Andrew 
>>> Cattermole wrote:
>>>> Modern GC's tend to need write barriers to make them work.
>>>
>>> Write barrier can be as cheap as a single atomic write.
>>
>> *can be*
>>
>> It would need to call into the GC as the strategy until we know what 
>> implementations need.
>>
>> It must also be noted that dmd-be doesn't support atomics as 
>> intrinsics and Walter has been very against adding it, so it would 
>> still be a function call.
> 
> Don't wait for Walter, you are capable, if you know how to do it, submit 
> a PR
> 
> I'm pretty sure everyone wants atomics as intrinsics, myself included, 
> just do it

I don't know how to do it and have zero desire to learn that backend to 
that point, let alone how to introduce such intrinsics.

I know enough of x86 assembly to be dangerous, but over all have very 
little experience with backends. There are better ways for me to contribute.


More information about the Digitalmars-d mailing list