From: SF Markus Elfring <elfring@users.sourceforge.net>
To: David Allsopp <dra-news@metastack.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Development status of the dependency generator for OCaml
Date: Fri, 21 Jul 2017 17:50:17 +0200 [thread overview]
Message-ID: <3a62b0f1-0004-a6fb-8c53-8fe961aafa57@users.sourceforge.net> (raw)
In-Reply-To: <E51C5B015DBD1348A1D85763337FB6D9014D51E909@Remus.metastack.local>
>>> What are you regarding as erroneous about the entries with "only a
>>> dependency on a single compiled module interface"
>>> (for bytecode, that sounds correct to me).
>>
>> A software build system which can support the programming language “OCaml”
>> to some some degree will contain generation rules for involved file types
>> as you mentioned it also.
>
> I'm not clear how what you say relates to my question about
If you can tolerate that specific dependency specifications (like for
ML and MLI files) can be missing, …
> what you were finding erroneous.
… I find it questionable to repeat information for some CMO/CMX files
when the corresponding details should be expressed by software build
rules already.
> How is ocamldep supposed to know what you care and don't care about?
I assume that you care also for the safe building of OCaml software.
How many rules are you going to express in your build scripts by default for
this use case?
>>> foo.cmi:
>>> foo.cmo: foo.cmi
>>>
>>> should simply not be printed, and be assumed to work with implicit
>> rules?
>>
>> Yes. - In principle for the default data export variant.
>
> For the second example, the default is very clearly not going to change
> (since ocamldep already exists).
Can further feature requests adjust the discussed software situation a bit more?
* “ocamldep -all” does not express dependencies on MLI files.
https://caml.inria.fr/mantis/view.php?id=7593
* It seems that the main developers have got communication difficulties
with my style of clarification requests (or bug reports).
> Personally, I'd find it very irritating to have to remember to add %.cmo: %.cmi
> to my Makefiles
If you are using such make scripts, you have to specify make rules so that
the desired OCaml commands will be called.
> (I'd already be irritated, as it would imply I was not using jbuilder,
> but that's a separate story...)
Do you prefer to use more advanced software development environments?
>> I looked into a few OCaml build configurations where the desired
>> dependency handling seems to work better with explicit make rules and
>> corresponding automatic rule generation.
>
> What works better and in which configurations?
Would you like to look into published development approaches a bit more?
* https://github.com/elfring/ocamlbuild/blob/0ae41f82882ac28e4c6b375f1e2bfcf3425c7a80/GNUmakefile.am#L499
* https://github.com/elfring/Coccinelle-20160205/commit/8fe9e79f41668bc2e3bd7e682bec114dbee2854b
Regards,
Markus
next prev parent reply other threads:[~2017-07-21 15:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 19:21 SF Markus Elfring
2017-07-21 9:19 ` David Allsopp
2017-07-21 11:30 ` SF Markus Elfring
2017-07-21 13:01 ` David Allsopp
2017-07-21 15:50 ` SF Markus Elfring [this message]
2017-07-21 16:16 ` David Allsopp
2017-07-21 17:07 ` SF Markus Elfring
2017-07-25 18:13 ` [Caml-list] Addition of a data export variant containing only required extensions for build dependency specifications SF Markus Elfring
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=3a62b0f1-0004-a6fb-8c53-8fe961aafa57@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=caml-list@inria.fr \
--cc=dra-news@metastack.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).