Having trouble with parallel Haskell

Albert Y. C. Lai trebla at vex.net
Wed Jun 4 18:08:04 EDT 2008

I do not have a platform to try it on; the following is pure speculation.

In main, the builder of input is highly lazy, since randoms is. To be 
sure, the spine of the list is presently forced by printing its length, 
but the numbers inside the list... It is very bleak because randoms 
ensures that input!!(n+1) is patently dependent on input!!n, ad 
infinitum; this should defy all attempts at parallelism...

Forcing the numbers themselves before sorting will give a much more 
conclusive result, success or failure.

More information about the Glasgow-haskell-users mailing list