From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA14762 for caml-red; Fri, 8 Dec 2000 10:03:29 +0100 (MET) 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 RAA30698 for ; Thu, 7 Dec 2000 17:32:40 +0100 (MET) Received: from miss.wu-wien.ac.at (miss.wu-wien.ac.at [137.208.107.17]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id eB7GWeL29834 for ; Thu, 7 Dec 2000 17:32:40 +0100 (MET) Received: (from mottl@localhost) by miss.wu-wien.ac.at (8.9.0/8.9.0) id RAA01008; Thu, 7 Dec 2000 17:32:28 +0100 (MET) Date: Thu, 7 Dec 2000 17:32:28 +0100 From: Markus Mottl To: John Max Skaller Cc: OCAML Subject: Re: features of PCRE-OCaml Message-ID: <20001207173228.B9463@miss.wu-wien.ac.at> References: <20001206015139.D31140@miss.wu-wien.ac.at> <3A2FB459.416E1E05@ozemail.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A2FB459.416E1E05@ozemail.com.au>; from skaller@ozemail.com.au on Fri, Dec 08, 2000 at 03:01:29 +1100 Sender: weis@pauillac.inria.fr On Fri, 08 Dec 2000, John Max Skaller wrote: > Funny. Python 1.5.2 used the _same_ C library by Philip Hazel. :-) > Given the fact this library builds DFA's instead of NFA's, Python > ought to be faster than Perl. :-) Well, the matching engine is not everything... ;) > Note also, Python 2.0 uses a modified library which does something > PCRE-OCaml cannot: it works with Unicode characters (supposedly). To my knowledge, Phil Hazel is working on support for this. Unless the PCRE-library supports Unicode (and unless OCaml does ;), there is not much one can do about it... > I do have a question though: is it possible to build a Str compatible > interface to PCRE-Ocaml, and then make them both a standard part > of the distribution? [The idea of a functional language using > non-reentrant libraries seems slightly absurd to me :-] I am not sure whether it is really necessary to have a Str compatible interface: the regular expressions are already different so exchanging the old against the new library would break code anyway. - Markus Mottl -- Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl