Resources for using std.allocator

bachmeier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 5 05:37:56 PST 2017


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.

I'd say it's one of those things where if you are asking about 
it, you probably don't need it. I don't think there is such a 
thing as "hello world"[1] because memory allocation is an 
advanced topic. Maybe a better question is what you plan to do 
with D, because in my opinion, most users don't need to worry 
about it.

[1] There might be "hello world" for usage, but not for 
motivation.


More information about the Digitalmars-d-learn mailing list