Re: One last chapter to review! Last chance! One-day only!
From: Marcin 'Qrczak' Kowalczyk (qrczak_at_knm.org.pl)
Date: 03/17/05
- Next message: Gareth McCaughan: "Re: The library metric"
- Previous message: Matthias: "Re: Lisp fragmentation (was Re: Python becoming less Lisp-like)"
- In reply to: Joerg Hoehle: "Re: One last chapter to review! Last chance! One-day only!"
- Next in thread: Frode Vatvedt Fjeld: "Re: One last chapter to review! Last chance! One-day only!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 17 Mar 2005 22:37:56 +0100
Joerg Hoehle <hoehle@users.sourceforge.net> writes:
> But that'S the curse of any defsystem/Makefile
> How could you escape it?
>
> How can you tell to the system
>
> a) "listen, I've made this change to the file, but be assured that
> it's only a local change, you need not recompile all and
> everything"?
> b) "ok, recompile stuff in this component, but it's internal only so
> there's no need to recompile other entities"
> c) "well recompile and reload really all dependents"
It can be solved by a Lisp compiler: it should produce an "interface"
file which includes the information derived from a module which
influences the compilation of other modules which depend on it. Other
modules don't load a module directly but read its interface file.
The compiler should ensure that the file is not physically rewritten
if its contents don't change after recompilation.
Some compilers of other languages do a similar thing, e.g. Glasgow
Haskell Compiler. And in C and C++ people write the interface files by
hand.
This doesn't distingiush your b) from c), but it I think it's good
enough in practice.
The only caveat with marrying it with 'make' is that after some
changes 'make' might keep trivially "recompiling" a module (executing
a null command). This adds a minimal overhead, and prevents a message
that nothing had to be remade.
--
__("< Marcin Kowalczyk
\__/ qrczak@knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
- Next message: Gareth McCaughan: "Re: The library metric"
- Previous message: Matthias: "Re: Lisp fragmentation (was Re: Python becoming less Lisp-like)"
- In reply to: Joerg Hoehle: "Re: One last chapter to review! Last chance! One-day only!"
- Next in thread: Frode Vatvedt Fjeld: "Re: One last chapter to review! Last chance! One-day only!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|