can a lazy language give fast code?

Scott J. jscott@planetinternet.be
Tue, 30 Jul 2002 01:55:14 +0200


What I also meant but did not write was this: is there anyone who would like
to redo these benchmarks and see what it gives with all the new inventions
the DHC supports?

Cheers

Scott


----- Original Message -----
From: "Simon Marlow" <simonmar@microsoft.com>
To: "Scott J." <jscott@planetinternet.be>; <haskell-cafe@haskell.org>
Sent: Monday, July 29, 2002 11:23 AM
Subject: RE: can a lazy language give fast code?


> > Can one write withthe Haskell compliler faster code than in
> > the examples of http://www.bagley.org/~doug/shootout/  where
> > GHC (old Haskell 98?) seems to be much slower than Ocaml  or
> > Mlton both strict functional languages.
> > Can one expect any improvements in speed in the future?
>
> Many of those programs can be written differently to improve
> performance.  One issue that is affecting performance in several cases
> is the speed of character I/O, and the representation of Strings as
> lists of characters.  Dramatic improvements can be had by using unboxed
> arrays of Char (Data.Array.Unboxed), or PackedString (which these days
> is implemented using unboxed arrays in GHC).
>
> Cheers,
> Simon
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>