RE: [Haskell-cafe] proposal: HaBench, a Haskell Benchmark Suite

2007-01-26 Thread Simon Peyton-Jones
| Following up and the threads on haskell and haskell-cafe, I'd like to | gather ideas, comments and suggestions for a standarized Haskell | Benchmark Suite. Great idea. Maybe this can subsume nofib. I recommend reading the nofib paper though: http://citeseer.ist.psu.edu/partain93nofib.

hrm...

2007-01-26 Thread John Meacham
so I have this simple bit of code, which should be fast but seems to be being compiled to something very slow. > import Data.Word > import Data.Bits > > fhb :: Word -> Word > fhb w = b1 .|. b2 where > b2 = if 0x .&. w /= 0 then 0x2 else 0 > b1 = if 0xFF00FF00 .&. w /= 0 then 0x1

Re: hrm...

2007-01-26 Thread Donald Bruce Stewart
john: > so I have this simple bit of code, which should be fast but seems to be > being compiled to something very slow. > > > import Data.Word > > import Data.Bits > > > > fhb :: Word -> Word > > fhb w = b1 .|. b2 where > > b2 = if 0x .&. w /= 0 then 0x2 else 0 > > b1 = if 0xFF0

Re: hrm...

2007-01-26 Thread Lemmih
On 1/27/07, John Meacham <[EMAIL PROTECTED]> wrote: so I have this simple bit of code, which should be fast but seems to be being compiled to something very slow. > import Data.Word > import Data.Bits > > fhb :: Word -> Word > fhb w = b1 .|. b2 where > b2 = if 0x .&. w /= 0 then 0x2

Re: hrm...

2007-01-26 Thread John Meacham
On Sat, Jan 27, 2007 at 01:48:29AM +0100, Lemmih wrote: > On 1/27/07, John Meacham <[EMAIL PROTECTED]> wrote: > >so I have this simple bit of code, which should be fast but seems to be > >being compiled to something very slow. > > > >> import Data.Word > >> import Data.Bits > >> > >> fhb :: Word ->