Resources for using std.allocator

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 7 13:24:34 PST 2017


On Saturday, 7 January 2017 at 19:50:14 UTC, dewitt wrote:
> On Wednesday, 4 January 2017 at 04:50:55 UTC, xtreak wrote:
>> I am newbie to D learning it for sometime using Ali's book. I 
>> came across std.experimental.allocator and read through 
>> http://dlang.org/library/std/experimental/allocator/building_blocks.html . Can someone explain me the actual benefits of using this and if so any benchmarks explaining the advantage. Maybe its too advanced for me as a beginner now its just I am curious over the usage and applications with a simple hello world like example explaining what this library will accomplish. I asked it previously at https://www.reddit.com/r/programming/comments/4hti33/dconf_2016_is_streaming_right_now/d2satic/ but still I don't understand the exact applications of the same.
>
> Allocators might be a good addition to the articles pages on 
> the website.  Not sure if this has been discussed or if we are 
> adding much there.

You may also consider making a PR to the Dlang Tour:

https://tour.dlang.org

There's already an open issue about a "@nogc gem":

https://github.com/dlang-tour/english/issues/10


More information about the Digitalmars-d-learn mailing list