[Haskell-cafe] Progress indications
Andrew Coppin
andrewcoppin at btinternet.com
Wed Nov 28 17:03:00 EST 2007
In a "normal" programming language, you might write something like this:
for x = 1 to 1000000
print x
...do slow complex stuff...
next x
In Haskell, you're more likely to write something like
result k = filter my_weird_condition $ map strange_conversion $
unfoldr ...
That means that when you try to process the result, lots of processing
happens, and your program just appears to lock up until a result is
produced. So, like, how do you make it so that some kind of progress
information is output while it's working? (Aside from dunking everything
into the IO monad and ruining all your beautiful abstractions.) There
doesn't seem to be a clean solution to this one...
More information about the Haskell-Cafe
mailing list