[Haskell-cafe] Re: C-like Haskell

John Lato jwlato at gmail.com
Thu Jan 29 05:35:50 EST 2009


> On Wed, 2009-01-28 at 20:11 -0500, sam lee wrote:
>> Did you print it? I'm using same code with ghc --make -O2  and it
>> takes forever to finish.
>
> Yes, you can see in the output that it prints the same answer in each
> case. I was using r = 10^9 as you suggested.

I wouldn't call these answers the same.  Can this be ascribed to an
overflow error?

>
>> > C version:
>> > $ time ./circ
>> > 3141592649589764829
                      ^^
>
>> > Haskell version:
>> > time ./circ2
>> > 3141592653589764829
                      ^^

John Lato


More information about the Haskell-Cafe mailing list