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: Mon, 14 Jun 2010 21:51:17 -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 1276570292 24412 80.91.229.12 (15 Jun 2010 02:51:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Jun 2010 02:51:32 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jun 15 04:51:30 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 1OOMFM-0003fy-Jo for guile-devel@m.gmane.org; Tue, 15 Jun 2010 04:51:28 +0200 Original-Received: from localhost ([127.0.0.1]:34832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOMFL-00060z-Vh for guile-devel@m.gmane.org; Mon, 14 Jun 2010 22:51:28 -0400 Original-Received: from [140.186.70.92] (port=51805 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOMFD-00060k-St for guile-devel@gnu.org; Mon, 14 Jun 2010 22:51:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOMFC-0007PX-Ko for guile-devel@gnu.org; Mon, 14 Jun 2010 22:51:19 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:64594) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOMFC-0007PR-Ic for guile-devel@gnu.org; Mon, 14 Jun 2010 22:51:18 -0400 Original-Received: by gwaa18 with SMTP id a18so2857665gwa.0 for ; Mon, 14 Jun 2010 19:51:18 -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=CzQNha8U2c/zq0Z4U1aOH9o7QFQwdrXH7JF4CrAN0Fw=; b=s5mIohw6uwjtwUt4od6dnjkB6Pyt9gKMIzAhQqojLR8WwZi+Cfr2v6xlOTRoNubY2l nXYwzym2eReEF3Bjho4nMdrHbDkkwtegHbADQPvw7zbLLtCF7p7TErhVHPKsLRFZcs2f 6h0OI2iw1ap4fKg+tb1wNV0p5tBfLz9SsrEjs= 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=V3lcoCoUjVb3lj087dp/SgDtOzShAzvluA3GLvb4QPV4+HMPSGlxGjH624FhTh0nXp D/gCcC+Fbdz3EHhwUjbHOnkQlgvryHVg8vTbVYN4JJtyf13xAFyVdGBuNd1ErLnx6OAL gysAecDf2/c4JCXypwqS6RrEo1ph2Lfbz/qjE= Original-Received: by 10.229.227.133 with SMTP id ja5mr2862767qcb.174.1276570277892; Mon, 14 Jun 2010 19:51:17 -0700 (PDT) Original-Received: by 10.229.224.67 with HTTP; Mon, 14 Jun 2010 19:51:17 -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:10480 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. > > Great news. I haven't had time to really dive in, but hope to do so > towards the end of the week. Great! Please excuse the mess. The parser is awful, awful, awful and will probably be the first thing to go. Maybe it will get replaced with a PEG later on :) But it works for now. >> - 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. > > It could be OK. #f would also be fine. Does this value have any other > kinds of semantics? You will want to use an immediate like #f or nil or > something, going through a symbol will be too slow. It has to be distinct from false. I'll just stick with #nil and hopefully nothing will go wrong >> - Lua represents numbers as the C 'double' type by default -- what's >> the best way to approximate that in Guile? > > Hmm. Here I think we should use Guile's numbers by default. That way you > get the speed of inums in most normal cases. You should probably coerce > division into inexact numbers (i.e. 3 / 4 translating to the equivalent > of (exact->inexact (/ 3 4))). Sounds good Thanks