On Monday, 18 January 2016 at 11:46:36 UTC, Nemanja Boric wrote:
On Monday, 18 January 2016 at 09:28:59 UTC, tcak wrote:
On Monday, 18 January 2016 at 08:12:03 UTC, Nemanja Boric
wrote:
Check https://dlang.org/phobos/std_experimental_allocator.html
Which part of this module provide the functionality of using
non-consecutive memory(distributed) blocks like they are
consecutive?
IIRC, none of them, sorry, but if you're going to implement it,
my guess it that
it should be compatible with `std.experimental.allocator`.
Allocators work with void[] arrays which require memory to be
contiguous. This idea of fragmented memory simply isn't
compatible with allocators. Such a library could provide a range
interface but it would have to be wrapped in a container of some
sort. It could potentially be a candidate for std.container
though.