From: Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
To: Yotam Barnoy <yotambarnoy@gmail.com>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Recent hooks design and general github PR issues
Date: Tue, 19 Jul 2016 17:28:54 +0000 [thread overview]
Message-ID: <CAHvkLrMNL4VY2VW=6He2zGXXgpNbvHsB20c3OtmzKY3B+hzsFQ@mail.gmail.com> (raw)
In-Reply-To: <CAN6ygOkv6u7PiCxw-mO+D5B7v7wL6jV=Z1QCcZaG9XDktJYR_g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2404 bytes --]
On Tue, Jul 19, 2016 at 6:24 PM Yotam Barnoy <yotambarnoy@gmail.com> wrote:
> See the comments at the bottom of
> https://github.com/ocaml/ocaml/pull/668 by avsm and gasche
I replied to Gabriel, who was asking for a different API, that could be
done, but is not my intent (OCamlPro needs what I implemented, not what he
was discussing, so if somebody else wants to contribute the complementary
approach, he is welcome), and Anil just said he didn't see the benefit of
the interception hooks, which is (1) only one part of the PR (cplugins can
be used to do other things, such as have a more portable version of
OCamlPro's Memory Profiler) and (2) there are several examples on
github.com/OCamlPro/ocp-cplugins that show that the restriction to the
stdlib provides already interesting use cases.
> See also Shinwell's concerns at the bottom of
> https://github.com/ocaml/ocaml/pull/647
Mark was commenting on the maintainability of ppx at Jane Street, not about
the maintainability of the ppx code inside the compiler. The discussion was
diverging from the actual subject of the PR at that point.
> . And note that since they are on separate PRs, they most likely did not
> see each others' comments, which is a problem.
>
I don't understand that part: there is no link between the two PRs, one is
about plugins in the runtime, the other one about plugins in the compiler,
which have completely different use cases and cost/benefits.
> In general, I think the process has to be refined. As this is all part
> of one feature, that feature should be discussed first before any
> merging begins. And merging should not be done by the person
> suggesting the feature.
I think it is quite common in the core team, especially before a code
freeze. Check all the closed/merged PRs with the black tag "Spacetime
prerequisite" for an easy example. The current process is to have at least
one code review by another core developer and no strong objection by
another core developer. I think it is a good trade-off between fast
evolution while keeping good code quality.
Finally, about the maintainability, I think having plugins both in the
runtime and the compiler will help externalizing some code from the
distribution, thus decreasing the maintenance cost of the distribution,
while allowing external contributors to extend the runtime and compiler
through OPAM packages.
Best regards,
--Fabrice
[-- Attachment #2: Type: text/html, Size: 3519 bytes --]
next prev parent reply other threads:[~2016-07-19 17:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-19 15:08 Yotam Barnoy
2016-07-19 15:36 ` Fabrice Le Fessant
2016-07-19 16:23 ` Yotam Barnoy
2016-07-19 17:28 ` Fabrice Le Fessant [this message]
2016-07-19 20:21 ` Alain Frisch
2016-07-21 12:09 ` Goswin von Brederlow
2016-07-21 12:38 ` Fabrice Le Fessant
2016-07-21 13:37 ` Hendrik Boom
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='CAHvkLrMNL4VY2VW=6He2zGXXgpNbvHsB20c3OtmzKY3B+hzsFQ@mail.gmail.com' \
--to=fabrice.le_fessant@inria.fr \
--cc=caml-list@inria.fr \
--cc=yotambarnoy@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;
as well as URLs for NNTP newsgroup(s).