Re: Sneak preview into std.allocator's porcelain

2015-05-10 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 7 May 2015 at 18:26:47 UTC, Andrei Alexandrescu wrote: https://git-scm.com/book/tr/v2/Git-Internals-Plumbing-and-Porcelain Made perfect sense the second I first saw it. -- Andrei I always thought that it was a bit vulgar, myself, but git has made the term at least somewhat

Re: Sneak preview into std.allocator's porcelain

2015-05-10 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html On the face of it, it's doing roughly what I expected, though the devil's in the details, and it's likely taking care of quite a few things that

Re: Sneak preview into std.allocator's porcelain

2015-05-10 Thread deadalnix via Digitalmars-d
On Sunday, 10 May 2015 at 16:56:27 UTC, Jacob Carlborg wrote: On 2015-05-08 21:55, Andrei Alexandrescu wrote: a few measurements would be in order. -- Andrei Be sure you do that on more than one platform. For example, the emulate TLS on OS X can be quite slow, I've heard. I was trying to

Re: Sneak preview into std.allocator's porcelain

2015-05-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-08 21:55, Andrei Alexandrescu wrote: a few measurements would be in order. -- Andrei Be sure you do that on more than one platform. For example, the emulate TLS on OS X can be quite slow, I've heard. -- /Jacob Carlborg

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Andrei Alexandrescu via Digitalmars-d
On 5/8/15 12:04 PM, deadalnix wrote: On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get the built-in allocating expressions (new, array literals, delegates...) to use theAllocator. Cool, thanks, -- Andrei I'm not sure how

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 8 May 2015 at 19:04:20 UTC, deadalnix wrote: On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get the built-in allocating expressions (new, array literals, delegates...) to use theAllocator. Cool, thanks, -- Andrei I'm

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread deadalnix via Digitalmars-d
On Friday, 8 May 2015 at 19:13:21 UTC, Vladimir Panteleev wrote: On Friday, 8 May 2015 at 19:04:20 UTC, deadalnix wrote: On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get the built-in allocating expressions (new, array literals,

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread deadalnix via Digitalmars-d
On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get the built-in allocating expressions (new, array literals, delegates...) to use theAllocator. Cool, thanks, -- Andrei I'm not sure how desirable this is. This require a round trip

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Andrei Alexandrescu via Digitalmars-d
On 5/8/15 1:17 PM, deadalnix wrote: On Friday, 8 May 2015 at 19:54:26 UTC, Vladimir Panteleev wrote: I don't know enough about TLS to argue but it strikes me as odd that it would be slower than the layers of un-inlinable extern(C) calls, going through lifetime.d, gc.d, gcx.d, there locking on a

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 8 May 2015 at 19:53:16 UTC, Andrei Alexandrescu wrote: What's a good name for that? I thought MarkSweepAllocator is it, but that term is more often used in conjunction with garbage collection. Pascal calls these functions Mark and Release :) I named mine TrackingAllocator but

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread deadalnix via Digitalmars-d
On Friday, 8 May 2015 at 19:54:26 UTC, Vladimir Panteleev wrote: I don't know enough about TLS to argue but it strikes me as odd that it would be slower than the layers of un-inlinable extern(C) calls, going through lifetime.d, gc.d, gcx.d, there locking on a global mutex, and allocating

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 8 May 2015 at 19:34:13 UTC, deadalnix wrote: On Friday, 8 May 2015 at 19:13:21 UTC, Vladimir Panteleev wrote: On Friday, 8 May 2015 at 19:04:20 UTC, deadalnix wrote: On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Andrei Alexandrescu via Digitalmars-d
On 5/8/15 12:34 PM, deadalnix wrote: On Friday, 8 May 2015 at 19:13:21 UTC, Vladimir Panteleev wrote: On Friday, 8 May 2015 at 19:04:20 UTC, deadalnix wrote: On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get the built-in

Re: Sneak preview into std.allocator's porcelain

2015-05-08 Thread Andrei Alexandrescu via Digitalmars-d
On 5/8/15 12:13 PM, Vladimir Panteleev wrote: On Friday, 8 May 2015 at 19:04:20 UTC, deadalnix wrote: On Thursday, 7 May 2015 at 18:25:39 UTC, Andrei Alexandrescu wrote: Oh I see. That will be operational once we get the built-in allocating expressions (new, array literals, delegates...) to

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Brian Schott via Digitalmars-d
On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei *Reads module name* ...toilets? Oh. Wait. This is is allocator stuff. Looks like there's a macro expansion problem in makeArray's

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Ali Çehreli via Digitalmars-d
On 05/07/2015 02:18 AM, Brian Schott wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei *Reads module name* ...toilets? Oh. Wait. I thought dishes and tea cups. :) This is is

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 7 May 2015 at 17:57:24 UTC, Andrei Alexandrescu wrote: On 5/6/15 11:00 PM, Vladimir Panteleev wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei Now that

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Namespace via Digitalmars-d
Not what I meant. This is your idea: http://forum.dlang.org/post/l4ccb4$25ul$1...@digitalmars.com Oh, my dream could come true... :)

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Andrei Alexandrescu via Digitalmars-d
On 5/7/15 11:06 AM, Vladimir Panteleev wrote: On Thursday, 7 May 2015 at 17:57:24 UTC, Andrei Alexandrescu wrote: On 5/6/15 11:00 PM, Vladimir Panteleev wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote:

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Andrei Alexandrescu via Digitalmars-d
On 5/7/15 11:13 AM, Ali Çehreli wrote: On 05/07/2015 02:18 AM, Brian Schott wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei *Reads module name* ...toilets? Oh. Wait. I

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Andrei Alexandrescu via Digitalmars-d
On 5/6/15 11:00 PM, Vladimir Panteleev wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei Now that https://issues.dlang.org/show_bug.cgi?id=8269 was fixed, how about that idea of

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Andrei Alexandrescu via Digitalmars-d
On 5/7/15 2:18 AM, Brian Schott wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei *Reads module name* ...toilets? Oh. Wait. This is is allocator stuff. Looks like there's a macro

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Alex Parrill via Digitalmars-d
On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei The links for allocator.temp and allocator.typed lead to 404 pages.

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Andrei Alexandrescu via Digitalmars-d
Alex Parrill initrd...@gmail.com wrote: On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei The links for allocator.temp and allocator.typed lead to 404 pages. Sorry, those modules are

Re: Sneak preview into std.allocator's porcelain

2015-05-07 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 7 May 2015 at 02:28:45 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei Now that https://issues.dlang.org/show_bug.cgi?id=8269 was fixed, how about that idea of using with(scopeAllocator(...)) { /* use

Sneak preview into std.allocator's porcelain

2015-05-06 Thread Andrei Alexandrescu via Digitalmars-d
http://erdani.com/d/phobos-prerelease/std_experimental_allocator_porcelain.html Andrei