From: William Chesters <williamc@dai.ed.ac.uk>
To: caml-list@inria.fr
Subject: Re: ocaml: demand-driven compilation?
Date: Wed, 17 Sep 1997 17:52:59 +0100 [thread overview]
Message-ID: <11948.199709171652@jupiter> (raw)
In-Reply-To: <199709161536.IAA10793@kronstadt.rahul.net>
Ian T Zimmerman writes:
> Yes, it would definitely be possible to beef up ocamldep. The result
> would be a reimplementation of make in ocaml. Why reinvent the wheel?
> And why do you dislike makefiles anyways? They are the right tool for
> the job.
There are three things to know in building an executable: what modules
are needed; are they up to date; what commands are needed to
compile/link them?
`make' addresses the second (trivial) point and provides a framework
for going *some* way to help with the third. You have to bridge the
remaining gap yourself. In ocaml (as in Java) this means duplicating
information: the compiler has already used your sources to find out
what modules are needed. Furthermore the task of inferring what ocaml
and native libraries were needed for the link is easy for the
compiler, but a bit annoying for me.
That's why I dislike makefiles. make comes in at the wrong level, or
at least, at a level which was only ever right because C had no module
system worth the name.
next prev parent reply other threads:[~1997-09-22 6:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-13 17:52 William Chesters
1997-09-16 15:36 ` Ian T Zimmerman
1997-09-17 16:52 ` William Chesters [this message]
1997-09-22 14:38 ` Ian T Zimmerman
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=11948.199709171652@jupiter \
--to=williamc@dai.ed.ac.uk \
--cc=caml-list@inria.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