caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sebastien Mondet <sebastien.mondet@gmail.com>
To: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] One build system to rule them all?
Date: Wed, 10 Sep 2014 15:56:47 -0400	[thread overview]
Message-ID: <CALScVYmeFnrGGgv_-19xiZbbRs58Qw=-wm+OK4vyxosxhx7GZQ@mail.gmail.com> (raw)
In-Reply-To: <fc40822c9abe3097105f2cc221fd73c4@whitequark.org>

[-- Attachment #1: Type: text/plain, Size: 2552 bytes --]

On Wed, Sep 10, 2014 at 3:16 PM, Peter Zotov <whitequark@whitequark.org>
wrote:

> On 2014-09-10 22:59, Yotam Barnoy wrote:
>
>> ocp-build actually looks very interesting. The manual (which is here:
>> http://github.com/OCamlPro/ocp-build/blob/master/docs/
>> user-manual/user-manual.pdf?raw=true
>> [2]) is incomplete, but contains a nice survey of the existing build
>> tools, and motivation for making ocp-build. Has anyone had experience
>> with ocp-build? Opam seems to be using it, but they also use a
>> makefile (why?) with a bunch of shell commands inside (which is
>> precisely the problem from my perspective). ocp-build is supposedly
>> compatible with Windows, too.
>>
>
> Every single time I had to use ocp-build, it broke in an odd and hard to
> fix way. It was so bad that eventually I just ported the ocp-build-using
> projects (ocp-index and its dependencies) to OASIS. Most worryingly it has
> some strange requirement to ship bytecode, which ties it to a released
> OCaml
> version; no other buildsystem needs that.
>
>
Yes ocp-build is broken for many corner cases, I've been trying to push it
to its maximum; look at that ugly shell script:
https://github.com/hammerlab/ketrew/blob/master/please.sh that even has to
create a yojson library out of the one in ~/.opam to please ocp-build's
assumptions.

Also, like every build system based on flat files (oasis, obuild), it is
fundamentally broken. You'll always need a programming language to extended
your build (adding targets, like build documentation/websites, special
tests, .merlin files, code generation...).

- omake did that with yet another obscure and weird language (I guess the
goal was to "look" like `make` but with even more broken string escaping).
- ocamlbuild and jenga picked the right language.
    - ocamlbuild's API is very limited, there is not even a clear way to
replace all the crazy small files required everywhere (_tags, mllib, ...)
with function calls within a myocamlbuild.ml plugin. It is also painfully
slow.
    - Jenga is not for "normal" projects. It takes half-an-hour to build
jenga itself, and it's dependency tree is not very portable. The API is
very convoluted even for simple projects.

Look at https://github.com/samoht/assemblage/ certainly going to in the
right direction.






> --
> Peter Zotov
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 4118 bytes --]

  reply	other threads:[~2014-09-10 19:57 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10 12:49 Yotam Barnoy
2014-09-10 13:00 ` Simon Cruanes
2014-09-10 13:02 ` Adrien Nader
2014-09-10 13:05 ` David Sheets
2014-09-10 14:04   ` Thomas Braibant
2014-09-10 14:13     ` Adrien Nader
2014-09-10 13:18 ` Mark Shinwell
2014-09-10 13:29 ` Francois Berenger
2014-09-10 13:53   ` Jacques-Pascal Deplaix
2014-09-10 13:55     ` Francois Berenger
2014-09-10 14:17   ` Maxence Guesdon
2014-09-10 19:13     ` Drup
2014-09-10 22:56       ` Gerd Stolpmann
2014-09-13 12:01       ` rixed
2014-09-13 12:21         ` Drup
2014-09-13 12:37           ` rixed
2014-09-13 12:50             ` Adrien Nader
2014-09-13 13:05             ` Drup
2014-09-19 11:15       ` Matej Kosik
2014-09-10 14:23   ` Gerd Stolpmann
2014-09-10 15:17     ` Leonardo Laguna Ruiz
2014-09-10 18:59       ` Yotam Barnoy
2014-09-10 19:16         ` Peter Zotov
2014-09-10 19:56           ` Sebastien Mondet [this message]
2014-09-10 20:15             ` Gabriel Scherer
2014-09-10 23:20             ` Gerd Stolpmann
2014-09-10 20:13         ` Adrien Nader
2014-09-11  7:53         ` Francois Berenger
2014-09-11 10:37           ` Yaron Minsky
2014-09-12 14:08             ` Yotam Barnoy
2014-09-12 14:31               ` Francois Berenger
2014-09-12 14:36               ` Anil Madhavapeddy
2014-09-12 18:49                 ` Yaron Minsky
2014-09-12 15:10               ` SF Markus Elfring
2014-09-12 15:34               ` Adrien Nader
2014-09-12 18:50               ` Fabrice Le Fessant
2014-09-14 18:46               ` Richard W.M. Jones
2014-09-13 12:22         ` rixed
2014-09-15 13:34         ` Stéphane Glondu
2014-09-18 21:15           ` Yotam Barnoy
2014-09-18 21:21             ` Anil Madhavapeddy
2014-09-18 21:36               ` Yaron Minsky
2014-09-19 12:31                 ` Daniel Bünzli
2014-09-19 13:06                   ` Anil Madhavapeddy
2014-09-18 21:23             ` Yaron Minsky
2014-09-19  7:27               ` Gabriel Scherer
2014-09-19 15:03                 ` Yaron Minsky
2014-09-12 16:54 ` [Caml-list] Re : " r.3
2014-09-14 18:16 ` [Caml-list] " Richard W.M. Jones
2014-09-19  9:14 ` r.3

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='CALScVYmeFnrGGgv_-19xiZbbRs58Qw=-wm+OK4vyxosxhx7GZQ@mail.gmail.com' \
    --to=sebastien.mondet@gmail.com \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).