SerpentOS departs from Dlang

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Sep 16 10:22:31 UTC 2023


On 16/09/2023 9:02 PM, Adam Wilson wrote:
> I know there are ref-counted languages so theoretically it should be 
> workable, but the in a language as complex as D there may be dragons on 
> the edges.

The approach that I think will work well for us is to support reference 
counting on structs & classes, and make them not adhere to DIP1000.

Then you borrow memory from them, and DIP1000 takes over.

This minimizes the surface area of the language that needs to understand 
reference counting and life time handling. So our one dimensional 
approach with DIP1000, will absolutely shine.

I will be doing the DIP for RC due to its cost of it and the fact that 
modern backends do understand it and can make it cheaper.


More information about the Digitalmars-d-announce mailing list