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

Ben Franksen ben.franksen at online.de
Fri Nov 30 22:53:14 EST 2007

Paul Moore wrote:
> On 28/11/2007, Ben Franksen <ben.franksen at online.de> wrote:
>> It was fun, too. For instance, the OP's question reminded me of a little
>> generic wrapper I wrote  -- more or less for my own amusement -- during
>> the course of this project. It outputs dots during an operation that
>> might take a little longer to finish (a database query in my case)...
>> just so the user doesn't get nervous ;-) And because I enjoyed it so much
>> (and to show off) I threw in the timing measurement...
> [...]
>> I think nobody in his right mind would even try to do something like that
>> in C or Perl or whatever, at least not if it wasn't strictly a
>> requirement and correct operation is important (the script gets executed
>> as part of our build process and a subtle concurrency bug could lead to a
>> wrong configuration for the target control system). In Haskell it was so
>> easy to do that I just couldn't resist.
> That's a neat idea. Just (a) because I like the idea, and (b) because
> I'm contrary :-) I coded up the equivalent in Python. It also looks
> beautifully clean:
> [snipped python code]

Looks good to me. I' walk back on the "or whatever" with regard to
Python... ;-)


More information about the Haskell-Cafe mailing list