Re: Adam D. Ruppe's D Cookbook now available!

2014-06-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 10/06/14 19:43, Adam D. Ruppe wrote: blargh, I thought it could do more. Does it at least work to pull out extern C functions from a C++ header? Hmm, I haven't tried that. You need to specified which language to use. Currently DStep has hard coded its language support, in which C++ is not

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-10 Thread Lars T. Kyllingstad via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:48:57 UTC, Chris wrote: There's _always_ something you can learn, even if you think you know it all. Like the fact that you can @disable this() for a struct, even though you can't implement it. I didn't know that, but I have the perfect use case for it (and it's

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 9 June 2014 at 19:14:15 UTC, Jacob Carlborg wrote: Adam, I noticed that you mentioned DStep in the book. By reading the part about integrating with C++ I got the impression that DStep can handle C++. Currently, that's not the case. blargh, I thought it could do more. Does it at

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 10 June 2014 at 17:31:52 UTC, Lars T. Kyllingstad wrote: Like the fact that you can @disable this() for a struct, even though you can't implement it. If my memory is working properly I actually think I was the one who suggested that to Walter a few years ago when it was

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-09 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-05-28 20:14, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/ After

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-06 Thread Chris via Digitalmars-d-announce
On Thursday, 5 June 2014 at 17:48:44 UTC, Jacob Carlborg wrote: On 2014-06-05 11:25, Chris wrote: My hard copy arrived today. Now I can read it anywhere I like ;) Funnily enough, it's only the second book about D and still I've been more productive in D than in any other language, languages

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-05 Thread Chris via Digitalmars-d-announce
On Wednesday, 4 June 2014 at 09:45:39 UTC, ezneh wrote: On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-05 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-06-05 11:25, Chris wrote: My hard copy arrived today. Now I can read it anywhere I like ;) Funnily enough, it's only the second book about D and still I've been more productive in D than in any other language, languages for which thousands of titles are available. There's a book

Re: Adam D. Ruppe's D Cookbook now available!

2014-06-01 Thread WhatMeWorry via Digitalmars-d-announce
I am happy to report that it is on Safari Books website as well. Sweet! It really compliment's TDPL and Ali's book as well.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Mike James via Digitalmars-d-announce
Walter Bright newshou...@digitalmars.com wrote in message news:lm5924$7r8$1...@digitalmars.com... http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Chris via Digitalmars-d-announce
On Friday, 30 May 2014 at 09:07:54 UTC, Mike James wrote: Walter Bright newshou...@digitalmars.com wrote in message news:lm5924$7r8$1...@digitalmars.com... http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread w0rp via Digitalmars-d-announce
I received my copy this morning, earlier than I thought I would. I shall check it out over the weekend. I suspect I'll probably know a lot of the things in the book, but I'm the type who likes to watch introductory lectures because there's always something I didn't see before.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Chris via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:46:35 UTC, w0rp wrote: I received my copy this morning, earlier than I thought I would. I shall check it out over the weekend. I suspect I'll probably know a lot of the things in the book, but I'm the type who likes to watch introductory lectures because there's

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:25:45 UTC, Chris wrote: If you already know D, you don't need to read it cover-to-cover. Just read the sexy bits :) Yea, I also tried to keep the dependencies on previous content to a minimum or at the least, explicit to make jumping around that much easier.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:46:35 UTC, w0rp wrote: I received my copy this morning, earlier than I thought I would. I still haven't gotten my copies! Hopefully will be here today though. I suspect I'll probably know a lot of the things in the book Yea, especially if you're a regular on

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Chris via Digitalmars-d-announce
On Friday, 30 May 2014 at 13:25:28 UTC, Adam D. Ruppe wrote: On Friday, 30 May 2014 at 11:25:45 UTC, Chris wrote: If you already know D, you don't need to read it cover-to-cover. Just read the sexy bits :) Yea, I also tried to keep the dependencies on previous content to a minimum or at the

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Jonathan M Davis via Digitalmars-d-announce
On Fri, 30 May 2014 11:48:56 + Chris via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 30 May 2014 at 11:46:35 UTC, w0rp wrote: I received my copy this morning, earlier than I thought I would. I shall check it out over the weekend. I suspect I'll

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Dejan Lekic via Digitalmars-d-announce
Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/ After watching Adam's most

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-05-28 20:14, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/ After

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread simendsjo via Digitalmars-d-announce
On 05/29/2014 11:51 AM, Jacob Carlborg wrote: On 2014-05-28 20:14, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Chris via Digitalmars-d-announce
On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Philippe Sigaud via Digitalmars-d-announce
On Thu, May 29, 2014 at 12:28 PM, Chris via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 29 May 2014 at 10:28:45 UTC, Chris wrote: I dug into Chapter 3 about ranges. It clarifies a lot of things about ranges. Yeah, a lot of the stuff there comes from my own process when writing my first range consuming function (which is still in a pretty ugly form in my sha.d on

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread uri via Digitalmars-d-announce
On Thursday, 29 May 2014 at 10:28:45 UTC, Chris wrote: On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Szymon Gatner via Digitalmars-d-announce
On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Chris via Digitalmars-d-announce
On Thursday, 29 May 2014 at 12:45:20 UTC, Adam D. Ruppe wrote: On Thursday, 29 May 2014 at 10:28:45 UTC, Chris wrote: I dug into Chapter 3 about ranges. It clarifies a lot of things about ranges. Yeah, a lot of the stuff there comes from my own process when writing my first range consuming

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Steven Schveighoffer via Digitalmars-d-announce
On Thu, 29 May 2014 06:20:51 -0400, Atila Neves atila.ne...@gmail.com wrote: For some reason I didn't even know it was available as an ebook until I read this. At which point I promptly bought it. Dead trees and their lack of Ctrl-F... :) To be fair, the physical book comes with access to

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 29 May 2014 at 13:12:33 UTC, Chris wrote: a weird after taste, i.e. questions like is this really the right way? am I doing something wrong?. I ask myself that a lot too, even the book isn't really meant to be authoritative, more like this works pretty well for me hopefully it

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 29 May 2014 at 13:01:50 UTC, Szymon Gatner wrote: Later in same chapter: ... or being collected by the garbage collector—its destructor is called, if present. Is that really true? hmm, you seem to be right, but this might be a bug. I'm pretty sure the struct dtors were called

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Szymon Gatner via Digitalmars-d-announce
On Thursday, 29 May 2014 at 13:57:41 UTC, Adam D. Ruppe wrote: On Thursday, 29 May 2014 at 13:01:50 UTC, Szymon Gatner wrote: Later in same chapter: ... or being collected by the garbage collector—its destructor is called, if present. Is that really true? hmm, you seem to be right, but this

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Steven Schveighoffer via Digitalmars-d-announce
On Thu, 29 May 2014 09:57:40 -0400, Adam D. Ruppe destructiona...@gmail.com wrote: On Thursday, 29 May 2014 at 13:01:50 UTC, Szymon Gatner wrote: Later in same chapter: ... or being collected by the garbage collector—its destructor is called, if present. Is that really true? hmm, you

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 29 May 2014 at 13:01:50 UTC, Szymon Gatner wrote: - point 5 (of How to do it...) says: ... and free the object if necessary, but then in code: Sorry, I typed this answer but forgot to actually post it. But to keep the example focused on postblit and destructor stuff instead of

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 29 May 2014 at 14:42:02 UTC, Steven Schveighoffer wrote: The GC never has called struct destructors for arrays of structs or individual structs allocated on the heap. Hmm, that's some weird behavior.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/29/2014 8:45 AM, Adam D. Ruppe wrote: One of the sections there talks about emulating random access on a structure that doesn't really support it (a linked list) and focuses on the hidden performance. That's the range-writer side of the same range-consumer rule: don't try to get fancy and

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
Packt made an excerpt from the range chapter available too: https://www.packtpub.com/article/ranges That's from the tail end of the chapter where I started talking about emulation performance (relevant to this little convo) and how to put some stuff together.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Philippe Sigaud via Digitalmars-d-announce
On Thu, May 29, 2014 at 2:31 PM, Jacob Carlborg wrote: Amazon has a version for their Kindle [1]. I have not seen any mentioning of other formats. [1] http://www.amazon.com/D-Cookbook-Adam-D-Ruppe-ebook/dp/B00KLAJ62M/ref=sr_1_1_title_1_kin?s=booksie=UTF8qid=1401366690sr=1-1 But the paper

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-28 Thread Olivier Pisano via Digitalmars-d-announce
I have just ordered mine. I can't wait to get it ! 

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-28 Thread Misu via Digitalmars-d-announce
Thank you, I ordered mine as well !

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-28 Thread Szymon Gatner via Digitalmars-d-announce
On Wednesday, 28 May 2014 at 19:06:04 UTC, Misu wrote: Thank you, I ordered mine as well ! I am already half through mine :) Great stuff!