[Haskell-cafe] interesting IO oriented code
bryce at jfet.net
Thu Mar 17 16:27:58 EST 2005
I've been wondering lately, about the shootout results. Is there some
Haskell Language intrinsic reason that OCaml performs so well in
comparison to Haskell in the shootout (e.g. even optimized Haskell code
will allways be slower because of overhead of language features or
something like this), or is a maturity issue. In 5 years from now will we
always be able to match or surpass OCaml's efficiency? I realize the
benchmarks are arbitrary, but it's just something I've been wondering about.
On Thu, 17 Mar 2005, robert dockins wrote:
>>> 2) It is performant (mostly). At least it outperforms other Haskell IO
>>> methods I have tried. My 'wc' is about twice as fast as the current
>>> shootout version in informal tests (the shootout code is included in the
>>> repo). My md5 can sum somewhere between 2-4Mb/Sec on my hardware.
>> You know that http://www.bagley.org/~doug/shootout/ is frozen, don't you?
>> For a current version look at http://shootout.alioth.debian.org/
>> The current version is fast but ugly. There was some comitee work on
>> Haskell mailing lists to make it prettier, but it didn't make to the
>> shootout yet.
> Thanks, I do have an old version; it wasn't on bagley.org, but I'm not sure
> exactly where I found it. I'll compare against the newest version when I
> get home.
> The reason I compared to the shootout program was to get a sense of how well
> the API I was developing stacked up against hand-optimized haskell. So,
> even getting pretty close is a win as far as I'm concerned.
> (... quick google ...) I just found Ian's md5 implementation. I'll compare
> to that as well when I get a chance.
>> BTW, do we care about such benchmarks? I am going to have some spare
>> time and I could work on Haskell solutions a bit, but I'm not sure
>> it's worth the hassle.
> I think they are interesting as an indication of where haskell and GHC in
> particular are weak. If the techniques developed for optimizing shootout
> scripts can drive better optimizations or new, better libraries, I think
> that's worthwhile. OTOH, nobody asks if perl golf (for example) is
> worthwhile, they just do it for kicks (as far as I can tell).
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe