[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new-model.text, please comment
From: |
Rob Browning |
Subject: |
Re: new-model.text, please comment |
Date: |
Thu, 12 Sep 2002 18:28:30 -0500 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-pc-linux-gnu) |
Marius Vollmer <address@hidden> writes:
> I have written down my thoughts about an evaluation model that allows
> an optimizing ahead-of-time compiler. It's in CVS:
>
> guile/workbook/compilation/new-model.text
>
> Please have a look and comment on it.
I've read it through once, though I need to do so again, before
commenting much, but one part wasn't completely clear to me:
> The compiler is free to reuse top-level frames for several top-level
> forms, even when executing a form will change the name/module mapping
> used in the next. You must explicitely tell the compiler that it must
> construct a new top-level frame. You can do this with the
>
> (:module-barrier) XXX - need better name
>
> compiler directive. The directive guarantees that code prior to it is
> fully executed before top-level frames for forms after it are
> constructed. The directive must be a top-level form.
Could you provide a bit of elaboration here. More specifically, what
does "fully executed" mean? (I tend to start thinking of
"define-macro" when I hear that, though I guess any top-level form,
macro or not could be relevant.) For example, does the above mean
that given the following code:
(foo ...)
(do-something-that-changes-the-current-module!)
(bar ...)
the results would be undefined because the compiler is within its
rights to presume that do-something *doesn't* change the current
module unless a without a :module-barrier call like so:
(foo ...)
(do-something-that-changes-the-current-module!)
(:module-barrier)
(bar ...)
This seems to be implied by the later examples of use-modules, etc.,
but I just wanted to make sure I understood what you were stating.
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD