Vision document for H1 2017

Nick Treleaven via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Jan 13 04:53:16 PST 2017


On Friday, 13 January 2017 at 05:33:07 UTC, Chris Wright wrote:
> On that topic, D's arrays would play nicer with both 
> refcounting *and* modern garbage collectors if they were 
> structured as base, offset, length instead of start, length.

That might be slower sometimes as slices wouldn't fit in two 
registers then.

> You could put metadata just before the start of the array, 
> including the reference count.

Yes, but GC arrays already do that with GC metadata (alloc size) 
without having offset, so that technique could in theory be done 
with RC too. It's a bit mysterious how the base address is found, 
would be nice to have some clear docs on this to point to.


More information about the Digitalmars-d-announce mailing list