3 ms·
Great talk. He and others made these principles manifest in Dlang's std.experimental.allocator [0] which offers composability and is really quite nice, allowin
by chromatin 6y ago
Great talk.
He and others made these principles manifest in Dlang's std.experimental.allocator [0] which offers composability and is really quite nice, allowing for you to use Dlang's GC, malloc, custom malloc, various strategies for metering out the allocated blocks, and any combination thereof.
The documentation can be hard to navigate and it is easy to miss the submodules listed in the tree on the left hand side, so I would especially draw attention to `building blocks` [1] and `mallocator`, `gc_allocator`, etc.
[0] https://dlang.org/phobos/std_experimental_allocator.html https://dlang.org/phobos/std_experimental_allocator.html
[1] https://dlang.org/phobos/std_experimental_allocator_building_blocks.html https://dlang.org/phobos/std_experimental_allocator_building...
- mhh__ 6y agoReally should be std.allocator now. I might bring it up on the forum later.