Rethinking the default class hierarchy: Milestone 1, Week 1
rikki cattermole
rikki at cattermole.co.nz
Thu Sep 30 09:32:56 UTC 2021
On 30/09/2021 8:23 PM, Sebastiaan Koppe wrote:
> On Thursday, 30 September 2021 at 04:02:30 UTC, rikki cattermole wrote:
>> I've stopped using shared entirely, it has only one meaning now for me
>> and that is: use atomics.
>>
>> Having it infiltrate everywhere isn't helpful, in fact half the time I
>> spent is on fixing casting to and from shared.
>>
>> This is after trying to implement lock-free concurrent data structures
>> in D for like 6 months, so my opinion is slightly tainted with shared
>> and atomics in general.
>
> I remember fighting with `shared` too initially, trying to force my
> ideas onto the keyword. It resulted in a lot of casts and me hating it.
>
> I did came around though.
9 months ago, my conclusion was the same as yours.
Unfortunately my experiences didn't stop there... lol
More information about the Digitalmars-d
mailing list