[Haskell-cafe] Re: Waiting for thread to finish

Maurí­cio briqueabraque at yahoo.com
Fri Nov 30 07:54:41 EST 2007

 >> Sorry, I don't agree. I try to write
 >> things in a way that when you read it you
 >> can get an intuition on why it's doing
 >> what it's doing; (...)

 > That's what comment are for :)

You're right. I should stop my habit of using
a script to remove comments before reading
other people code :)

 >> generate. So, instead of checking if
 >> threads have finished, I decided to check
 >> if files exist and are available for
 >> writing. When I read 'takeMVar (...)

 > Checking a file is non blocking, right?
 > (...)

Yes. That was a completely wrong idea. I just
decided not use threads this time.

 > Threads won't give you a speedup unless you
 > run the program on a multi-core/multi-proc
 > machine.  They help making the program
 > simpler, IMHO.

Also agree. Properly threaded programs are a
LOT easier to read.


More information about the Haskell-Cafe mailing list