The easiest way to compete with Rust and cure D's GC reputation: switch to ARC.

Dom DiSc dominikus at scherkl.de
Sun Jul 13 13:51:41 UTC 2025


On Saturday, 12 July 2025 at 23:32:59 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> Mutability in language doesn't matter for this kind of thing.
>
> For internal details like this you can break const, immutable 
> and shared, they are a preventative measure for the human, not 
> for the runtime.

But having an "need to be mutable RC" in an object makes it 
impossible for the compiler to store it e.g. in read-only memory.

> What matters is if something is in read only memory

Of course this is what I meant. If an Object is stored in memory 
that's e.g. protected by an MPU, the RC need to be stored in a 
different place.

And if storing in a different place is once implemented, why 
don't use it always? This makes management much easier.


More information about the dip.ideas mailing list