From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Sebastien Mondet <sebastien.mondet@gmail.com>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] One build system to rule them all?
Date: Thu, 11 Sep 2014 01:20:36 +0200 [thread overview]
Message-ID: <1410391236.2619.34.camel@zotac> (raw)
In-Reply-To: <CALScVYmeFnrGGgv_-19xiZbbRs58Qw=-wm+OK4vyxosxhx7GZQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2724 bytes --]
Am Mittwoch, den 10.09.2014, 15:56 -0400 schrieb Sebastien Mondet:
>
> - 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).
omake has at least a working, powerful and quite clean model of
dependencies, and the build rules for the supported languages (like
OCaml) are read from OMakefiles and are not hard-coded. There was some
excellent analysis how to achieve this. I also think that the omake
language is a bit obscure as language. It's a dynamic functional
language that tries to do too much; you can run code as functions, as
statements, and as commands, and all these three forms use a slightly
different syntax (I guess that's why you complain about broken string
escaping - it is sometimes confusing which syntactical rules are
applicable at a certain point in the code). I'd love when this part
would be dropped, and I could develop all the helper functionality for a
build directly in OCaml, enhanced by syntax extensions for running shell
commands and for entering build rules into the dependency tree. E.g. you
could have:
let variable = ...
let do_something() = ...
<:make<
file_to_create: file_dep1 file_dep2
./build_tool.sh $(variable)
$(do_something())
>>
just to illustrate the idea of mixing several notations in the same
file. Every OMakefile could e.g. be understood as functor that takes an
environment with build rules and returns a new, extended environment.
Finally everything is combined and executed. (Too bad that I don't have
more time to work on something like this.)
Gerd
> - 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
>
>
>
>
>
--
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de
My OCaml site: http://www.camlcity.org
Contact details: http://www.camlcity.org/contact.html
Company homepage: http://www.gerd-stolpmann.de
------------------------------------------------------------
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-09-10 23:20 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
2014-09-10 20:15 ` Gabriel Scherer
2014-09-10 23:20 ` Gerd Stolpmann [this message]
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=1410391236.2619.34.camel@zotac \
--to=info@gerd-stolpmann.de \
--cc=caml-list@inria.fr \
--cc=sebastien.mondet@gmail.com \
/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