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.
  • Re: SerpentOS... ryuukk_ via Digitalmars-d-announce
    • Re: Serp... Adam Wilson via Digitalmars-d-announce
      • Re: ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
        • ... sighoya via Digitalmars-d-announce
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
            • ... Adam Wilson via Digitalmars-d-announce
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
                • ... ryuukk_ via Digitalmars-d-announce
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
    • Re: Serp... Imperatorn via Digitalmars-d-announce
    • Re: Serp... Greggor via Digitalmars-d-announce

Reply via email to