www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - "Programming in D" book, Parallelism chapter

reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
I have continued working on the book.

1) Translated the Parallelism chapter:

   http://ddili.org/ders/d.en/parallelism.html

2) Translated more chapters from the beginning of the book:

* Redirecting Standard Input and Output Streams
* Files
* auto and typeof
* Name Space
* The for Loop
* The Ternary Operator
* Literals
* Formatted Output
* Formatted Input
* The do-while Loop

3) Made the book available as PDF, downloadable from the header of each 
chapter:

   http://ddili.org/ders/d.en/index.html

Kindle and Lulu versions will follow later.

Ali
Feb 19 2012
next sibling parent Jordi Sayol <g.sayol yahoo.es> writes:
Congratulations!

Is a very educational book.

Cheers!
-- 
Jordi Sayol
Feb 20 2012
prev sibling next sibling parent reply David <d dav1d.de> writes:
Am 20.02.2012 08:12, schrieb Ali Çehreli:
 I have continued working on the book.

 1) Translated the Parallelism chapter:

 http://ddili.org/ders/d.en/parallelism.html

 2) Translated more chapters from the beginning of the book:

 * Redirecting Standard Input and Output Streams
 * Files
 * auto and typeof
 * Name Space
 * The for Loop
 * The Ternary Operator
 * Literals
 * Formatted Output
 * Formatted Input
 * The do-while Loop

 3) Made the book available as PDF, downloadable from the header of each
 chapter:

 http://ddili.org/ders/d.en/index.html

 Kindle and Lulu versions will follow later.

 Ali
Great Work! I've found a type: "To simulate long-lasting operations, the following examples call Thread.sleep() from the std.thread module. " Thread.sleep is in core.thread (you imported the correct module in the example-code)
Feb 20 2012
next sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
I have to say the pdf looks great, the choice of fonts and style is
very clean and readable. Thanks!

I didn't know about the semantics of exceptions in parallel code and
yieldForce. I should have paid more attention to the docs. :)
Feb 20 2012
parent =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 02/20/2012 09:39 AM, Andrej Mitrovic wrote:
 I have to say the pdf looks great, the choice of fonts and style is
 very clean and readable. Thanks!
Thank you very much! Glad to hear that it is useful but I will not pretend that the hyperlinks in the doc work correctly and that an index section is missing, etc. ;)
 I didn't know about the semantics of exceptions in parallel code and
 yieldForce. I should have paid more attention to the docs. :)
Me neither until I tried to write about it. :) By the way, I've improved that section a tiny bit: not only yieldForce but other Task functions throw as well. Ali
Feb 20 2012
prev sibling parent =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 02/20/2012 03:36 AM, David wrote:

 I've found a type: "To simulate long-lasting operations, the following
 examples call Thread.sleep() from the std.thread module. "
 Thread.sleep is in core.thread (you imported the correct module in the
 example-code)
Thanks! Just fixed. Ali
Feb 20 2012
prev sibling next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 2/20/12 1:12 AM, Ali Çehreli wrote:
 I have continued working on the book.

 1) Translated the Parallelism chapter:

 http://ddili.org/ders/d.en/parallelism.html
Excellent work. I submitted this to reddit, and left the others for a future announcement. http://www.reddit.com/r/programming/comments/pyd8s/parallelism_in_the_d_programming_language/ Andrei
Feb 20 2012
prev sibling next sibling parent reply David <d dav1d.de> writes:
You mentioned tasks, what I was missing a bit is taskPool.put, since 
Task.executeInNewThread creates a new internal Pool, which is not what 
always want. Then would be interesting how you check, if the pool's 
tasks have all finished (I didnt find any method doing this, to emulate 
this, I used an internal task-counter together with callbacks, but this 
doesnt allow me to check for exceptions ...).
Feb 21 2012
parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 02/21/2012 03:03 AM, David wrote:
 You mentioned tasks, what I was missing a bit is taskPool.put,
Thank you David. I will add the rest of the TaskPool member functions.
 since
 Task.executeInNewThread creates a new internal Pool, which is not what
 always want. Then would be interesting how you check, if the pool's
 tasks have all finished (I didnt find any method doing this, to emulate
 this, I used an internal task-counter together with callbacks, but this
 doesnt allow me to check for exceptions ...).
Good questions for D.learn, where I will learn myself. :) Ali
Feb 21 2012
parent David <d dav1d.de> writes:
Am 21.02.2012 18:28, schrieb Ali Çehreli:
 Good questions for D.learn, where I will learn myself. :)

 Ali
I think I should subscribe to it ;)
Feb 21 2012
prev sibling parent reply deadalnix <deadalnix gmail.com> writes:
Le 20/02/2012 08:12, Ali Çehreli a écrit :
 I have continued working on the book.

 1) Translated the Parallelism chapter:

 http://ddili.org/ders/d.en/parallelism.html

 2) Translated more chapters from the beginning of the book:

 * Redirecting Standard Input and Output Streams
 * Files
 * auto and typeof
 * Name Space
 * The for Loop
 * The Ternary Operator
 * Literals
 * Formatted Output
 * Formatted Input
 * The do-while Loop

 3) Made the book available as PDF, downloadable from the header of each
 chapter:

 http://ddili.org/ders/d.en/index.html

 Kindle and Lulu versions will follow later.

 Ali
This book is awesome ! I really think it. This is what D needs. Do you plan to sell copies when it is fully translated in english ?
Feb 22 2012
parent =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 02/22/2012 08:15 AM, deadalnix wrote:

 http://ddili.org/ders/d.en/index.html

 Kindle and Lulu versions will follow later.

 Ali
This book is awesome ! I really think it. This is what D needs.
Thank you very much for the kind words. I know where it needs more work and keep making it better. :)
 Do you plan to sell copies when it is fully translated in english ?
It wasn't my initial intention but I have started thinking about the self-publishing solutions like lulu.com. Some people complained that there is no way of showing appreciation by paying. :) A paper book may solve that problem as well. I also love the concept of an online book. I keep correcting typos, rephrasing sentences, adding more material, etc. all the time. :) Ali
Feb 22 2012