Browse thread
[Caml-list] Observations on OCaml vs. Haskell
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 about. -- dido Te capiam, cuniculus sceleste! ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners