[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autocompilation/LilyPond
From: |
Ludovic Courtès |
Subject: |
Re: Autocompilation/LilyPond |
Date: |
Fri, 16 Mar 2012 12:12:24 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) |
Hi David,
David Kastrup <address@hidden> skribis:
> address@hidden (Ludovic Courtès) writes:
[...]
>> The order in which files get compiled does not matter; the semantics of
>> programs do not depend on whether code is being bytecode-interpreted or
>> just interpreted by (ice-9 eval).
>
> Little things like
>
> (define-public fancy-format
> format)
>
> (define-public (ergonomic-simple-format dest . rest)
> "Like ice-9's @code{format}, but without the memory consumption."
> (if (string? dest)
> (apply simple-format (cons #f (cons dest rest)))
> (apply simple-format (cons dest rest))))
>
> (define format
> ergonomic-simple-format)
>
> tend to make quite a difference depending on whether they are loaded or
> not before compiling.
>
> That one actually caused a lot of wasted effort on
> <URL:http://code.google.com/p/lilypond/issues/detail?id=1780>
The ticket is a bit too dense for me. What’s the operational difference
between compiling and evaluating the above code?
>> The only reason you might want to compile files in topological order
>> is performance.
>
> And macros. And redefinitions. And module hierarchy.
I think you’re talking about what should be *re*compiled when a module
has changed, right?
What I was mentioning above holds for one-shot compilation of a set of
modules, but you’re right that things are trickier when it comes to
incrementally changing part of that module set.
Thanks,
Ludo’.
- Re: Autocompilation/LilyPond, (continued)
- Re: Autocompilation/LilyPond, Mark H Weaver, 2012/03/05
- Re: Autocompilation/LilyPond, David Kastrup, 2012/03/07
- Re: Autocompilation/LilyPond, Mark H Weaver, 2012/03/09
- Re: Autocompilation/LilyPond, David Kastrup, 2012/03/09
- Re: Autocompilation/LilyPond, Mark H Weaver, 2012/03/09
- Re: Autocompilation/LilyPond, David Kastrup, 2012/03/09
- Re: Autocompilation/LilyPond, Ian Hulin, 2012/03/10
- Re: Autocompilation/LilyPond, David Kastrup, 2012/03/10
Re: Autocompilation/LilyPond, Ludovic Courtès, 2012/03/10