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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E20D4BBC1 for ; Tue, 4 Mar 2008 18:12:20 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAIsRzUfAXQInh2dsb2JhbACQcwEBAQgKKZxU X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="23362601" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 04 Mar 2008 18:12:20 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m24HCKa1016609 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 4 Mar 2008 18:12:20 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAHMRzUfBL1AZbWdsb2JhbACQcwsEBhAZnFM X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="8003748" Received: from gw.exalead.com (HELO exalead.com) ([193.47.80.25]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Mar 2008 18:12:20 +0100 Received: from [192.168.204.148] (madpc064.exalead.com [192.168.204.148]) (authenticated bits=0) by exalead.com (8.14.0/8.14.0) with ESMTP id m24HCJm5020090; Tue, 4 Mar 2008 18:12:19 +0100 Message-ID: <47CD82F3.20600@exalead.com> Date: Tue, 04 Mar 2008 18:12:19 +0100 From: Berke Durak User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: Caml-list List , David Teller Subject: OSR - "Batteries included" - Standardizing syntax extensions and extra libraries Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 47CD82F4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; berke:01 durak:01 berke:01 durak:01 syntax:01 syntax:01 ocaml:01 ocaml:01 toolchain:01 pcre:01 ocamlc:01 ocamlopt:01 pcre:01 -pp:01 netclient:01 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". This would make the answer of the question "how do I open modules locally and parse XML fetched thru HTTP in Ocaml?" become as simple as I assume you are using Ocaml-OSR. Use Netclient and Xmlm; for local modules, do "open M in...". instead of First, you must install Netclient and Xmlm. What OS are you using? For debian, you must do apt-get install ocaml-netclient ocaml-xmlm. For NetBSD, you must install GODI then Ocamlfind. Then, you must install the openin extension and -I +netclient -I ... to your command line. 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. -- Berke DURAK