From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: No Itisnt Newsgroups: gmane.lisp.guile.devel Subject: Re: Lua Date: Sun, 13 Jun 2010 16:03:47 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1276463137 13364 80.91.229.12 (13 Jun 2010 21:05:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Jun 2010 21:05:37 +0000 (UTC) Cc: wingo@pobox.com To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 13 23:05:35 2010 connect(): No such file or directory Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ONuN5-0006rA-DY for guile-devel@m.gmane.org; Sun, 13 Jun 2010 23:05:35 +0200 Original-Received: from localhost ([127.0.0.1]:45292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONuN4-0006aO-Nk for guile-devel@m.gmane.org; Sun, 13 Jun 2010 17:05:34 -0400 Original-Received: from [140.186.70.92] (port=59584 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONuMz-0006YI-RB for guile-devel@gnu.org; Sun, 13 Jun 2010 17:05:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONuMy-000810-LV for guile-devel@gnu.org; Sun, 13 Jun 2010 17:05:29 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:39034) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONuMy-00080w-Is for guile-devel@gnu.org; Sun, 13 Jun 2010 17:05:28 -0400 Original-Received: by vws5 with SMTP id 5so527111vws.0 for ; Sun, 13 Jun 2010 14:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=xlR3By8uOMAKkfzfmmITeS1B3U7tWFpI8g8tIvPiYY4=; b=azwTsviNLievQER++C3H+nr8kZpyWROOUiedN5t+R9/105TqTpas7+PEos66kYqvCX /++RbFAmfB8rV+6zYGil5sgHPVTfM1yPXY0dnEZEgMKwCBkZDctFihlfYZsU21rgt8VS 1lAuhFIWtihC9CLtwMsWF41StDMRyckPUEu0E= 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; b=kyxwDC5vFoQX24xT4livWisY9Rn0k+eHeJFOvXmbqzzDyfjROnd5W5COIIIb7NJ2gU kxvBp1MWCSUFSL7BFYcaAYCwZlmyRathxvOPHAEWcgLDMGaqUP5V8c4kI4oktR9zIIGj WOgtAE0Aaff6c6o/hIyMedFw1jKq5Jw6VhgZ0= Original-Received: by 10.224.93.2 with SMTP id t2mr1735610qam.47.1276463027309; Sun, 13 Jun 2010 14:03:47 -0700 (PDT) Original-Received: by 10.229.224.67 with HTTP; Sun, 13 Jun 2010 14:03:47 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10469 Archived-At: Hey, now would be a great time for a critique of my Lua project if you are willing, so I can incorporate any criticisms or ideas you may have before the GSOC midterm date. I'm closing in on finishing the base language and I hope to complete it this week if time permits. - I am using #nil for Lua's nil right now. Lua considers nil false for the purpose of conditionals and it's also the value of unset variables or table slots. Maybe it should be replaced with a gensym? I didn't follow the Emacs nil thing very closely so I'm not sure whether that approach might be problematic. - Lua represents numbers as the C 'double' type by default -- what's the best way to approximate that in Guile? - How should I implement multiple return values? Lua allows multiple variables to be assigned in a single statement, e.g. "a,b = c()", but it's also permissive in that an assignment need not be balanced -- there can be extra variables on the left or expressions on the right. So I think I need to be able to inspect the return value of function calls somewhat at runtime. I was hoping for something elegant but perhaps I will just return vectors and inspect the return values of functions at runtime. Thanks.