From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id FAA02819; Tue, 27 Mar 2001 05:16:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA02783 for ; Tue, 27 Mar 2001 05:15:58 +0200 (MET DST) Received: from shell5.ba.best.com (shell5.ba.best.com [206.184.139.136]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f2R3Fur18332; Tue, 27 Mar 2001 05:15:56 +0200 (MET DST) Received: from localhost (bpr@localhost) by shell5.ba.best.com (8.9.3/8.9.2/best.sh) with ESMTP id TAA28614; Mon, 26 Mar 2001 19:15:54 -0800 (PST) Date: Mon, 26 Mar 2001 19:15:54 -0800 (PST) From: Brian Rogoff To: Patrick M Doane cc: Fabrice Le Fessant , caml-list@inria.fr Subject: Re: [Caml-list] Caml Development Kit In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 26 Mar 2001, Patrick M Doane wrote: > As much as I love Caml as a language, I have to admit that I've been less > than pleased with the standard infrastructure for string manipulation. > First a summary of approaches that I'm aware of: > > 1) Manipulate the string manually with functions like String.index and > maintain position variables. I find this to be pretty error-prone and > hard to read. > > 2) Use the stream parsers. I hesitate to use them because of their > status as "experimental" and that be removed at any time. I also have > heard claims that their performance is not too good compared with other > techniques. Does anyone know if this true? This is like shooting squirrels with a sniper rifle. It's quite a bit more power than you need for most string processing tasks. I certainly wouldn't worry about the "experimental" label since it's been there for quite a long time. Why not steal the substring library from the SML Basis? It's a variant on your 1) and has the added advantage that we can lift much of the documentation from the SML community. It might even be worthwhile to just steal as much of the Basis library as possible from Mosml and SML/NJ. Stealing code is this way is good, and it allows SML programmers to migrate more easily (and ultimately would allow Caml programmers easy migration too) which is a good thing. As far as regexp libraries go, I like Pcre, but I haven't tried xstr. -- Brian ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr