February 20, 2012
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
February 20, 2012
Congratulations!

Is a very educational book.

Cheers!
-- 
Jordi Sayol
February 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.
>
> 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)

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

February 21, 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

February 21, 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

February 21, 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 ...).
February 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
February 21, 2012
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 ;)
« First   ‹ Prev
1 2
Top | Discussion index | About this forum | D home