Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Observations on OCaml vs. Haskell
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-28 (09:57)
From: Rafael 'Dido' Sevilla <dido@i...>
Subject: Re: [Caml-list] Observations on OCaml vs. Haskell
On Tue, Sep 28, 2004 at 10:31:31AM +0100, Keith Wansbrough wrote:
> But it's true that for text-handling performance in GHC you have to
> use something other than list-of-Char; typically you use PackedString,
> which is basically an array of bytes.  The boxing and unboxing
> certainly has significant cost.

And then you can't use the idioms that the parent poster so desires, and
you revert to using similar, and apparently even slightly more
cumbersome, programming idioms as you would to manage strings in OCaml.
That was the whole point of bringing up the Shootout benchmarks.  From
the code it appears they used strings as list-of-Char, allowing the kind
of pattern matching and other manipulations the parent poster talks

Te capiam, cuniculus sceleste!

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: