From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 1ED6CBB91 for ; Mon, 10 Jan 2005 19:21:37 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0AILaE5020268 for ; Mon, 10 Jan 2005 19:21:36 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA03773 for ; Mon, 10 Jan 2005 19:21:36 +0100 (MET) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j0AILZmh015663 for ; Mon, 10 Jan 2005 19:21:36 +0100 Received: from c-24-3-154-200.client.comcast.net ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa26666; 10 Jan 2005 13:21 EST Received: from ecc by stratocaster.home with local (Exim 4.34) id 1Co4AH-0004Lu-8f; Mon, 10 Jan 2005 13:21:17 -0500 Date: Mon, 10 Jan 2005 13:21:17 -0500 To: caml-list@yquem.inria.fr, "O'Caml Mailing List" Subject: Re: [Caml-list] Thread safe Str Message-ID: <20050110182117.GA16480@localhost> Mail-Followup-To: caml-list@yquem.inria.fr, O'Caml Mailing List References: <20050109.203010.110660321.Christophe.Troestler@umh.ac.be> <20050110154917.GA4582@yquem.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050110154917.GA4582@yquem.inria.fr> User-Agent: Mutt/1.5.6+20040907i From: "Eric C. Cooper" X-Miltered: at nez-perce with ID 41E2C7B0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41E2C7AF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 apis:01 thread-safe:01 api:01 syntax:01 regexps:01 regexps:01 api:01 shivers:01 scsh:01 abstract:01 thread:02 tree:02 string:03 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: On Mon, Jan 10, 2005 at 04:49:17PM +0100, Xavier Leroy wrote: > My initial plan was to have two APIs, the old Str for compatibility > and a newer, better designed one for new programs. Besides being > thread-safe, the new API could also expose the abstract syntax tree > for regexps, allowing easier construction of complex regexps by > programs than can be done by working at the level of the string > representation of regexps. It's just that I never got to design > that new API :-( The API used by Olin Shivers for regexps in scsh might be a good starting point. -- Eric C. Cooper e c c @ c m u . e d u