www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - My D book is now officially coming soon

reply "Adam D. Ruppe" <destructionator gmail.com> writes:
As some of you might know, I've been working on a D book over the 
last few months. It is now available as "coming soon" on the 
publisher's website:

http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


I was hoping to have it finished in time for the D conference, 
but the publisher thought that was too soon to be realistic and 
it is looking like they are right... right now we believe it will 
be available in the summer.

Anyway, the topics I talk about include:

* Phobos, including Ranges
* Testing (both static and run time), documentation, and error 
handling
* Reflection and code generation
* All kinds of fun with structs
* Integration with other languages and environments
* Using some third party libraries

and some more. My goal is to act as a nice complement to Andrei's 
book, not to repeat it, so while I do cover a lot of language 
features, I try to do them in the context of bigger picture 
tasks. So hopefully, the books can go together and reinforce each 
other.
Mar 03 2014
next sibling parent "Chris" <wendlec tcd.ie> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


 I was hoping to have it finished in time for the D conference, 
 but the publisher thought that was too soon to be realistic and 
 it is looking like they are right... right now we believe it 
 will be available in the summer.

 Anyway, the topics I talk about include:

 * Phobos, including Ranges
 * Testing (both static and run time), documentation, and error 
 handling
 * Reflection and code generation
 * All kinds of fun with structs
 * Integration with other languages and environments
 * Using some third party libraries

 and some more. My goal is to act as a nice complement to 
 Andrei's book, not to repeat it, so while I do cover a lot of 
 language features, I try to do them in the context of bigger 
 picture tasks. So hopefully, the books can go together and 
 reinforce each other.
Looking forward to reading it!
Mar 03 2014
prev sibling next sibling parent "JR" <zorael gmail.com> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


 I was hoping to have it finished in time for the D conference, 
 but the publisher thought that was too soon to be realistic and 
 it is looking like they are right... right now we believe it 
 will be available in the summer.
Preordered.
Mar 03 2014
prev sibling next sibling parent reply "Meta" <jared771 gmail.com> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


 I was hoping to have it finished in time for the D conference, 
 but the publisher thought that was too soon to be realistic and 
 it is looking like they are right... right now we believe it 
 will be available in the summer.

 Anyway, the topics I talk about include:

 * Phobos, including Ranges
 * Testing (both static and run time), documentation, and error 
 handling
 * Reflection and code generation
 * All kinds of fun with structs
 * Integration with other languages and environments
 * Using some third party libraries

 and some more. My goal is to act as a nice complement to 
 Andrei's book, not to repeat it, so while I do cover a lot of 
 language features, I try to do them in the context of bigger 
 picture tasks. So hopefully, the books can go together and 
 reinforce each other.
Will the book also be available on Amazon?
Mar 03 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Monday, 3 March 2014 at 17:06:36 UTC, Meta wrote:
 Will the book also be available on Amazon?
Yes, closer to the release date.
Mar 03 2014
parent "Meta" <jared771 gmail.com> writes:
On Monday, 3 March 2014 at 17:11:59 UTC, Adam D. Ruppe wrote:
 On Monday, 3 March 2014 at 17:06:36 UTC, Meta wrote:
 Will the book also be available on Amazon?
Yes, closer to the release date.
Great, I'm excited to read it.
Mar 03 2014
prev sibling next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 3/3/2014 8:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last few
 months. It is now available as "coming soon" on the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Congratulations! This is a great contribution to D.
 I was hoping to have it finished in time for the D conference, but the
publisher
 thought that was too soon to be realistic and it is looking like they are
 right...
Dang, we could have set up a table for your book.
Mar 03 2014
parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 03/03/2014 09:24 AM, Walter Bright wrote:

 I was hoping to have it finished in time for the D conference, but the
 publisher
 thought that was too soon to be realistic and it is looking like 
they are
 right...
Dang, we could have set up a table for your book.
He should bring early copies to the conference! Please, please, please... (<-- I've already earned mine. :p ) Ali
Mar 03 2014
parent "extrawurst" <stephan extrawurst.org> writes:
On Monday, 3 March 2014 at 22:36:29 UTC, Ali Çehreli wrote:
 On 03/03/2014 09:24 AM, Walter Bright wrote:

 I was hoping to have it finished in time for the D
conference, but the
 publisher
 thought that was too soon to be realistic and it is looking
like they are
 right...
Dang, we could have set up a table for your book.
He should bring early copies to the conference! Please, please, please... (<-- I've already earned mine. :p )
+1
 Ali
Mar 03 2014
prev sibling next sibling parent =?UTF-8?B?IlRow6lv?= Bueno" <munrek gmx.com> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
This is a really good news !
Mar 03 2014
prev sibling next sibling parent "Craig Dillabaugh" <cdillaba cg.scs.carleton.ca> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


 I was hoping to have it finished in time for the D conference, 
 but the publisher thought that was too soon to be realistic and 
 it is looking like they are right... right now we believe it 
 will be available in the summer.

 Anyway, the topics I talk about include:

 * Phobos, including Ranges
 * Testing (both static and run time), documentation, and error 
 handling
 * Reflection and code generation
 * All kinds of fun with structs
 * Integration with other languages and environments
 * Using some third party libraries

 and some more. My goal is to act as a nice complement to 
 Andrei's book, not to repeat it, so while I do cover a lot of 
 language features, I try to do them in the context of bigger 
 picture tasks. So hopefully, the books can go together and 
 reinforce each other.
Congratulations. I certainly intend to buy a copy.
Mar 03 2014
prev sibling next sibling parent "Gary Willoughby" <dev nomad.so> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


 I was hoping to have it finished in time for the D conference, 
 but the publisher thought that was too soon to be realistic and 
 it is looking like they are right... right now we believe it 
 will be available in the summer.

 Anyway, the topics I talk about include:

 * Phobos, including Ranges
 * Testing (both static and run time), documentation, and error 
 handling
 * Reflection and code generation
 * All kinds of fun with structs
 * Integration with other languages and environments
 * Using some third party libraries

 and some more. My goal is to act as a nice complement to 
 Andrei's book, not to repeat it, so while I do cover a lot of 
 language features, I try to do them in the context of bigger 
 picture tasks. So hopefully, the books can go together and 
 reinforce each other.
Looks great. I understand the effort and dedication of writing a technical book, it's not a small thing. I'll definitely be buying a copy when released. In fact i can't wait. :)
Mar 03 2014
prev sibling next sibling parent reply "Francesco Cattoglio" <francesco.cattoglio gmail.com> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
I see there's a "sample chapters" tab, which is empty right now. Can we expect some preview chapter coming out soonish, too?
Mar 03 2014
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Monday, 3 March 2014 at 18:33:32 UTC, Francesco Cattoglio 
wrote:
 I see there's a "sample chapters" tab, which is empty right 
 now. Can we expect some preview chapter coming out soonish, too?
I don't know when, but eventually, yes. They'll probably wait for the first draft to be done (a month or so away still) before choosing one to put on the site.
Mar 03 2014
prev sibling next sibling parent reply "bearophile" <bearophileHUGS lycos.com> writes:
Adam D. Ruppe:

 My goal is to act as a nice complement to Andrei's book, not to 
 repeat it, so while I do cover a lot of language features, I 
 try to do them in the context of bigger picture tasks. So 
 hopefully, the books can go together and reinforce each other.
Congratulations Adam :-) Now among the printed books about D there's Andrei book, the book about Tango, and your one. Plus there's Ali Çehreli online book, and probably more. Compared to other new languages like Scala there are far less books about D, but the situation is improving :-) Bye, bearophile
Mar 03 2014
parent "Jesse Phillips" <Jesse.K.Phillips+D gmail.com> writes:
On Monday, 3 March 2014 at 18:39:34 UTC, bearophile wrote:
 Adam D. Ruppe:

 My goal is to act as a nice complement to Andrei's book, not 
 to repeat it, so while I do cover a lot of language features, 
 I try to do them in the context of bigger picture tasks. So 
 hopefully, the books can go together and reinforce each other.
Congratulations Adam :-) Now among the printed books about D there's Andrei book, the book about Tango, and your one. Plus there's Ali Çehreli online book, and probably more. Compared to other new languages like Scala there are far less books about D, but the situation is improving :-) Bye, bearophile
I believe there is a Japanese book for ~0.110 http://www.prowiki.org/wiki4d/wiki.cgi?DevelopmentWithD#OtherLanguagesnon-English But the link is dead and I really couldn't/can't confirm that the book was print.
Mar 04 2014
prev sibling next sibling parent "Stanislav Blinov" <stanislav.blinov gmail.com> writes:
Excellent! Congratulations! Best of luck finishing the book and 
publishing it!
Mar 03 2014
prev sibling next sibling parent "Dicebot" <public dicebot.lv> writes:
Damn, soon I will need to actually think before choosing what 
book to recommend to newbies! :)
Mar 03 2014
prev sibling next sibling parent reply "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Mon, 03 Mar 2014 11:37:48 -0500, Adam D. Ruppe  
<destructionator gmail.com> wrote:

 As some of you might know, I've been working on a D book over the last  
 few months. It is now available as "coming soon" on the publisher's  
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book


 I was hoping to have it finished in time for the D conference, but the  
 publisher thought that was too soon to be realistic and it is looking  
 like they are right... right now we believe it will be available in the  
 summer.

 Anyway, the topics I talk about include:

 * Phobos, including Ranges
 * Testing (both static and run time), documentation, and error handling
 * Reflection and code generation
 * All kinds of fun with structs
 * Integration with other languages and environments
 * Using some third party libraries

 and some more. My goal is to act as a nice complement to Andrei's book,  
 not to repeat it, so while I do cover a lot of language features, I try  
 to do them in the context of bigger picture tasks. So hopefully, the  
 books can go together and reinforce each other.
Congratulations! I look forward to reading it. -Steve
Mar 03 2014
parent Philippe Sigaud <philippe.sigaud gmail.com> writes:
 On Mon, 03 Mar 2014 11:37:48 -0500, Adam D. Ruppe
 <destructionator gmail.com> wrote:

 As some of you might know, I've been working on a D book over the last few
 months. It is now available as "coming soon" on the publisher's website:


 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Nice! I find what you write here always clear and bringing very interesting stuff along. Your posts here are always insightful, I'm really looking forward to reading this
 * Phobos, including Ranges
 * Testing (both static and run time), documentation, and error handling
 * Reflection and code generation
 * All kinds of fun with structs
 * Integration with other languages and environments
 * Using some third party libraries
Nice choice of subjects! Good luck to finish it, it's always a very tiring endeavour.
Mar 03 2014
prev sibling next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/3/14, 8:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Let's share this on reddit tomorrow at 9 AM PST. Thanks! Andrei
Mar 03 2014
prev sibling next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/3/14, 8:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
I thought it's implied since I've already been connected to the book as a reviewer: congratulations to Adam for undertaking such a powerful project. I'm enjoying the galleys quite a bit. Andrei
Mar 03 2014
prev sibling next sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 3/3/2014 11:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Sounds awesome, congrats!
Mar 03 2014
prev sibling next sibling parent "Mike" <none none.com> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Congratulations! Looking forward to getting my hands on it.
Mar 03 2014
prev sibling next sibling parent John J <john.joyus gmail.com> writes:
On 03/03/2014 11:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book



 I was hoping to have it finished in time for the D conference, but the
 publisher thought that was too soon to be realistic and it is looking
 like they are right... right now we believe it will be available in the
 summer.
Congratulations! I will buy it as soon as it's available.
Mar 03 2014
prev sibling next sibling parent "Jonathan Dunlap" <jadit2 gmail.com> writes:
I'm excited to check it out! +1 preorder
Mar 03 2014
prev sibling next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/3/14, 8:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Announced: https://www.facebook.com/dlang.org/posts/10202073362529100?stream_ref=10 http://www.reddit.com/r/programming/comments/1zjt9y/d_cookbook_available_for_preordering_from_packt/ I get internal server error from Twitter. Andrei
Mar 04 2014
next sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 4 March 2014 at 18:39:01 UTC, Andrei Alexandrescu 
wrote:
 Announced:
Ah, cool, I almost forgot! BTW my brain is currently on something that might be of interest: I'm writing a little float to string function. Phobos currently uses sprintf which can't be run at compile time and isn't pure/ safe, so my new D implementation.... if I get it right on all the cases, it is close now tho... might be a nice replacement there.
Mar 04 2014
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/4/14, 10:41 AM, Adam D. Ruppe wrote:
 On Tuesday, 4 March 2014 at 18:39:01 UTC, Andrei Alexandrescu wrote:
 Announced:
Ah, cool, I almost forgot! BTW my brain is currently on something that might be of interest: I'm writing a little float to string function. Phobos currently uses sprintf which can't be run at compile time and isn't pure/ safe, so my new D implementation.... if I get it right on all the cases, it is close now tho... might be a nice replacement there.
It's a much harder problem than one might anticipate. http://www.serpentine.com/blog/2011/06/29/here-be-dragons-advances-in-problems-you-didnt-even-know-you-had/ (article by my manager!) Andrei
Mar 04 2014
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/4/14, 10:57 AM, Andrei Alexandrescu wrote:
 On 3/4/14, 10:41 AM, Adam D. Ruppe wrote:
 On Tuesday, 4 March 2014 at 18:39:01 UTC, Andrei Alexandrescu wrote:
 Announced:
Ah, cool, I almost forgot! BTW my brain is currently on something that might be of interest: I'm writing a little float to string function. Phobos currently uses sprintf which can't be run at compile time and isn't pure/ safe, so my new D implementation.... if I get it right on all the cases, it is close now tho... might be a nice replacement there.
It's a much harder problem than one might anticipate. http://www.serpentine.com/blog/2011/06/29/here-be-dragons-advances-in-problems-you-didnt-even-know-you-had/ (article by my manager!) Andrei
That said I really wish we had CTFE-able parsing and formatting for FP numbers. The opportunities for function tabulation, interpolation etc. are fantastic. Andrei
Mar 04 2014
prev sibling next sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 4 March 2014 at 18:56:50 UTC, Andrei Alexandrescu 
wrote:
 It's a much harder problem than one might anticipate.
Indeed, I started it last night figuring I could slap something together in 30 minutes to do the job... now I've spent over three hours on it and it still isn't quite right. It almost works (including in CTFE) but rounds some numbers incorrectly (very large and very small especially). The guys on IRC said to look up the Burger algorithm and do it right, but I kinda wanna just finish it all by myself then maybe take a look at the prior art to see how wrong I was :)
Mar 04 2014
next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 3/4/2014 12:04 PM, Adam D. Ruppe wrote:
 On Tuesday, 4 March 2014 at 18:56:50 UTC, Andrei Alexandrescu wrote:
 It's a much harder problem than one might anticipate.
Indeed, I started it last night figuring I could slap something together in 30 minutes to do the job... now I've spent over three hours on it and it still isn't quite right. It almost works (including in CTFE) but rounds some numbers incorrectly (very large and very small especially).
3 hours? Try a week or two.
Mar 04 2014
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 4 March 2014 at 22:29:31 UTC, Walter Bright wrote:
 3 hours? Try a week or two.
Yeah, I believe it now. Got close with my int version (shifting the fractional portion by the exponent... works great until it overflows adding up the bits). Tried a version with floating point math (cast to int, print that, append . to the string, raise the other to some power of ten, cast to int, call it done) and even that didn't actually work right - the leading zeroes or high exponents weren't right. Haven't even tried parsing them yet! Yikes. I hate to admit defeat, but this has blown my time budget to pieces. Time to give it up. :(
Mar 04 2014
prev sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 3/4/2014 3:04 PM, Adam D. Ruppe wrote:
 but I kinda wanna just finish it all by myself then maybe take a look at
 the prior art to see how wrong I was :)
I like to do that too :) That's what I tried the first time I ever did any parsing (it might have even just been lexing at that point). Wound up with several notebook pages filled with some half-baked bullshit "theory" that made no sense, and then gave up while trying to distill general rules out of it. I'm kind of amazed just how far I managed to dig down that particular rabbit hole. It was fun, though. And it made learning the proper theory easier since it made so much more sense than my crazy version ;)
Mar 04 2014
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 3/4/2014 10:57 AM, Andrei Alexandrescu wrote:
 It's a much harder problem than one might anticipate.
It might work better for CTFE to notice that the floating point formatting function is being called, and instead of interpreting that function, do its own workalike. Certainly that'd be a heluva lot faster. A bugzilla issue for this would be apropos.
Mar 04 2014
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/4/14, 10:39 AM, Andrei Alexandrescu wrote:
 On 3/3/14, 8:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Announced: https://www.facebook.com/dlang.org/posts/10202073362529100?stream_ref=10 http://www.reddit.com/r/programming/comments/1zjt9y/d_cookbook_available_for_preordering_from_packt/ I get internal server error from Twitter.
The Net is definitely in a bad mood today. My reddit submission shows "1 comment" but there's no comment to see. It also appear in "new" submissions but not in "hot" submissions. Andrei
Mar 04 2014
parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Tuesday, 4 March 2014 at 18:58:43 UTC, Andrei Alexandrescu 
wrote:
 The Net is definitely in a bad mood today. My reddit submission 
 shows "1 comment" but there's no comment to see. It also appear 
 in "new" submissions but not in "hot" submissions.
I don't see it in http://www.reddit.com/r/programming/new/ .
Mar 04 2014
parent reply Max Klyga <max.klyga gmail.com> writes:
On 2014-03-04 19:14:13 +0000, Vladimir Panteleev said:

 On Tuesday, 4 March 2014 at 18:58:43 UTC, Andrei Alexandrescu wrote:
 The Net is definitely in a bad mood today. My reddit submission shows 
 "1 comment" but there's no comment to see. It also appear in "new" 
 submissions but not in "hot" submissions.
I don't see it in http://www.reddit.com/r/programming/new/ .
Probably was filtered by some algorithm. Contact moderators.
Mar 04 2014
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 3/4/2014 12:46 PM, Max Klyga wrote:
 On 2014-03-04 19:14:13 +0000, Vladimir Panteleev said:

 On Tuesday, 4 March 2014 at 18:58:43 UTC, Andrei Alexandrescu wrote:
 The Net is definitely in a bad mood today. My reddit submission shows "1
 comment" but there's no comment to see. It also appear in "new" submissions
 but not in "hot" submissions.
I don't see it in http://www.reddit.com/r/programming/new/ .
Probably was filtered by some algorithm. Contact moderators.
yah, looks like that happened.
Mar 04 2014
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/4/14, 2:35 PM, Walter Bright wrote:
 On 3/4/2014 12:46 PM, Max Klyga wrote:
 On 2014-03-04 19:14:13 +0000, Vladimir Panteleev said:

 On Tuesday, 4 March 2014 at 18:58:43 UTC, Andrei Alexandrescu wrote:
 The Net is definitely in a bad mood today. My reddit submission
 shows "1
 comment" but there's no comment to see. It also appear in "new"
 submissions
 but not in "hot" submissions.
I don't see it in http://www.reddit.com/r/programming/new/ .
Probably was filtered by some algorithm. Contact moderators.
yah, looks like that happened.
Messaged a moderator. The post has been approved. However the timing is crappy so essentially the opportunity for a broad reach has been wasted. BTW this is not something that only I can do. Anyone can politely message the moderators and ask what happened. Had that happened earlier (I've had a million meetings today), the impact of the post might have been much higher. Let me reiterate: there's a lot of good talk about helping D out. Concurrently there are many simple, absolutely trivial tasks that are very easy for anyone to do but add to a lot of overhead if they all fall on the same person. Case in point, I asked for the photos of the keynote speakers on the homepage. This is a good idea because e.g. Scott's mugshot is instant credibility and a good selling points. Nobody found it worth their while to do that, so I ended up doing it myself, too. It would be awesome if there was more attention (thanks eco for the dconf.org pull request!) paid to all things that we can crowdsource. Thanks, Andrei
Mar 04 2014
prev sibling next sibling parent reply "Suliman" <evermind live.ru> writes:
to bare metal code
Do you mean low-level code like drivers?
Mar 05 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Wednesday, 5 March 2014 at 13:06:48 UTC, Suliman wrote:
 Do you mean low-level code like drivers?
Sort of. This chapter is one of the ones not yet written, but my plan is to show how to boot to a D program and interface (in a minimal way) with the keyboard (requires an interrupt handler) and screen (which is memory-mapped). A lot of drivers use those same principles, so the stuff could apply there too, but for a real situation you'll need to use more care than I intend to take. BTW I'll probably be talking about these things the the dconf too.
Mar 05 2014
parent "Namespace" <rswhite4 googlemail.com> writes:
Already planned to translate it into German? :P
Mar 06 2014
prev sibling next sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Monday, March 03, 2014 16:37:48 Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the
 last few months. It is now available as "coming soon" on the
 publisher's website:
Oh no! Now, I'll have yet another programming book that I'll have trouble getting around to reading... ;) This is great news. Congrats! - Jonathan M Davis
Mar 05 2014
prev sibling next sibling parent reply Dejan Lekic <dejan.lekic gmail.com> writes:
I've just pre-ordered it, on Amazon. ;)
Hurry up! :)

-- 
http://dejan.lekic.org
Mar 06 2014
next sibling parent "extrawurst" <stephan extrawurst.org> writes:
On Thursday, 6 March 2014 at 14:17:57 UTC, Dejan Lekic wrote:
 I've just pre-ordered it, on Amazon. ;)
 Hurry up! :)
Me too, Amazon UK! Looking foward.
Mar 06 2014
prev sibling parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On 6 March 2014 14:17, Dejan Lekic <dejan.lekic gmail.com> wrote:
 I've just pre-ordered it, on Amazon. ;)
 Hurry up! :)
Cut the reviewers some lack! :)
Mar 06 2014
parent "Mike James" <foo bar.com> writes:
"Iain Buclaw" <ibuclaw gdcproject.org> wrote in message 
news:mailman.10.1394132086.25740.digitalmars-d-announce puremagic.com...
 On 6 March 2014 14:17, Dejan Lekic <dejan.lekic gmail.com> wrote:
 I've just pre-ordered it, on Amazon. ;)
 Hurry up! :)
Cut the reviewers some lack! :)
Some lack of speed ;-)
Mar 07 2014
prev sibling next sibling parent reply "Jason King" <jhking airmail.net> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:
Packt is having a 1/2 price ebooks sale, so if you haven't gotten this yet, now would be the time. I just did.
Apr 18 2014
next sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
Aye, and I just finished the first draft this week, now doing the 
second draft and it is moving along at an excellent pace, I'm 
pretty sure we're going to release earlier than expected on the 
website.

BTW it now has a cover image, that's a painting my brother did 
called "View from Phobos", seemed appropriate :P
Apr 18 2014
parent "John" <john.joyus gmail.com> writes:
 BTW it now has a cover image, that's a painting my brother did 
 called "View from Phobos", seemed appropriate :P
Wow! :)
Apr 19 2014
prev sibling parent "John" <john.joyus gmail.com> writes:
On Friday, 18 April 2014 at 23:03:54 UTC, Jason King wrote:
 Packt is having a 1/2 price ebooks sale, so if you haven't 
 gotten this yet, now would be the time.  I just did.
Yes, I did it too.
Apr 19 2014
prev sibling next sibling parent reply "Daniel Davidson" <nospam spam.com> writes:
On Monday, 3 March 2014 at 16:37:49 UTC, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over 
 the last few months. It is now available as "coming soon" on 
 the publisher's website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
Congrats. Is there a early access option, like Manning Early Access Program, instead of just pre-order? Thanks Dan
May 05 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
We're publishing in about two weeks now so it won't be long until 
the real thing is out anyway!
May 05 2014
next sibling parent reply "Szymon Gatner" <noemail gmail.com> writes:
On Monday, 5 May 2014 at 12:34:18 UTC, Adam D. Ruppe wrote:
 We're publishing in about two weeks now so it won't be long 
 until the real thing is out anyway!
Any way to see the TOC?
May 06 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. Each one is shown through examples (with a few exceptions where I couldn't think of a good example but wanted to discuss the principle behind it anyway): Chapter 1: "Core Tasks", has a brief introduction to D then gets into using modules, libraries, immutability, classes, basic stuff to get you acquainted with the core language. BTW the book assumes you already know basic programming stuff, so I don't explain what variables are and stuff like that. Chapter 2: "Phobos", goes over some phobos modules to show you the basic idea. Covers files and directories, socket clients and servers, zlib, random numbers, and a bit more. It isn't comprehensive, there's the documentation for that, but it covers a few important points you'll need to know throughout through representative examples. Chapter 3: "Ranges" goes over how to create a range, use a range (including something I had to ask the group: what is a "generic input range"?), transform ranges, and use some of the algorithms. Also goes into why the efficiency rules are important (don't emulate range features you don't really support) by showing a bad sort result with a linked list that pretends to be an array. Chapter 4: "Integration" talks about how to integrate with outside code, including calling C functions (including doing your own bindings and using implib on Windows), C++ interfaces, Windows API and Linux system calls in asm, C functions calling D, using COM, cross-language resource management (briefly) and I show some convenient scripting bindings using opDispatch with my script.d Chapter 5: "Resource Management" gives tips on avoiding the GC, writing your own reference counted objects, using owned pointers, and stuff like how not to use class destructors. Chapter 6: "Wrapped Types" goes into a bunch of struct features you can use to wrap other things. Includes a cute trick to make a gettext translation file in D alone, operator overloading, disabling default construction, etc. Chapter 7: "Correctness Checking" talks about bug catching. Includes an introduction to ddoc, static assert, throw vs assert, safe, and more. Chapter 8: "Reflection" goes into compile time and runtime reflection including TypeInfo, __traits, is(), std.traits, and using module constructors to extend typeinfo. Culminates in an automatic function caller from the command line, showing how to get functions by name, convert strings to their arguments, and their return values back to strings, all generically with CT reflection. Chapter 9: "Code Generation" talks about user-defined literals (including showing a disassembly to you can prove it did what it was supposed to do), template value parameters, string mixins, domain-specific language converters (including a relatively traditional programming language and an ASCII art diagram conversion to a struct), and talks about doing more efficient generation with the right statements so the optimizer can do its magic. Chapter 10: "Multitasking" introduces you to threads, fibers, pipe process, and std.parallelism. I don't go too deeply into all this since I think the documentation and Andrei's book both did a good job and I didn't have a lot to add. (generally, I wanted my book to be a nice complement to Andrei's book and avoid repeating documentation, so it is genuinely something new that you might not have seen before. Though much of it is stuff I've talked about on the forums, stack overflow, or IRC, so it won't be all new if you've seen my posts over the last couple years.) Chapter 11: "Kernel coding in D" gets you started using D on bare metal x86; booting your PC to a D program without an operating system. Shows how to remove druntime then add back the minimal parts to get hello world to compile, how to easily compile and link the program so it can run without the OS (a simpler process can be used to make a minimal tiny binary that works on an OS btw, it would be like using D as C), then kinda dumps some code on you to get keyboard interrupt handling working. I didn't go into the details of how the hardware specific code works; I didn't explain what an interrupt table actually is or why its format is so weird, but I did give you the pieces to make it work and discuss the D features that are helpful in this environment (and some pitfalls) like naked asm functions. Chapter 12: "Web and GUI programming" shows how to get some fun stuff started with my misc github libraries including a dynamic website, a desktop graphics demo, some image file manipulation, an OpenGL window, and my dom.d for HTML parsing and manipulation. The main focus isn't so much how to use the libraries though, there's the [s]docs[/s] lol, the source and emailing me with questions for that. Instead, I talked more about how I implemented them and some lessons learned in the process so you see more practical application of stuff the book talked about before and can hopefully use that to extend your own libraries. Each thing also has a See Also section pointing to other D libraries. Appendix A: has a small assortment of things that didn't fit elsewhere like bare metal ARM getting started, Raspberry Pi coding, getting a stack trace without an exception, the exponent operator, and finally, how to get more help and resources about D.
May 06 2014
next sibling parent reply "Szymon Gatner" <noemail gmail.com> writes:
On Tuesday, 6 May 2014 at 13:12:01 UTC, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. Each one is shown through examples (with a few exceptions where I couldn't think of a good example but wanted to discuss the principle behind it anyway): Chapter 1: "Core Tasks", has a brief introduction to D then gets into using modules, libraries, immutability, classes, basic stuff to get you acquainted with the core language. BTW the book assumes you already know basic programming stuff, so I don't explain what variables are and stuff like that. Chapter 2: "Phobos", goes over some phobos modules to show you the basic idea. Covers files and directories, socket clients and servers, zlib, random numbers, and a bit more. It isn't comprehensive, there's the documentation for that, but it covers a few important points you'll need to know throughout through representative examples. Chapter 3: "Ranges" goes over how to create a range, use a range (including something I had to ask the group: what is a "generic input range"?), transform ranges, and use some of the algorithms. Also goes into why the efficiency rules are important (don't emulate range features you don't really support) by showing a bad sort result with a linked list that pretends to be an array. Chapter 4: "Integration" talks about how to integrate with outside code, including calling C functions (including doing your own bindings and using implib on Windows), C++ interfaces, Windows API and Linux system calls in asm, C functions calling D, using COM, cross-language resource management (briefly) and I show some convenient scripting bindings using opDispatch with my script.d Chapter 5: "Resource Management" gives tips on avoiding the GC, writing your own reference counted objects, using owned pointers, and stuff like how not to use class destructors. Chapter 6: "Wrapped Types" goes into a bunch of struct features you can use to wrap other things. Includes a cute trick to make a gettext translation file in D alone, operator overloading, disabling default construction, etc. Chapter 7: "Correctness Checking" talks about bug catching. Includes an introduction to ddoc, static assert, throw vs assert, safe, and more. Chapter 8: "Reflection" goes into compile time and runtime reflection including TypeInfo, __traits, is(), std.traits, and using module constructors to extend typeinfo. Culminates in an automatic function caller from the command line, showing how to get functions by name, convert strings to their arguments, and their return values back to strings, all generically with CT reflection. Chapter 9: "Code Generation" talks about user-defined literals (including showing a disassembly to you can prove it did what it was supposed to do), template value parameters, string mixins, domain-specific language converters (including a relatively traditional programming language and an ASCII art diagram conversion to a struct), and talks about doing more efficient generation with the right statements so the optimizer can do its magic. Chapter 10: "Multitasking" introduces you to threads, fibers, pipe process, and std.parallelism. I don't go too deeply into all this since I think the documentation and Andrei's book both did a good job and I didn't have a lot to add. (generally, I wanted my book to be a nice complement to Andrei's book and avoid repeating documentation, so it is genuinely something new that you might not have seen before. Though much of it is stuff I've talked about on the forums, stack overflow, or IRC, so it won't be all new if you've seen my posts over the last couple years.) Chapter 11: "Kernel coding in D" gets you started using D on bare metal x86; booting your PC to a D program without an operating system. Shows how to remove druntime then add back the minimal parts to get hello world to compile, how to easily compile and link the program so it can run without the OS (a simpler process can be used to make a minimal tiny binary that works on an OS btw, it would be like using D as C), then kinda dumps some code on you to get keyboard interrupt handling working. I didn't go into the details of how the hardware specific code works; I didn't explain what an interrupt table actually is or why its format is so weird, but I did give you the pieces to make it work and discuss the D features that are helpful in this environment (and some pitfalls) like naked asm functions. Chapter 12: "Web and GUI programming" shows how to get some fun stuff started with my misc github libraries including a dynamic website, a desktop graphics demo, some image file manipulation, an OpenGL window, and my dom.d for HTML parsing and manipulation. The main focus isn't so much how to use the libraries though, there's the [s]docs[/s] lol, the source and emailing me with questions for that. Instead, I talked more about how I implemented them and some lessons learned in the process so you see more practical application of stuff the book talked about before and can hopefully use that to extend your own libraries. Each thing also has a See Also section pointing to other D libraries. Appendix A: has a small assortment of things that didn't fit elsewhere like bare metal ARM getting started, Raspberry Pi coding, getting a stack trace without an exception, the exponent operator, and finally, how to get more help and resources about D.
Holy s**t, that is a lot! How did you manage to fit all this in 337 pages?! I assume it has standard PACKT format ("give it a go hero" etc)? Bought it and waiting for a release :) Congratz!
May 06 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 6 May 2014 at 13:19:09 UTC, Szymon Gatner wrote:
 Holy s**t, that is a lot! How did you manage to fit all this in 
 337 pages?!
Each individual item tended to only be about 3 pages, some shorter, a few longer (I had a fair chunk to say about ranges and reflection, not so much to say about threads and phobos) and in some cases I kinda ask the reader to take things on faith. Mostly, I explain the faith stuff on the following page, but in the bare metal thing, like i said before, some of it is just "that interacts with the hardware, trust me". So that chapter was only about 15 pages.... a lot for two "recipes" ("hello world" and "handling interrupts"), but certainly not a comprehensive covering of the subject. I gotta writing my dconf talk next though that will go a bit more into it, but again, with a focus on druntime functions more than on how the hardware actually works.
 I assume it has standard PACKT format ("give it a go hero" 
 etc)? Bought it and waiting for a release :) Congratz!
yeah, it starts with a list of steps, then usually shows code (not always a complete program but usually), then some talk about how it works and covering details. the code should also be available as a separate download for each thing so you can run it more easily and play with it that way.
May 06 2014
parent reply "Szymon Gatner" <noemail gmail.com> writes:
On Tuesday, 6 May 2014 at 13:39:51 UTC, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 13:19:09 UTC, Szymon Gatner wrote:
 Holy s**t, that is a lot! How did you manage to fit all this 
 in 337 pages?!
Each individual item tended to only be about 3 pages, some shorter, a few longer (I had a fair chunk to say about ranges and reflection, not so much to say about threads and phobos) and in some cases I kinda ask the reader to take things on faith. Mostly, I explain the faith stuff on the following page, but in the bare metal thing, like i said before, some of it is just "that interacts with the hardware, trust me". So that chapter was only about 15 pages.... a lot for two "recipes" ("hello world" and "handling interrupts"), but certainly not a comprehensive covering of the subject. I gotta writing my dconf talk next though that will go a bit more into it, but again, with a focus on druntime functions more than on how the hardware actually works.
 I assume it has standard PACKT format ("give it a go hero" 
 etc)? Bought it and waiting for a release :) Congratz!
yeah, it starts with a list of steps, then usually shows code (not always a complete program but usually), then some talk about how it works and covering details. the code should also be available as a separate download for each thing so you can run it more easily and play with it that way.
Everything sounds great, really can't wait. Coming from C++ I am really interested in resource management. I still can't find myself in non-deterministic d-tor / GC world (and recent discussion on removal of d-tors entirely isn't helping ;P).
May 06 2014
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 6 May 2014 at 15:28:01 UTC, Szymon Gatner wrote:
 Everything sounds great, really can't wait. Coming from C++ I 
 am really interested in resource management. I still can't find 
 myself in non-deterministic d-tor / GC world (and recent 
 discussion on removal of d-tors entirely isn't helping ;P).
Actually, my main recommendation is to try not to worry about it and love the GC! When it works, it really is pretty nice, and I find it works well enough in most places to be really useful. But when it isn't right for you, then the other options come in and I showed some tricks to do it. Move semantics, for example, might not be obvious but is easy once you see the trick: disable the postblit and provide a release method. So that's the kind of stuff the chapter focuses on.
May 06 2014
prev sibling next sibling parent "Chris" <wendlec tcd.ie> writes:
On Tuesday, 6 May 2014 at 13:12:01 UTC, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. Each one is shown through examples (with a few exceptions where I couldn't think of a good example but wanted to discuss the principle behind it anyway): Chapter 1: "Core Tasks", has a brief introduction to D then gets into using modules, libraries, immutability, classes, basic stuff to get you acquainted with the core language. BTW the book assumes you already know basic programming stuff, so I don't explain what variables are and stuff like that. Chapter 2: "Phobos", goes over some phobos modules to show you the basic idea. Covers files and directories, socket clients and servers, zlib, random numbers, and a bit more. It isn't comprehensive, there's the documentation for that, but it covers a few important points you'll need to know throughout through representative examples. Chapter 3: "Ranges" goes over how to create a range, use a range (including something I had to ask the group: what is a "generic input range"?), transform ranges, and use some of the algorithms. Also goes into why the efficiency rules are important (don't emulate range features you don't really support) by showing a bad sort result with a linked list that pretends to be an array. Chapter 4: "Integration" talks about how to integrate with outside code, including calling C functions (including doing your own bindings and using implib on Windows), C++ interfaces, Windows API and Linux system calls in asm, C functions calling D, using COM, cross-language resource management (briefly) and I show some convenient scripting bindings using opDispatch with my script.d Chapter 5: "Resource Management" gives tips on avoiding the GC, writing your own reference counted objects, using owned pointers, and stuff like how not to use class destructors. Chapter 6: "Wrapped Types" goes into a bunch of struct features you can use to wrap other things. Includes a cute trick to make a gettext translation file in D alone, operator overloading, disabling default construction, etc. Chapter 7: "Correctness Checking" talks about bug catching. Includes an introduction to ddoc, static assert, throw vs assert, safe, and more. Chapter 8: "Reflection" goes into compile time and runtime reflection including TypeInfo, __traits, is(), std.traits, and using module constructors to extend typeinfo. Culminates in an automatic function caller from the command line, showing how to get functions by name, convert strings to their arguments, and their return values back to strings, all generically with CT reflection. Chapter 9: "Code Generation" talks about user-defined literals (including showing a disassembly to you can prove it did what it was supposed to do), template value parameters, string mixins, domain-specific language converters (including a relatively traditional programming language and an ASCII art diagram conversion to a struct), and talks about doing more efficient generation with the right statements so the optimizer can do its magic. Chapter 10: "Multitasking" introduces you to threads, fibers, pipe process, and std.parallelism. I don't go too deeply into all this since I think the documentation and Andrei's book both did a good job and I didn't have a lot to add. (generally, I wanted my book to be a nice complement to Andrei's book and avoid repeating documentation, so it is genuinely something new that you might not have seen before. Though much of it is stuff I've talked about on the forums, stack overflow, or IRC, so it won't be all new if you've seen my posts over the last couple years.) Chapter 11: "Kernel coding in D" gets you started using D on bare metal x86; booting your PC to a D program without an operating system. Shows how to remove druntime then add back the minimal parts to get hello world to compile, how to easily compile and link the program so it can run without the OS (a simpler process can be used to make a minimal tiny binary that works on an OS btw, it would be like using D as C), then kinda dumps some code on you to get keyboard interrupt handling working. I didn't go into the details of how the hardware specific code works; I didn't explain what an interrupt table actually is or why its format is so weird, but I did give you the pieces to make it work and discuss the D features that are helpful in this environment (and some pitfalls) like naked asm functions. Chapter 12: "Web and GUI programming" shows how to get some fun stuff started with my misc github libraries including a dynamic website, a desktop graphics demo, some image file manipulation, an OpenGL window, and my dom.d for HTML parsing and manipulation. The main focus isn't so much how to use the libraries though, there's the [s]docs[/s] lol, the source and emailing me with questions for that. Instead, I talked more about how I implemented them and some lessons learned in the process so you see more practical application of stuff the book talked about before and can hopefully use that to extend your own libraries. Each thing also has a See Also section pointing to other D libraries. Appendix A: has a small assortment of things that didn't fit elsewhere like bare metal ARM getting started, Raspberry Pi coding, getting a stack trace without an exception, the exponent operator, and finally, how to get more help and resources about D.
Wow! I'm really looking forward to reading it. I'll probably first have a look at the Ranges chapter and dom.d.
May 06 2014
prev sibling parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. [snip]
Sounds awesome!
May 06 2014
parent reply "Szymon Gatner" <noemail gmail.com> writes:
On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
 On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. [snip]
Sounds awesome!
Jus got mail from PacktPub: D Cookbook is now released: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book Congratz!
May 27 2014
next sibling parent "Chris" <wendlec tcd.ie> writes:
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote:
 On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
 On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. [snip]
Sounds awesome!
Jus got mail from PacktPub: D Cookbook is now released: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book Congratz!
Just downloaded the eBook version. Printed version will soon follow, I suppose. It couldn't have arrived at a better time, because I'm re-organizing and revising my code at the moment.
May 27 2014
prev sibling next sibling parent reply "Kozzi" <kozzi11 gmail.com> writes:
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote:
 On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
 On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. [snip]
Sounds awesome!
Jus got mail from PacktPub: D Cookbook is now released: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book Congratz!
I am reading it now, but there is a lot of errata :(.
May 27 2014
next sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
 I am  reading it now, but there is a lot of errata :(.
What do you mean?
May 27 2014
parent reply Daniel Kozak via Digitalmars-d-announce writes:
I mean there is a lot of typo (for e.g. multiple ';' chars at the end of  
line, import std.stdio : writeln;;;)
on page 2,6,8,10,14 ...

On page 19:
static Vector fromPoint(float[2] point) {
import std.math;
Vector v;
float x = point[0];
float y= point[1];
v.magnitude = sqrt(x ^^ 2 + y ^^ 2);
v.direction = atan2(y, x);
return v;
}}} // this 3 brackets

Vector opBinary(string op : "+")(Vector rhs) const {
auto point = toPoint(), point2 = rhs.toPoint();
point[0] += point2[0];
point[1] += point2[1];];]; // here
return Vector.fromPoint(point);); // and here
}

That is what I  already found







Dne Tue, 27 May 2014 13:45:53 +0200 Adam D. Ruppe via  
Digitalmars-d-announce <digitalmars-d-announce puremagic.com> napsal(a):

 On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
 I am  reading it now, but there is a lot of errata :(.
What do you mean?
-- Vytvořeno poštovní aplikací Opery: http://www.opera.com/mail/
May 27 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 27 May 2014 at 11:57:05 UTC, Daniel Kozak via 
Digitalmars-d-announce wrote:
 I mean there is a lot of typo (for e.g. multiple ';' chars at 
 the end of line, import std.stdio : writeln;;;)
Blargh, the code got screwed up something nasty through the revision process (chapter 6 especially, the spacing got totally butchered, the end of virtually every line had random characters, wtf, the file got changed from a .doc to a .docx in that process too which i suspect is to blame) and I thought I fixed all those in the final draft but apparently not... I suspect that'll get better past chapter 1; chapter one needed so much content revision that I didn't spend as much time on the punctuation in the review process.
May 27 2014
parent reply "Chris" <wendlec tcd.ie> writes:
On Tuesday, 27 May 2014 at 12:05:43 UTC, Adam D. Ruppe wrote:
 On Tuesday, 27 May 2014 at 11:57:05 UTC, Daniel Kozak via 
 Digitalmars-d-announce wrote:
 I mean there is a lot of typo (for e.g. multiple ';' chars at 
 the end of line, import std.stdio : writeln;;;)
Blargh, the code got screwed up something nasty through the revision process (chapter 6 especially, the spacing got totally butchered, the end of virtually every line had random characters, wtf, the file got changed from a .doc to a .docx in that process too which i suspect is to blame) and I thought I fixed all those in the final draft but apparently not... I suspect that'll get better past chapter 1; chapter one needed so much content revision that I didn't spend as much time on the punctuation in the review process.
Tell me about formatting getting lost while re-formatting. But why on earth do people (publishers / editors) still insist on using .doc and .docx (i.e. MS)!? This is to invite disaster. Laziness? Saving money? Nah, you'll work and pay more in the end. Incompetence? I dunno.
May 27 2014
parent reply "Szymon Gatner" <noemail gmail.com> writes:
On Tuesday, 27 May 2014 at 12:59:59 UTC, Chris wrote:
 On Tuesday, 27 May 2014 at 12:05:43 UTC, Adam D. Ruppe wrote:
 On Tuesday, 27 May 2014 at 11:57:05 UTC, Daniel Kozak via 
 Digitalmars-d-announce wrote:
 I mean there is a lot of typo (for e.g. multiple ';' chars at 
 the end of line, import std.stdio : writeln;;;)
Blargh, the code got screwed up something nasty through the revision process (chapter 6 especially, the spacing got totally butchered, the end of virtually every line had random characters, wtf, the file got changed from a .doc to a .docx in that process too which i suspect is to blame) and I thought I fixed all those in the final draft but apparently not... I suspect that'll get better past chapter 1; chapter one needed so much content revision that I didn't spend as much time on the punctuation in the review process.
Tell me about formatting getting lost while re-formatting. But why on earth do people (publishers / editors) still insist on using .doc and .docx (i.e. MS)!? This is to invite disaster. Laziness? Saving money? Nah, you'll work and pay more in the end. Incompetence? I dunno.
Will epub version be available too?
May 27 2014
parent reply " Adam D. Ruppe" <destructionator gmail.com> writes:
On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote:
 Will epub version be available too?
Yeah, I think it is already on the packt website.
May 27 2014
parent reply "Mike James" <foo bar.com> writes:
On Tuesday, 27 May 2014 at 14:20:49 UTC, Adam D. Ruppe wrote:
 On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote:
 Will epub version be available too?
Yeah, I think it is already on the packt website.
I'm looking at getting the ebook version - does that version include the errata described above? -<mike>-
May 28 2014
next sibling parent reply Alix Pexton <alix.DOT.pexton gmail.DOT.com> writes:
On 28/05/2014 9:00 AM, Mike James wrote:
 On Tuesday, 27 May 2014 at 14:20:49 UTC, Adam D. Ruppe wrote:
 On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote:
 Will epub version be available too?
Yeah, I think it is already on the packt website.
I'm looking at getting the ebook version - does that version include the errata described above? -<mike>-
I've not checked them side-by-side the whole way through but the ePub does have the same triple colons as the PDF. the ePub uses colour instead of font weight for the keywords in the text and the notes and tips are styled differently, but as far as I've seen so far the content is the same. A...
May 28 2014
parent "Mike James" <foo bar.com> writes:
On Wednesday, 28 May 2014 at 09:06:12 UTC, Alix Pexton wrote:
 On 28/05/2014 9:00 AM, Mike James wrote:
 On Tuesday, 27 May 2014 at 14:20:49 UTC, Adam D. Ruppe wrote:
 On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote:
 Will epub version be available too?
Yeah, I think it is already on the packt website.
I'm looking at getting the ebook version - does that version include the errata described above? -<mike>-
I've not checked them side-by-side the whole way through but the ePub does have the same triple colons as the PDF. the ePub uses colour instead of font weight for the keywords in the text and the notes and tips are styled differently, but as far as I've seen so far the content is the same. A...
Thanks. As 'early adopters' do we get a chance to upgrade :-) -<mike>-
May 28 2014
prev sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Wednesday, 28 May 2014 at 08:01:00 UTC, Mike James wrote:
 I'm looking at getting the ebook version - does that version 
 include the errata described above?
