The program seems to take around 6 seconds on my linux-box, while the c version
goes for 0.06 sekcond.
That is really some regression bug :-)
Anyone with a more recent version thatn 7.4.1?
Felix
Fra: Johan Tibell johan.tib...@gmail.com
Til: Fixie Fixie
That's really an argument for upgrading to 7.4.2 :-)
Another reason for doing things with haskell is this mailing list.
Thanks!
Felix
Fra: Johan Tibell johan.tib...@gmail.com
Til: Fixie Fixie fixie.fi...@rocketmail.com
Kopi: Haskell cafe
On Donnerstag, 29. November 2012, 21:00:36, Fixie Fixie wrote:
The program seems to take around 6 seconds on my linux-box, while the c
version goes for 0.06 sekcond.
That is really some regression bug :-)
Anyone with a more recent version thatn 7.4.1?
I don't even have a problem with
On Thu, Nov 29, 2012 at 1:32 PM, Daniel Fischer
daniel.is.fisc...@googlemail.com wrote:
We have an unpleasant regression in comparison to 7.2.* and the 7.4.* were
slower than 7.6.1 is, but it's all okay here (not that it wouldn't be nice to
have it faster still).
Are you on a 32-bit system?
On Thu, Nov 29, 2012 at 1:40 PM, Johan Tibell johan.tib...@gmail.com wrote:
This version works around the Word-Double conversion bug and shows
good performance:
I'd also like to point out that I've removed lots of bang patterns
that weren't needed. This program runs fine without any bang
On Donnerstag, 29. November 2012, 13:40:42, Johan Tibell wrote:
word2Double :: Word - Double
word2Double (W# w) = D# (int2Double# (word2Int# w))
On my (64-bit) machine the Haskell and C versions are on par.
Yes, but the result is very different.
On Donnerstag, 29. November 2012, 13:40:42, Johan Tibell wrote:
word2Double :: Word - Double
word2Double (W# w) = D# (int2Double# (word2Int# w))
On my (64-bit) machine the Haskell and C versions are on par.
On my box, the Haskell is even faster then, but, as said, the result is
incorrect
On Thu, Nov 29, 2012 at 2:02 PM, Johan Tibell johan.tib...@gmail.com wrote:
On Thu, Nov 29, 2012 at 2:01 PM, Daniel Fischer
daniel.is.fisc...@googlemail.com wrote:
On Donnerstag, 29. November 2012, 13:40:42, Johan Tibell wrote:
word2Double :: Word - Double
word2Double (W# w) = D# (int2Double#