Browse thread
Strings
[
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: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] Strings |
On Sunday 05 April 2009 07:57:56 Goswin von Brederlow wrote: > Jon Harrop <jon@ffconsultancy.com> writes: > > On Saturday 04 April 2009 22:51:50 Goswin von Brederlow wrote: > >> The beauty of ocaml strings is that they are really compact. An ocaml > >> string on 32bit is 5-8 bytes longer than the contained string and 9-16 > >> bytes on 64bit. > > > > The ugliness is that 16Mb limit. I assume those limits have been removed > > in batteries?! > > As that is a limitation of the GC memory structure of a string there > is nothing batteries can do there. Not for the basic type string. It > is also just 32bit that is so severly limited. Batteries could replace all uses of the built-in string type with another type, such as a byte big array, just as they have done to implement ropes. I don't think they could address the array limitation though, because that is polymorphic. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e