Re: My D book is now officially coming soon

2014-09-03 Thread Szymon Gatner via Digitalmars-d-announce

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?


Re: My D book is now officially coming soon

2014-09-03 Thread Adam D. Ruppe via Digitalmars-d-announce
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.


Re: My D book is now officially coming soon

2014-09-03 Thread Szymon Gatner via Digitalmars-d-announce
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/ugkpqprobonorbdun...@forum.dlang.org

2nd I am now stuck with and not much idea how to continue.

http://forum.dlang.org/thread/hsglkscatlniiuacp...@forum.dlang.org

I am actually very much interested in this because of COFF 
support for Win32 in DMD merged recently.


Re: My D book is now officially coming soon

2014-05-29 Thread Andrei Alexandrescu via Digitalmars-d-announce

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



Re: My D book is now officially coming soon

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
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.


Re: My D book is now officially coming soon

2014-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-28 Thread Mike James via Digitalmars-d-announce


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-


Re: My D book is now officially coming soon

2014-05-28 Thread Alix Pexton via Digitalmars-d-announce

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...


Re: My D book is now officially coming soon

2014-05-28 Thread Mike James via Digitalmars-d-announce

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-


Re: My D book is now officially coming soon

2014-05-28 Thread Adam D. Ruppe via Digitalmars-d-announce

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.




Re: My D book is now officially coming soon

2014-05-28 Thread Joakim via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-28 Thread Mattcoder via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-28 Thread Mattcoder via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-28 Thread Adam D. Ruppe via Digitalmars-d-announce

I just posted it to reddit btw:

http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/


Re: My D book is now officially coming soon

2014-05-28 Thread Walter Bright via Digitalmars-d-announce

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!


Re: My D book is now officially coming soon

2014-05-27 Thread Szymon Gatner via Digitalmars-d-announce

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!


Re: My D book is now officially coming soon

2014-05-27 Thread Chris via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-27 Thread Kozzi via Digitalmars-d-announce

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 :(.


Re: My D book is now officially coming soon

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce

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?


Re: My D book is now officially coming soon

2014-05-27 Thread Mattcoder via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-27 Thread Daniel Kozak via Digitalmars-d-announce
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/



Re: My D book is now officially coming soon

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce
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.


Re: My D book is now officially coming soon

2014-05-27 Thread Chris via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-27 Thread Szymon Gatner via Digitalmars-d-announce

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?


Re: My D book is now officially coming soon

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-27 Thread John via Digitalmars-d-announce

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!


Re: My D book is now officially coming soon

2014-05-06 Thread Adam D. Ruppe via Digitalmars-d-announce

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 

Re: My D book is now officially coming soon

2014-05-06 Thread Szymon Gatner via Digitalmars-d-announce

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 

Re: My D book is now officially coming soon

2014-05-06 Thread Adam D. Ruppe via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-06 Thread Chris via Digitalmars-d-announce

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 

Re: My D book is now officially coming soon

2014-05-06 Thread Szymon Gatner via Digitalmars-d-announce

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).


Re: My D book is now officially coming soon

2014-05-06 Thread Adam D. Ruppe via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d-announce

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


Re: My D book is now officially coming soon

2014-05-06 Thread via Digitalmars-d-announce

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 :)



Re: My D book is now officially coming soon

2014-05-06 Thread Nick Sabalausky via Digitalmars-d-announce

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!



Re: My D book is now officially coming soon

2014-05-05 Thread Daniel Davidson via Digitalmars-d-announce

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


Re: My D book is now officially coming soon

2014-05-05 Thread Adam D. Ruppe via Digitalmars-d-announce
We're publishing in about two weeks now so it won't be long until 
the real thing is out anyway!


Re: My D book is now officially coming soon

2014-04-19 Thread John via Digitalmars-d-announce
BTW it now has a cover image, that's a painting my brother did 
called View from Phobos, seemed appropriate :P


Wow! :)


Re: My D book is now officially coming soon

2014-04-19 Thread John via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-04-18 Thread Jason King via Digitalmars-d-announce

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.


Re: My D book is now officially coming soon

2014-04-18 Thread Adam D. Ruppe via Digitalmars-d-announce
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


Re: My D book is now officially coming soon

2014-03-07 Thread Mike James
Iain Buclaw ibuc...@gdcproject.org wrote in message 
news:mailman.10.1394132086.25740.digitalmars-d-annou...@puremagic.com...

On 6 March 2014 14:17, Dejan Lekic dejan.le...@gmail.com wrote:

I've just pre-ordered it, on Amazon. ;)
Hurry up! :)



Cut the reviewers some lack! :)


Some lack of speed ;-) 



Re: My D book is now officially coming soon

2014-03-06 Thread Dejan Lekic
I've just pre-ordered it, on Amazon. ;)
Hurry up! :)

-- 
http://dejan.lekic.org


Re: My D book is now officially coming soon

2014-03-06 Thread extrawurst

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.


Re: My D book is now officially coming soon

2014-03-05 Thread Suliman

to bare metal code

Do you mean low-level code like drivers?


Re: My D book is now officially coming soon

2014-03-05 Thread Jonathan M Davis
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


Re: My D book is now officially coming soon

2014-03-05 Thread Adam D. Ruppe

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.


Re: My D book is now officially coming soon

2014-03-04 Thread Jesse Phillips

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.


Re: My D book is now officially coming soon

2014-03-04 Thread Andrei Alexandrescu

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



Re: My D book is now officially coming soon

2014-03-04 Thread Adam D. Ruppe
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.


Re: My D book is now officially coming soon

2014-03-04 Thread Andrei Alexandrescu

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



Re: My D book is now officially coming soon

2014-03-04 Thread Vladimir Panteleev
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/ .


Re: My D book is now officially coming soon

2014-03-04 Thread Adam D. Ruppe
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 :)


Re: My D book is now officially coming soon

2014-03-04 Thread Max Klyga

On 2014-03-04 19:14:13 +, 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.



Re: My D book is now officially coming soon

2014-03-04 Thread Walter Bright

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.



Re: My D book is now officially coming soon

2014-03-04 Thread Walter Bright

On 3/4/2014 12:46 PM, Max Klyga wrote:

On 2014-03-04 19:14:13 +, 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.


Re: My D book is now officially coming soon

2014-03-04 Thread Adam D. Ruppe

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. :(


Re: My D book is now officially coming soon

2014-03-04 Thread Andrei Alexandrescu

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 +, 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



My D book is now officially coming soon

2014-03-03 Thread Adam D. Ruppe
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.


Re: My D book is now officially coming soon

2014-03-03 Thread Chris

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!


Re: My D book is now officially coming soon

2014-03-03 Thread JR

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.


Re: My D book is now officially coming soon

2014-03-03 Thread Meta

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?


Re: My D book is now officially coming soon

2014-03-03 Thread Adam D. Ruppe

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.


Re: My D book is now officially coming soon

2014-03-03 Thread Meta

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.


Re: My D book is now officially coming soon

2014-03-03 Thread Walter Bright

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.



Re: My D book is now officially coming soon

2014-03-03 Thread Théo.Bueno

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 !


Re: My D book is now officially coming soon

2014-03-03 Thread Craig Dillabaugh

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.


Re: My D book is now officially coming soon

2014-03-03 Thread Gary Willoughby

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. :)


Re: My D book is now officially coming soon

2014-03-03 Thread Francesco Cattoglio

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?


Re: My D book is now officially coming soon

2014-03-03 Thread bearophile

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


Re: My D book is now officially coming soon

2014-03-03 Thread Dicebot
Damn, soon I will need to actually think before choosing what 
book to recommend to newbies! :)


Re: My D book is now officially coming soon

2014-03-03 Thread Philippe Sigaud
 On Mon, 03 Mar 2014 11:37:48 -0500, Adam D. Ruppe
 destructiona...@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.


Re: My D book is now officially coming soon

2014-03-03 Thread Andrei Alexandrescu

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



Re: My D book is now officially coming soon

2014-03-03 Thread extrawurst

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




Re: My D book is now officially coming soon

2014-03-03 Thread Mike

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.



Re: My D book is now officially coming soon

2014-03-03 Thread Nick Sabalausky

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!



Re: My D book is now officially coming soon

2014-03-03 Thread John J

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.



Re: My D book is now officially coming soon

2014-03-03 Thread Jonathan Dunlap

I'm excited to check it out! +1 preorder