Browse thread
[Caml-list] (Sorry for my last post) lazyness, exceptions?, ocaml syntax rule-of-thumbs
[
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: | tim@f... |
| Subject: | Re: [Caml-list] (Sorry for my last post) lazyness, exceptions?, ocaml syntax rule-of-thumbs |
>Well, but what about memory usage? >I just miss an iterator, or sg. like that, which reads a line, processes >it, reads next line... Is there a reason not to use streams? I'm not clear on the current limitations of the streams.ml that comes with OCAML (logged as bug 1289), but the improved version at http://www.fungible.com fully implements all of the operations that can get through type checking and can read 10MB/s on my 600 Mhz Pentium III. It ought to be easy to write a function that takes a stream of characters and returns a stream of lines. -- Tim Freeman tim@fungible.com GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78 ------------------- 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