From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Newsgroups: gmane.lisp.guile.devel Subject: Re: Creating a Lua roadmap Date: Fri, 22 Apr 2011 14:48:08 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303501703 20083 80.91.229.12 (22 Apr 2011 19:48:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2011 19:48:23 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 22 21:48:17 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QDMKv-0008Fc-GM for guile-devel@m.gmane.org; Fri, 22 Apr 2011 21:48:17 +0200 Original-Received: from localhost ([::1]:39228 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDMKu-0002RI-Pt for guile-devel@m.gmane.org; Fri, 22 Apr 2011 15:48:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDMKs-0002RB-La for guile-devel@gnu.org; Fri, 22 Apr 2011 15:48:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDMKn-0002vj-Mk for guile-devel@gnu.org; Fri, 22 Apr 2011 15:48:14 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:33608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDMKn-0002vM-Ki for guile-devel@gnu.org; Fri, 22 Apr 2011 15:48:09 -0400 Original-Received: by qyk2 with SMTP id 2so570214qyk.0 for ; Fri, 22 Apr 2011 12:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LHyNEhSO33ogoxYyLSOHNeg6V4Z0PuTr7wjcDPtfTjU=; b=eFHHlIUlreBm6S8sd9pZBaChZoy7Q9ENbisKMiwnYnXNlbp3ARsoWkY+8SRR3zXRi0 paW6zBK8C881Jg25aaMdau0/vammiveYIJLWv8YXHX/eced39865UX5Ei9ocfVLspyh6 xRDuM7LahoLMY6ZT3tzv3OTxALmv8inWe68jk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mOjrdxPC0jH3AFELyHtCaIQr841DPRKIvxowpaSV+dQwwvB2WWTMxX0Byqjry238c+ jXnu49H0k7Yn6WqNHtosz9UCvGIElx/hYzVUUtwI8w4rowIdck4Npmg76XF7pwUGSp4T qwPc4ANBoVGqUpH2c2qiE8geouE5JZMeywrP4= Original-Received: by 10.229.26.131 with SMTP id e3mr1016496qcc.254.1303501688951; Fri, 22 Apr 2011 12:48:08 -0700 (PDT) Original-Received: by 10.229.221.9 with HTTP; Fri, 22 Apr 2011 12:48:08 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12314 Archived-At: On Thu, Apr 21, 2011 at 7:16 AM, Andy Wingo wrote: > On Tue 19 Apr 2011 23:11, Phil writes: > >> I have recently checked out the Lua branch. I want to make it seaworthy. > > Cool! =A0It 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. =A0I don't > recall what's needed for the rest. > >> - Missing getfenv/setfenv. You can tell Lua to look up global >> variables in different environments. >> =A0 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. =A0The way to hook into the process of cachin= g > a variable for lookup is module binders. =A0They aren't documented > though. =A0Search for "binder" in ice-9/boot-9.scm and in modules.c. > > Cheers, > > Andy > -- > http://wingolog.org/ Alright, cool. Just to be clear the end goal is to include this in Guile eventually, right?