From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_WHOIS autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 67312BBC1 for ; Tue, 4 Mar 2008 21:31:40 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFJAzUfAXQImh2dsb2JhbACQcgEBAQgKKZx5 X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="8011824" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Mar 2008 21:31:40 +0100 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m24KVdmW020581 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 4 Mar 2008 21:31:40 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAO0/zUfOvjGwoWdsb2JhbACQcwEBAQEBAQUEBgkIAReccg X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="9876400" Received: from web54606.mail.re2.yahoo.com ([206.190.49.176]) by mail3-smtp-sop.national.inria.fr with SMTP; 04 Mar 2008 21:31:39 +0100 Received: (qmail 22597 invoked by uid 60001); 4 Mar 2008 20:31:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=M7sTFA0wsxGYZHnFWiFHZ5/CHBbF1V+6Kqkpywg7a8Eq4ho3mwhTBeeokrP7mqPdHXHhBH7IXy/VDFmxA4WqQxSILkAdFoimh6M6gjek9srIytXBDcANw2LTz3zUG0RE8uTIF4hyIm11EYVkwxvOXgo5+pFBH0DKkUeVFl7LD5Q=; X-YMail-OSG: lyb3Pf4VM1n5bUQXSQskcdLFaktUinhFzqExDJn9 Received: from [82.155.125.80] by web54606.mail.re2.yahoo.com via HTTP; Tue, 04 Mar 2008 20:31:38 GMT Date: Tue, 4 Mar 2008 20:31:38 +0000 (GMT) From: Dario Teixeira Subject: Re: [Caml-list] OSR - "Batteries included" - Standardizing syntax extensions and extra libraries To: "Hezekiah M. Carty" , Berke Durak Cc: Caml-list List , David Teller In-Reply-To: <3a360f590803040950raa7eb1clcf0b8b1cc6a8edc7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <331303.21401.qm@web54606.mail.re2.yahoo.com> X-Miltered: at discorde with ID 47CDB1AB.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; syntax:01 ocamlfind:01 ocaml:01 ocamlfind:01 syntax:01 findlib:01 pcre:01 byte:01 cmxa:01 camlp:01 cmo:01 toploop:01 cmo:01 findlib:01 ocamlc:01 > If ocamlfind were included as a standard part of the community OCaml > distribution, then I think it would ease this process significantly. Hi, Indeed. I was about to start my own OSR thread concerning the proper use of ocamlfind with libraries that offer a syntax extension. One good example is PG'OCaml (by Rich Jones): it ships with a META file that makes the use of the syntax extension really simple with findlib. This is the META file: (I just removed the description lines) name="pgocaml" version="1.0" requires="unix,extlib,csv,pcre,calendar" archive(byte)="pgocaml.cma" archive(native)="pgocaml.cmxa" package "statements" ( requires = "pgocaml,camlp4" version = "1.0" archive(syntax,preprocessor) = "pa_pgsql.cmo" archive(syntax,toploop) = "pa_pgsql.cmo" ) Notice the "statements" subpackage. Suppose you have a "test.ml" file that uses PG'OCaml's syntax extension. Compiling it with findlib is as simple as: ocamlfind ocamlc -package pgocaml.statements -syntax camlp4o -c test.ml This is of course particularly relevant for GODI, and I noticed that not all GODI packages ship with camlp4-friendly META files (Sexplib, for one). Moreover, it would be nice if a standard name could be found for these subpackages. PG'OCaml uses "statements", but that may be a bit long-winded. What about just "pp"? Now, to reach package nirvana, we just need to get Ocamlbuild to be friendlier to findlib -- including in the use of these syntax extensions. Cheers, Dario Teixeira __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html