Yeah, those errors were in the .doc I sent in after revisions on chapter 1 and we didn't catch them in the final draft. But the subsequent chapters did them all right so hopefully people won't be turned off by the (IMO fairly weak anyway) first chapter before things get interesting later on.
May 28 2014
parent reply "Mattcoder" <fromtheotherside mail.com> writes:
On Wednesday, 28 May 2014 at 14:06:33 UTC, Adam D. Ruppe wrote:
 On Wednesday, 28 May 2014 at 08:01:00 UTC, Mike James wrote:
 I'm looking at getting the ebook version - does that version 
 include the errata described above?
Yeah, those errors were in the .doc I sent in after revisions on chapter 1 and we didn't catch them in the final draft. But the subsequent chapters did them all right so hopefully people won't be turned off by the (IMO fairly weak anyway) first chapter before things get interesting later on.
Question: But any mistakes like those founded will be updated? And if it yes, who already purchased the PDF book will be able to download the new file corrected too? Matheus.
May 28 2014
next sibling parent "Mattcoder" <fromtheotherside mail.com> writes:
On Wednesday, 28 May 2014 at 16:51:56 UTC, Mattcoder wrote:
 On Wednesday, 28 May 2014 at 14:06:33 UTC, Adam D. Ruppe wrote:
 On Wednesday, 28 May 2014 at 08:01:00 UTC, Mike James wrote:
 I'm looking at getting the ebook version - does that version 
 include the errata described above?
Yeah, those errors were in the .doc I sent in after revisions on chapter 1 and we didn't catch them in the final draft. But the subsequent chapters did them all right so hopefully people won't be turned off by the (IMO fairly weak anyway) first chapter before things get interesting later on.
Question: But any mistakes like those founded will be updated? And if it yes, who already purchased the PDF book will be able to download the new file corrected too? Matheus.
s/founded/found.
May 28 2014
prev sibling parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Wednesday, 28 May 2014 at 16:51:56 UTC, Mattcoder wrote:
 Question: But any mistakes like those founded will be updated?
Just heard back: maybe on the pdf, probably not on print due to it not being worth the cost. Most likely they'll just be some eratta listed on the site.
May 29 2014
prev sibling parent "Mattcoder" <fromtheotherside mail.com> writes:
On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote:
 I am  reading it now, but there is a lot of errata :(.
Well that's a good thing about PDF, because you can fix it and update the version online. Matheus.
May 27 2014
prev sibling parent "Joakim" <dlang joakim.airpost.net> writes:
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote:
 On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote:
 On 5/6/2014 9:11 AM, Adam D. Ruppe wrote:
 On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote:
 Any way to see the TOC?
Hmm, not on the website yet but here it is. [snip]
Sounds awesome!
Jus got mail from PacktPub: D Cookbook is now released: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book Congratz!
Thanks for the update. I have the pdf loaded up now, looking forward to going through it.
May 28 2014
prev sibling parent =?UTF-8?B?IlRow6lv?= Bueno" <munrek gmx.com> writes:
On Monday, 5 May 2014 at 12:34:18 UTC, Adam D. Ruppe wrote:
 We're publishing in about two weeks now so it won't be long 
 until the real thing is out anyway!
Just preordered the ebook, waiting to read that :)
May 06 2014
prev sibling next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/3/14, 8:37 AM, Adam D. Ruppe wrote:
 As some of you might know, I've been working on a D book over the last
 few months. It is now available as "coming soon" on the publisher's
 website:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
I just agreed with Packt to write a foreword for the book. -- Andrei
May 06 2014
parent "John" <john.joyus gmail.com> writes:
On Tuesday, 6 May 2014 at 16:38:51 UTC, Andrei Alexandrescu wrote:

 http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book
I just agreed with Packt to write a foreword for the book. -- Andrei
I just read the foreword. It's great!
May 27 2014
prev sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
I just posted it to reddit btw:

http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/
May 28 2014
next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 5/28/2014 10:34 AM, Adam D. Ruppe wrote:
 I just posted it to reddit btw:

 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/
Just snagged my copy!
May 28 2014
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 5/28/14, 10:34 AM, Adam D. Ruppe wrote:
 I just posted it to reddit btw:

 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/
Looks like this got junked. -- Andrei
May 29 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Thursday, 29 May 2014 at 07:51:30 UTC, Andrei Alexandrescu 
wrote:
 Looks like this got junked. -- Andrei
hmm, that was my first time ever posting to reddit so maybe that's why. Regardless, when the dconf talks come around I'll post the link in those comments too and that'll hopefully make up for it.
May 29 2014
parent reply "Szymon Gatner" <noemail gmail.com> writes:
On Thursday, 29 May 2014 at 12:39:23 UTC, Adam D. Ruppe wrote:
 On Thursday, 29 May 2014 at 07:51:30 UTC, Andrei Alexandrescu 
 wrote:
 Looks like this got junked. -- Andrei
hmm, that was my first time ever posting to reddit so maybe that's why. Regardless, when the dconf talks come around I'll post the link in those comments too and that'll hopefully make up for it.
Adam D. Ruppe: Where should we ask questions and post spotted issues regarding your pretty great book?
Sep 03 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Wednesday, 3 September 2014 at 13:34:11 UTC, Szymon Gatner 
wrote:
   Adam D. Ruppe: Where should we ask questions and post spotted 
 issues regarding your pretty great book?
Packt's website has an errata section.... somewhere, I can't find it now because they redesigned the site, but a lot of chapter 1 errors are on that (typos and stuff). If you can find that, that's one option, but I'd say just discuss it here or in the main dm.D newsgroup.
Sep 03 2014
parent "Szymon Gatner" <noemail gmail.com> writes:
On Wednesday, 3 September 2014 at 13:38:42 UTC, Adam D. Ruppe 
wrote:
 On Wednesday, 3 September 2014 at 13:34:11 UTC, Szymon Gatner 
 wrote:
   Adam D. Ruppe: Where should we ask questions and post 
 spotted issues regarding your pretty great book?
Packt's website has an errata section.... somewhere, I can't find it now because they redesigned the site, but a lot of chapter 1 errors are on that (typos and stuff). If you can find that, that's one option, but I'd say just discuss it here or in the main dm.D newsgroup.
Asking because I noticed few minor things like multiple commas or too many brackets etc, but also because I am trying to go through "Interfacing with C++" chapter and I am having some problems (VC++ x64, Win7): 1st I managed to solve and I think it could be useful for other that try to follow this chapter: http://forum.dlang.org/thread/ugkpqprobonorbdunxsx forum.dlang.org 2nd I am now stuck with and not much idea how to continue. http://forum.dlang.org/thread/hsglkscatlniiuacpkhe forum.dlang.org I am actually very much interested in this because of COFF support for Win32 in DMD merged recently.
Sep 03 2014