[Haskell-cafe] How to improve speed? (MersenneTwister is
several times slower than C version)
Bulat Ziganshin
bulat.ziganshin at gmail.com
Thu Nov 2 03:30:04 EST 2006
Hello Lennart,
Thursday, November 2, 2006, 6:04:39 AM, you wrote:
> The whole point of writing the Mersenne Twister was that I wanted to
> show how a stateful computation could be encapsulated in the ST monad
> and none of it showing up outside. This aspect of the code is
> totally gone now when everything is in the IO monad. Is there some
> good reason to have it in the IO monad?
i think no. ST computations internally are really the same as IO ones
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list