www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Resources for using std.allocator

reply xtreak <tir.karthi gmail.com> writes:
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_streamin
_right_now/d2satic/ but still I don't understand the exact applications of the
same.
Jan 03
next sibling parent bachmeier <no spam.net> writes:
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_streamin
_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.
Jan 05
prev sibling parent reply dewitt <dkdewitt gmail.com> writes:
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_streamin
_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.
Jan 07
parent Seb <seb wilzba.ch> writes:
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_streamin
_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
Jan 07