From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 65326BC37 for ; Sat, 28 Nov 2009 20:07:20 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlACACUEEUtV2gB4h2dsb2JhbACER5RngmMBAQEKCwgHFYhCnkWPY4Evgi5UBIMghXM X-IronPort-AV: E=Sophos;i="4.47,306,1257116400"; d="scan'208";a="38941989" Received: from emailfrontal1.citycable.ch ([85.218.0.120]) by mail3-smtp-sop.national.inria.fr with SMTP; 28 Nov 2009 20:07:10 +0100 Received: from [192.168.0.12] (unknown [85.218.92.99]) (Authenticated sender: guillaume.yziquel@citycable.ch) by emailfrontal1.citycable.ch (Postfix) with ESMTPA id E13D312C101; Sat, 28 Nov 2009 20:07:08 +0100 (CET) Message-ID: <4B1174E3.6080903@citycable.ch> Date: Sat, 28 Nov 2009 20:07:15 +0100 From: Guillaume Yziquel Reply-To: guillaume.yziquel@citycable.ch User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Erick Matsen Cc: caml-list@inria.fr Subject: Re: [Caml-list] solicitation for ocamlbuild examples to go in a new repository References: <243054520911280948p46d484b8vdd1e5c2187447711@mail.gmail.com> In-Reply-To: <243054520911280948p46d484b8vdd1e5c2187447711@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; guillaume:01 guillaume:01 wiki:01 mli:01 wiki:01 ocamlfind:01 stubs:01 caml-list:01 short:01 reuse:01 inferred:02 commented:02 suggestion:03 repository:03 tutorial:03 Erick Matsen a =C3=A9crit : > Hello Ocaml-folk-- >=20 > As the previous and many other posts on this list demonstrate, there > is a need for a collection of ocamlbuild examples which can be adapted > to various setting. I've started such a project (at Sylvain LeGall's > suggestion) at >=20 > http://forge.ocamlcore.org/projects/obuild-examples/ >=20 > I hope that the community will take a bit of time to sumbit examples. The point is, in my humble opinion, that we do need examples, but we'd=20 better try to have a generic plugin that solves most of the use cases.=20 And *precise* documentation of ocamlbuild to be able to write such a=20 plugin, or other plugins. For now, the pain/benefit ratio of writing ocamlbuild plugins is clearly=20 not worth it. Due to lack of documentation. > I'd be very happy if others were interested in joining the project, > but it might be easiest just to email examples directly to me. >=20 > An ideal "package" from my perspective would have > - a short description of what it does, just a sentence or two. > - a commented myocamlbuild.ml file > - the corresponding _tags file If you receive such examples, it would be useful to make them as generic=20 as possible. There's no point, from a tutorial point of view, in having=20 'complex' myocamlbuild plugins that you have to wrap your head around in=20 order to reuse. I'm thinking about examples on the wiki pages. > I hope to get examples of all levels, from very basic to advanced. > However, I think that there is a distinct need for simple examples > which do one or two interesting things (a flood of 10 page > myocamlbuild files isn't going to help people get off the ground). Yes. Exactly. > Thanks, >=20 > Erick There's definitely a know how out there. I'm thinking of bluestorm who=20 helped me out with the ".inferred.mli" target for the plugin on the wiki. http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild I gave feedback, and its been since then on the wiki page above. Maybe I'm mistaken, but this plugin hasn't evolved much since then. I'm=20 fairly disappointed that it has not been augmented to fit the needs of C=20 stubs in a generic way. All the best, --=20 Guillaume Yziquel http://yziquel.homelinux.org/