From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Julian Graham" Newsgroups: gmane.lisp.guile.user Subject: Re: r6rs libraries Date: Sun, 11 Jan 2009 18:21:31 -0500 Message-ID: <2bc5f8210901111521i1a5ec85em65ee20135cc55ebb@mail.gmail.com> References: <2bc5f8210812271705h3f57cb29w5bb83cb02abe971@mail.gmail.com> <2bc5f8210812282238p1f91f352id7eca5280dc9ff6a@mail.gmail.com> <2bc5f8210901012010g2ebb6effx5c966d0e26fe382b@mail.gmail.com> <8763kt48zi.fsf@gnu.org> 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: ger.gmane.org 1231716109 5580 80.91.229.12 (11 Jan 2009 23:21:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2009 23:21:49 +0000 (UTC) Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-user@gnu.org To: "Andy Wingo" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 12 00:22:59 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LM9dy-0006TD-N3 for guile-user@m.gmane.org; Mon, 12 Jan 2009 00:22:58 +0100 Original-Received: from localhost ([127.0.0.1]:46570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LM9ci-0007CI-EX for guile-user@m.gmane.org; Sun, 11 Jan 2009 18:21:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LM9cd-00079s-N1 for guile-user@gnu.org; Sun, 11 Jan 2009 18:21:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LM9cd-00078q-7O for guile-user@gnu.org; Sun, 11 Jan 2009 18:21:35 -0500 Original-Received: from [199.232.76.173] (port=43268 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LM9cc-00078b-TD for guile-user@gnu.org; Sun, 11 Jan 2009 18:21:34 -0500 Original-Received: from yw-out-1718.google.com ([74.125.46.152]:14062) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LM9cb-0008NA-HS; Sun, 11 Jan 2009 18:21:33 -0500 Original-Received: by yw-out-1718.google.com with SMTP id 9so3514920ywk.66 for ; Sun, 11 Jan 2009 15:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=XnP6Dz8louN6E23ndXh73chZ/48z76gFiqGxaaGQvS0=; b=fDUFUk0qmUtuPG4HrlfAxcA0tb+hllRg1m6W7EQrNEtkcP2NK8BwSVOwm1eAT00gUx NClXvzFhAabMiaXWzMSxEpijqRa9h9tx7Hicj3R/LQfboCjrjn7S3De8cOKrqiDAbMK4 hyRVd0zQuxyjufisPdvPchDCyPyYIwl8QoclM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a2EmKuc7uJcAPM7MABKygpJ+DXTlh3NBIcMK0MUMAS4i3P39aLlkfVbyR6f9gjkUFL RzQBGWQ5DBbhikKaieDq6AngWdMh9HvjD87TpPqa2EcZ5XrancPcHJBKhtD+BuCaTb1/ bOgyHrzSuvZzwLRVegoPizxXZM8C+xPIExgf0= Original-Received: by 10.151.148.2 with SMTP id a2mr9134299ybo.211.1231716091697; Sun, 11 Jan 2009 15:21:31 -0800 (PST) Original-Received: by 10.151.82.21 with HTTP; Sun, 11 Jan 2009 15:21:31 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7054 Archived-At: > Neither Dybvig & Ghuloum's nor van Tonder's library implementations do > multiple instantiation, AFAIK. PLT's is the only one that does. Sort of pursuant to this, I'm looking at Andr=E9 van Tonder's implementation with an eye towards modifying it to convert R6RS library definitions to Guile module definitions at load time. (I find his pitch [1] for his code over the Dybvig-Ghuloum implementation compelling -- plus the code is an order of magnitude smaller.) One small thing I noticed while playing around is that he uses `scheme-report-environment' for looking up certain R5RS functions, but that function isn't available in Guile outside of the REPL without doing `(use-modules (ice-9 r5rs))' first. This limitation has been acknowledged before [2]; any reason this module isn't loaded all the time? Regards, Julian [1] - http://lists.r6rs.org/pipermail/r6rs-discuss/2007-October/003387.html [2] - http://www.mail-archive.com/bug-guile@gnu.org/msg04366.html