caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anil Madhavapeddy <anil@recoil.org>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: "François Bobot" <francois.bobot@cea.fr>, caml-list@inria.fr
Subject: Re: [Caml-list] META file standards for ppx extensions
Date: Sun, 12 Apr 2015 14:00:24 +0800	[thread overview]
Message-ID: <76269C2C-C277-4482-830D-719D006AE185@recoil.org> (raw)
In-Reply-To: <6C2BFE0C79F1491BAEB633BE70A6CE4D@erratique.ch>

On 10 Apr 2015, at 17:42, Daniel Bünzli <daniel.buenzli@erratique.ch> wrote:
> 
> In general it's better if the base compilation tools do not try to do too much/output many files in one go so that build systems can 1) trivially infer their outputs 2) reasonably rely on fs modification times to equate them with concrete content modification 3) be really in charge of composing the build pipeline.  
> 
> It's all about having a *composable* toolchain vs. inflexible monolithic black boxes.  

From a longer term perspective, the disentangling of preprocessing from compilation also makes it easier to do multi-stage preprocessing -- for instance, to perform type-driven I/O generation separately from an Lwt extension. The former affects dependency calculation, and the latter doesn't and is usually quite a local transformation within a module.  Why should they be clumped together in the build system just because they happen to use the same ppx/camlp4 mechanism?

Those examples aren't multistage yet, but the lines between MetaCaml, Camlp4, and (a hypothetical) OCaml macro system are pretty blurred.  OCaml is one of the few languages with a really good story for a statically typed processing pipeline, and it would be a great pity if build systems become the blocker for experimenting with them easily...

-Anil

  parent reply	other threads:[~2015-04-12  6:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 18:20 Dario Teixeira
2015-04-08 18:59 ` Drup
2015-04-08 19:59   ` Dario Teixeira
2015-04-08 20:37     ` Daniel Bünzli
2015-04-09 10:07       ` Dario Teixeira
2015-04-09 10:56     ` Gerd Stolpmann
2015-04-09 12:24       ` Dario Teixeira
2015-04-09 15:33         ` Daniel Bünzli
2015-04-09 16:45           ` Gerd Stolpmann
2015-04-09 17:27             ` Daniel Bünzli
2015-04-09 18:05               ` Daniel Bünzli
2015-04-09 22:26                 ` Gerd Stolpmann
2015-04-09 22:21               ` Gerd Stolpmann
2015-04-09 23:06                 ` Daniel Bünzli
2015-04-10  8:53                   ` François Bobot
2015-04-10  9:42                     ` Daniel Bünzli
2015-04-10 10:09                       ` Alain Frisch
2015-04-10 11:45                         ` Thomas Gazagnaire
2015-04-10 11:04                       ` François Bobot
2015-04-10 11:55                         ` Daniel Bünzli
2015-04-10 16:33                           ` François Bobot
2015-04-10 17:43                             ` Daniel Bünzli
2015-04-12  6:00                       ` Anil Madhavapeddy [this message]
2015-04-10 11:25                   ` Gerd Stolpmann
2015-04-10 11:55                     ` Daniel Bünzli
2015-04-09 15:45         ` Thomas Gazagnaire
2015-04-09 16:28           ` Dario Teixeira
2015-04-09 16:51             ` Gerd Stolpmann
2015-04-10 12:23         ` Daniel Bünzli
2015-04-10 14:55           ` Gerd Stolpmann

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=76269C2C-C277-4482-830D-719D006AE185@recoil.org \
    --to=anil@recoil.org \
    --cc=caml-list@inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    --cc=francois.bobot@cea.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).