caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Romain Bardou <romain.bardou@inria.fr>
To: Gabriel Kerneis <gabriel@kerneis.info>
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>,
	 caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild documentation (was: OCaml release 4.01.0)
Date: Thu, 12 Sep 2013 19:14:50 +0200	[thread overview]
Message-ID: <5231F68A.2000707@inria.fr> (raw)
In-Reply-To: <20130912154112.GA28924@kerneis.info>

Le 12/09/2013 17:41, Gabriel Kerneis a écrit :
> Hi Gabriel,
> 
> On Thu, Sep 12, 2013 at 05:25:30PM +0200, Gabriel Scherer wrote:
>> Note that the "ocamlbuild API" is mostly meant for rather advanced users
>> (which should be comfortable reading a .mli file in their favorite text
>> editor).
> 
> I disagree with that. I enjoy much more browsing ocamldoc's output than an mli
> file, mostly because of hyperlinks, and I'm not always developping on computers
> where I can, or wish to, rebuild it.
> 
> Moreover, if ocamlbuild is part of the standard ocaml distribution, I don't
> understand why its API is not hosted on http://caml.inria.fr/. What would it
> take it to dump to http://caml.inria.fr/pub/docs/manual-ocamlbuild/libref/ [*]
> just like http://caml.inria.fr/pub/docs/manual-ocaml/libref/ contains stdlib's
> API?
> 
> [*] or maybe http://caml.inria.fr/pub/docs/manual-ocaml/ocamlbuildref/ 

I agree, this is why I asked :)

>>   https://github.com/gasche/manual-ocamlbuild
>>
>> (I had planned to give myself more time to improve this documentation
>> draft, before making a call to contributions on the list, but your message
>> prompted an earlier response. Thanks for your interest.)
> 
> Thank you some much for your effort. I think it deserves its own email on this
> list (maybe in a few weeks) to gather more attention and feedback.

Indeed, this is a lot of effort and I hope you go to the end of the project.

It would be good to really understand what is wrong with the current
documentation before starting a new one, though.

One thing I can comment on is the "tags" section. Consider the same
phrasing for tag descriptions as the Wiki ("This produced file…", "This
source file…", see the List of tags section in the Tags page of the
Wiki). It took me some time to come up with this when I wrote the
documentation and I think it turned out rather well, but still, it could
be more precise.

Well, the phrasing is not actually important but the difficulty is that
tags can basically mean anything and be taken from anywhere. It makes it
very hard to understand how they work. In order to be certain of their
effect you not only need to know what they trigger (such as a flag), but
also from which files they are taken (target of the rule? dependency of
the rule?) and where in the command their corresponding "hole" is inserted.

Using -documentation could be interesting but it is still insufficient
as it does not show some crucial details, such as where flags are added
(at the beginning? at the end? some other complex rule?).

Well that's just food for thoughts.

-- 
Romain Bardou

      reply	other threads:[~2013-09-12 17:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12 15:25 Gabriel Scherer
2013-09-12 15:41 ` Gabriel Kerneis
2013-09-12 17:14   ` Romain Bardou [this message]

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=5231F68A.2000707@inria.fr \
    --to=romain.bardou@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    --cc=gabriel@kerneis.info \
    /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).