From: Andy Wingo <wingo@pobox.com>
To: Phil <theseaisinhere@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Creating a Lua roadmap
Date: Thu, 21 Apr 2011 14:16:08 +0200 [thread overview]
Message-ID: <m3k4eng5pz.fsf@unquote.localdomain> (raw)
In-Reply-To: <BANLkTi=kGj8w0wQytr5Ds-4C_4cOoCFktw@mail.gmail.com> (Phil's message of "Tue, 19 Apr 2011 16:11:27 -0500")
On Tue 19 Apr 2011 23:11, Phil <theseaisinhere@gmail.com> writes:
> I have recently checked out the Lua branch. I want to make it seaworthy.
Cool! It does indeed need some more loving :-)
> I've requested to be added back onto the Savannah group, can someone
> do that? TIA.
Sure; saw your mail before reading this, so please disregard that
confirmation message.
> git co -b lua origin/lua
> git co -b stable-2.0 origin/stable-2.0
> git branch lua
> git rebase stable-2.0
>
> Is that right?
Yes, except perhaps "git checkout lua" instead of "git branch lua", no?
> TODO:
>
> - Missing standard library functions: math.modf, table.sort, module
I think Mark's recent division work should help with modf. I don't
recall what's needed for the rest.
> - Missing getfenv/setfenv. You can tell Lua to look up global
> variables in different environments.
> Frankly this is going to be really annoying to implement and I'd
> rather leave it off until someone complains about it being missing, if
> that's cool.
OK.
> - Variable arguments, multiple returns.
This is the big one.
> FIXME:
>
> - Use prompt and abort instead of throw and catch.
Yes this will be good too.
> - And/or expressions evaluate expressions multiple times.
Whoops!
> - The keyword "break" does not work correctly.
Yes; to fix.
> Andy, I think you wrote "FIXME: use module binders instead" in
> compile-tree-il.scm, what does that mean?
For global refs, the current code does a lookup every time a function is
called, where instead it should allow the variable to be cached the
first time it is looked up. The way to hook into the process of caching
a variable for lookup is module binders. They aren't documented
though. Search for "binder" in ice-9/boot-9.scm and in modules.c.
Cheers,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-04-21 12:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 21:11 Creating a Lua roadmap Phil
2011-04-21 12:16 ` Andy Wingo [this message]
2011-04-22 19:48 ` Phil
2011-04-23 12:01 ` Andy Wingo
2011-04-23 19:58 ` Ludovic Courtès
2011-04-21 20:09 ` Mark H Weaver
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=m3k4eng5pz.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=theseaisinhere@gmail.com \
/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).