From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 8F4E6BC8C for ; Mon, 10 Jan 2005 21:26:07 +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 j0AKQ7qh032079 for ; Mon, 10 Jan 2005 21:26:07 +0100 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 VAA07506 for ; Mon, 10 Jan 2005 21:26:06 +0100 (MET) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0AKQ5Fj032070; Mon, 10 Jan 2005 21:26:06 +0100 Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 8A90DC4B566; Mon, 10 Jan 2005 15:26:04 -0500 (EST) X-Sasl-enc: nrE8IC42AdvIhe8XKnrcVw 1105388759 Received: from [172.16.112.115] (burnham.ljcrf.edu [192.231.106.2]) by frontend2.messagingengine.com (Postfix) with ESMTP id 34D6D75E; Mon, 10 Jan 2005 15:25:57 -0500 (EST) Date: Mon, 10 Jan 2005 12:25:56 -0800 (PST) From: Martin Jambon X-X-Sender: martin@localhost To: Xavier Leroy Cc: Christophe TROESTLER , "O'Caml Mailing List" Subject: Re: [Caml-list] Thread safe Str In-Reply-To: <20050110154917.GA4582@yquem.inria.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at nez-perce with ID 41E2E4DF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41E2E4DE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 regexp:01 compiler:01 thread-safe:01 api:01 api:01 pairs:01 compile-time:01 syntax:01 ocaml:01 syntax:01 ...:98 century:98 jambon:02 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.0 X-Spam-Level: On Mon, 10 Jan 2005, Xavier Leroy wrote: > You are correct: the regexp compiler (written in Caml) and the > execution engine (written in C) are thread-safe, it's only the API (in > Caml) that uses global state. Good to know :-) > The implementation work should be quite small indeed, but don't > underestimate the work needed to design the API. API design is harder > than it seems... But if a few persons on this list want to team up to > design an API, that would be wonderful indeed. (A small group is > better than individual designers in that several pairs of eyes spot > inconsistencies better.) I would be glad to help if I can. However, my concerns are more about how to integrate regular expressions in the language so that they can be checked at compile-time just like the rest of the program. My Camlp4 syntax extension (http://martin.jambon.free.fr/micmatch.html) works just fine for this purpose and I am not asking for any change in the core OCaml syntax ;-) Martin -- Martin Jambon, PhD Researcher in Structural Bioinformatics since the 20th Century The Burnham Institute http://www.burnham.org San Diego, California