From: Berke Durak <berke.durak@exalead.com>
To: "Bünzli Daniel" <daniel.buenzli@erratique.ch>
Cc: caml-list caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] On module distribution
Date: Tue, 15 Jan 2008 14:38:02 +0100 [thread overview]
Message-ID: <478CB73A.2030706@exalead.com> (raw)
In-Reply-To: <92920466-3BCE-4A9F-9742-3396B07006F7@erratique.ch>
Bünzli Daniel a écrit :
> 3. Manage packages per project (vs. per machine) to make project
> dependencies explicit. Thus a single command can install you the (OCaml
> + C stubs only) dependencies of your project on a fresh system. If your
> project is a package itself, it facilitates its packaging .
>
> 4. Rely on ocamlbuild to do the hard work. Grosso modo in the way
> described here [3], which may be unrealistic for big projects, but on
> unices ressource consumption could be mitigated by making hard links to
> a cache maintained per user or machine (inspired by ideas in this
> message [4]).
I'm not a big fan of hardlinking external stuff into the _build directory.
I think we should rather add to Ocamlbuild a module for calling
ocamlfind, parsing its output, etc. This way ocamlbuild plugins could
easily call ocamlfind, be it for configuration or compilation.
Pursuing the ocamlbuild philosophy of having a simple solution for
simple problems, a built-in tag syntax and associated rules should allow
such simple (e.g. regular) projects to easily use a package registered
in ocamlfind.
I'm thinking of a tag use_ocamlfind(PROJECTNAME) so that you could write:
<myproject.{byte,native}>: use_ocamlfind(pcre), use_ocamlfind(mysql)
Of course you still need to register those packages in ocamlfind.
As Ocaml binaries are brittle, a solution for compiling from source such
as Godi is welcome.
However Godi needs to be kept up-to-date with respect to the Ocaml
distribution... it is currently only available for 3.09!
--
Berke DURAK
next prev parent reply other threads:[~2008-01-15 13:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 11:20 Bünzli Daniel
2008-01-15 13:38 ` Berke Durak [this message]
2008-01-15 14:24 ` [Caml-list] " Gerd Stolpmann
2008-01-15 15:07 ` Sylvain Le Gall
2008-01-15 20:41 ` [Caml-list] " Bünzli Daniel
2008-01-15 20:56 ` Vlad Skvortsov
2008-01-16 10:19 ` Maxence Guesdon
2008-01-15 20:56 ` Will Farr
2008-01-15 21:27 ` Sylvain Le Gall
[not found] ` <b256a4c50801151610o54b86a6dv1e3b54616b6bd9f0@mail.gmail.com>
2008-01-16 0:11 ` Fwd: [Caml-list] " Jonathan Bryant
2008-01-16 5:26 ` Jonathan Bryant
2008-01-15 18:46 ` [Caml-list] " David Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=478CB73A.2030706@exalead.com \
--to=berke.durak@exalead.com \
--cc=caml-list@yquem.inria.fr \
--cc=daniel.buenzli@erratique.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox