[Haskell-cafe] Re: Shootout favoring imperative code

Bulat Ziganshin bulatz at HotPOP.com
Wed Jan 11 13:20:43 EST 2006

Hello Einar,

Wednesday, January 11, 2006, 6:06:56 PM, you wrote:

>> My version of the packed string library does have an hGetLine.  Don
>> Stewart was merging my version with his fps at some point, Don - any 
>> news on that?

EK> Getting a fast FastPackedString will solve the problems with many
EK> benchmarks.

btw, JHC's version of FPS uses slightly less memory (i don't remember,
8 or 12 bytes per each string) and i think must be faster (because it
uses ByteArray# instead of Addr#). so, the best variant is to add hGetLine
to John's library

>>                   set arr x yv

(arr,x) =: yv

looks better ;)

EK> and so forth. Usually imperative solutions have something like
EK> "a[i] += b[i]", which currently is quite tedious and ugly to
EK> translate to MArrays. Now it would become "combineTo a i (+) b i".

you are definitely a Hal Daume's client, look at http://www.isi.edu/~hdaume/STPP/

Best regards,
 Bulat                            mailto:bulatz at HotPOP.com

More information about the Haskell-Cafe mailing list