digitalmars.D.announce - "Programming in D" book, Parallelism chapter
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (19/19) Feb 19 2012 I have continued working on the book.
- Jordi Sayol (5/5) Feb 20 2012 Congratulations!
- David (6/25) Feb 20 2012 Great Work!
- Andrej Mitrovic (4/4) Feb 20 2012 I have to say the pdf looks great, the choice of fonts and style is
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (8/12) Feb 20 2012 Thank you very much! Glad to hear that it is useful but I will not
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (3/7) Feb 20 2012 Thanks! Just fixed.
- Andrei Alexandrescu (5/8) Feb 20 2012 Excellent work. I submitted this to reddit, and left the others for a
- David (6/6) Feb 21 2012 You mentioned tasks, what I was missing a bit is taskPool.put, since
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (4/11) Feb 21 2012 Good questions for D.learn, where I will learn myself. :)
- David (2/4) Feb 21 2012 I think I should subscribe to it ;)
- deadalnix (3/22) Feb 22 2012 This book is awesome ! I really think it. This is what D needs.
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (10/17) Feb 22 2012 Thank you very much for the kind words. I know where it needs more work
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
Congratulations! Is a very educational book. Cheers! -- Jordi Sayol
Feb 20 2012
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. AliGreat 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
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
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
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
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.htmlExcellent 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
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
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
Am 21.02.2012 18:28, schrieb Ali Çehreli:Good questions for D.learn, where I will learn myself. :) AliI think I should subscribe to it ;)
Feb 21 2012
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. AliThis 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
On 02/22/2012 08:15 AM, deadalnix wrote:Thank you very much for the kind words. I know where it needs more work and keep making it better. :)http://ddili.org/ders/d.en/index.html Kindle and Lulu versions will follow later. AliThis 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 ?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