On Wednesday, 20 April 2016 at 13:41:27 UTC, Nordlöw wrote:
https://github.com/nordlow/phobos-next/blob/master/src/variant_pointer.d
Moved here:
https://github.com/nordlow/phobos-next/blob/master/src/variant_ex.d
On Wednesday, 20 April 2016 at 20:07:31 UTC, Nordlöw wrote:
On Wednesday, 20 April 2016 at 16:08:32 UTC, Lass Safin wrote:
core.memory.GC.setAttr can set attributes for a block of
memory, with which you can set the attribute NO_SCAN, which as
it implies, forces that no scan be done in the parti
On Wednesday, 20 April 2016 at 18:40:58 UTC, Alex Parrill wrote:
As for the GC, you're probably out of luck. Adding a global
mask option is unlikely to work well if multiple libraries use
it.
So we need an optional block-local mask then! ;)
On Wednesday, 20 April 2016 at 16:08:32 UTC, Lass Safin wrote:
core.memory.GC.setAttr can set attributes for a block of
memory, with which you can set the attribute NO_SCAN, which as
it implies, forces that no scan be done in the particular block
of memory.
This can be used to insure that the G
On Wednesday, 20 April 2016 at 13:41:27 UTC, Nordlöw wrote:
At
https://github.com/nordlow/phobos-next/blob/master/src/variant_pointer.d
I've implemented a pointer-only version of Variant called
VariantPointer.
I plan to use it to construct light-weight polymorphism in trie
containers
On Wednesday, 20 April 2016 at 14:36:54 UTC, Nordlöw wrote:
On Wednesday, 20 April 2016 at 13:41:27 UTC, Nordlöw wrote:
At
https://github.com/nordlow/phobos-next/blob/master/src/variant_pointer.d
Further:
What to do with fact that the GC will fail to scan
VariantPointers?
Can the GC be tw
On Wednesday, 20 April 2016 at 13:41:27 UTC, Nordlöw wrote:
At
https://github.com/nordlow/phobos-next/blob/master/src/variant_pointer.d
I've implemented a pointer-only version of Variant called
VariantPointer.
[...]
It safe to assume that `typeBits` most significant bits of a
pointer
On Wednesday, 20 April 2016 at 13:41:27 UTC, Nordlöw wrote:
At
https://github.com/nordlow/phobos-next/blob/master/src/variant_pointer.d
Further:
What to do with fact that the GC will fail to scan
VariantPointers?
Can the GC be tweaked to mask out the type bits before scanning?
At
https://github.com/nordlow/phobos-next/blob/master/src/variant_pointer.d
I've implemented a pointer-only version of Variant called
VariantPointer.
I plan to use it to construct light-weight polymorphism in trie
containers for D I'm currently writing.
VariantPointer uses the