From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: peval update
Date: Wed, 04 Jan 2012 15:50:03 -0500 [thread overview]
Message-ID: <87y5tnnqf8.fsf@pobox.com> (raw)
In-Reply-To: <87pqig4f0x.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sat, 01 Oct 2011 22:45:34 +0200")
Hi Ludo :)
On Sat 01 Oct 2011 16:45, ludo@gnu.org (Ludovic Courtès) writes:
> (As you can see I’m lagging behind and notice guile-commits before
> guile-devel. :-))
As you can see I'm lagging behind 2012 and am answering mails from 2011
:)
> It also removes the main reason for not having peval inline module-local
> top-level bindings (the previous approach was way too aggressive.) Have
> you thought about it?
Yes. Of course we would need some guarantees about binding mutability:
if N toplevel definitions are compiled together in one module, and M of
those bindings are never set!, then those M definitions should be fair
game for inlining.
We would also need some more visibility regarding modules. For example,
in the following code:
(define x 10)
(foo!)
(define y x)
We don't know that the toplevel-ref of `x' in the definition of `y'
refers to the `x' defined above, because `(foo!)' could have changed the
current module. The syntax expander knows these things, but not all of
that knowledge is residualized in the tree-il.
Perhaps we need to add fields to toplevel-{ref,define,set!} for the
module that was current at expansion time. Perhaps this could lead to
coalescing toplevel-{ref,define,set!} and module-{ref,set!} into one
triumvarate of toplevel binding tree-il forms.
Andy
--
http://wingolog.org/
prev parent reply other threads:[~2012-01-04 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-28 18:03 peval update Andy Wingo
2011-10-01 20:45 ` Ludovic Courtès
2012-01-04 20:50 ` Andy Wingo [this message]
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5tnnqf8.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).