[Haskell-cafe] Optimization flag changing result of code execution

Aleksey Khudyakov alexey.skladnoy at gmail.com
Mon Mar 18 09:37:48 CET 2013


On 17 March 2013 21:49, Dominic Steinitz <dominic at steinitz.org> wrote:
> Aleksey Khudyakov <alexey.skladnoy <at> gmail.com> writes:
>
>> I've tried to run you program and I've got approximately same results
>> regardless of optimization level. Which versions of GHC, mwc-random,
>> vector and primitive do you use?
>>
>
> By approximate do you mean you are getting Monte Carlo noise
> or Floating Point noise? If the latter then that's reasonable;
> if the former then that's worrying.
>
Difficult to say. I got values around 10 with and without optimizations. Most
likely it's MC noise

I was using GHC-7.6.2 and latest vector/primitive/mwc-random. I didn't tried
to reproduce bug with versions which Azeem Ul Hasan use.



More information about the Haskell-Cafe mailing list