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=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 2863FBBC1 for ; Tue, 4 Mar 2008 18:50:55 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFoazUfAXQImh2dsb2JhbACQcwEBAQgKKZxD X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="9869333" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Mar 2008 18:50:54 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m24HospN014630 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 4 Mar 2008 18:50:54 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAJYazUfRVcisgWdsb2JhbACQcwEBCAUECQoWnEU X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="8005326" Received: from wf-out-1314.google.com ([209.85.200.172]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Mar 2008 18:50:53 +0100 Received: by wf-out-1314.google.com with SMTP id 26so1440472wfd.0 for ; Tue, 04 Mar 2008 09:50:52 -0800 (PST) Received: by 10.142.77.11 with SMTP id z11mr578443wfa.98.1204653052710; Tue, 04 Mar 2008 09:50:52 -0800 (PST) Received: by 10.142.166.11 with HTTP; Tue, 4 Mar 2008 09:50:52 -0800 (PST) Message-ID: <3a360f590803040950raa7eb1clcf0b8b1cc6a8edc7@mail.gmail.com> Date: Tue, 4 Mar 2008 12:50:52 -0500 From: "Hezekiah M. Carty" Sender: hcarty@mulethief.com To: "Berke Durak" Subject: Re: [Caml-list] OSR - "Batteries included" - Standardizing syntax extensions and extra libraries Cc: "Caml-list List" , "David Teller" In-Reply-To: <47CD82F3.20600@exalead.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47CD82F3.20600@exalead.com> X-Google-Sender-Auth: 20a716ae43618cf7 X-Miltered: at discorde with ID 47CD8BFE.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; syntax:01 berke:01 durak:01 berke:01 durak:01 syntax:01 ocaml:01 ocaml:01 toolchain:01 pcre:01 ocamlc:01 ocamlopt:01 pcre:01 -pp:01 ocamlfind:01 On Tue, Mar 4, 2008 at 12:12 PM, Berke Durak wrote: > Hello all, > > David Teller suggested that I launch a thread on my suggestion at the end of the > "different records, same field name?" thread. > > The idea is to define, as part of the OSR process, a list of > "standard" syntax extensions and libraries. A meta-distribution of Ocaml would > then include, for every element of the ocaml toolchain, a version that has > access to those extensions and libraries. The name of the extended tool would > be obtained by adding an "s" to the original name. > > Hence, assuming that we agree that Alain Frisch's openin and, say, Pcre should > be part of the standard, then > > ocamlcs (resp. ocamlopts) > > would be a script calling ocamlc (resp. ocamlopt) with options > > -I +pcre -pp pa_openin > > Then we'd tell people new to Ocaml to use those instead; the existing users > will be told to just add an "s". I like this idea, and think that it would make getting started with OCaml and its libraries much easier for new users. > > A few switches such as -only unix,pcre should be added to ocamlcs to prevent it > from linking it everything if this is a concern. If ocamlfind were included as a standard part of the community OCaml distribution, then I think it would ease this process significantly. The standard set of libraries and syntax extensions could be checked against the proposed extra switches (-onlylibs/-exceptlibs/-libs) and used accordingly. The user would only need to know the ocamlfind name of the library they wish to include/exclude. The script would not have to keep track of including or excluding the proper directories for each new library which comes along in the ocaml(c|opt) search path since ocamlfind takes care of this. I think ocamlfind/findlib supports syntax extension packages as well - if it does then these could be handled in the same way. Hez -- Hezekiah M. Carty Graduate Research Assistant University of Maryland Department of Atmospheric and Oceanic Science