Re: Rewrite of std.range docs (Was: Re: Making sense of ranges)

2012-03-26 Thread Jesse Phillips
On Monday, 26 March 2012 at 00:50:32 UTC, H. S. Teoh wrote: This thread has further convinced me that std.range's docs *need* this rewrite. So here's my first attempt at it: https://github.com/quickfur/phobos/tree/stdrange_docs I find that opening to be much better. Look forward to t

Re: Making sense of ranges

2012-03-26 Thread Steven Schveighoffer
On Sat, 24 Mar 2012 19:07:01 -0400, Stewart Gordon wrote: On 24/03/2012 18:57, Ali Çehreli wrote: Iterating an output range is also by popFront(). So what it says is, put this element to the output range and advance the range. There is a gotcha about this when the output range is a slice

Re: GC collecting "too much"..

2012-03-26 Thread simendsjo
On Mon, 26 Mar 2012 17:10:34 +0200, Timon Gehr wrote: On 03/26/2012 11:55 AM, simendsjo wrote: It seems threads created in the c library is totally unknown to D. How can I make D aware of these threads when there is no library support for it? You may be looking for this: http://dlang.org/pho

Re: GC collecting "too much"..

2012-03-26 Thread Timon Gehr
On 03/26/2012 11:55 AM, simendsjo wrote: It seems threads created in the c library is totally unknown to D. How can I make D aware of these threads when there is no library support for it? You may be looking for this: http://dlang.org/phobos/core_thread.html#thread_attachThis

Re: Map with maintained insertion order

2012-03-26 Thread Richard Webb
I've done that in C++ before using Boost.MultiIndex, and i saw a post about a D port of that recently (I don't have the link to hand though).

Re: GC collecting "too much"..

2012-03-26 Thread simendsjo
On Mon, 26 Mar 2012 10:13:35 +0200, simendsjo wrote: On Sun, 25 Mar 2012 22:18:02 +0200, bearophile wrote: On Sunday, 25 March 2012 at 19:15:05 UTC, simendsjo wrote: I'm doing some coding against a c library, and Ds GC keeps collecting c owned objects (I think - disabling the GC makes ev

Re: GC collecting "too much"..

2012-03-26 Thread simendsjo
On Sun, 25 Mar 2012 22:18:02 +0200, bearophile wrote: On Sunday, 25 March 2012 at 19:15:05 UTC, simendsjo wrote: I'm doing some coding against a c library, and Ds GC keeps collecting c owned objects (I think - disabling the GC makes everything work) Three alternative solutions: - Allocate

Re: std.json

2012-03-26 Thread Ali Çehreli
On 03/25/2012 08:26 AM, AaronP wrote: Could I get a "hello, world" example of parsing json? The docs look simple enough, but I could still use an example. For what it's worth, I've just sent the following program to a friend before seeing this thread. 1) Save this sample text to a file named