From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: r6rs standard libraries Date: Mon, 25 Jan 2010 18:37:13 +0100 Message-ID: <87aaw2jdbq.fsf@gnu.org> References: <2bc5f8211001240953h4959cb2ar3540be3d464fdaa2@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1264441088 20370 80.91.229.12 (25 Jan 2010 17:38:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2010 17:38:08 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 25 18:38:00 2010 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.50) id 1NZSsr-00011W-MR for guile-devel@m.gmane.org; Mon, 25 Jan 2010 18:37:53 +0100 Original-Received: from localhost ([127.0.0.1]:46660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZSss-0003LG-UY for guile-devel@m.gmane.org; Mon, 25 Jan 2010 12:37:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZSsk-0003IG-GS for guile-devel@gnu.org; Mon, 25 Jan 2010 12:37:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZSse-000372-2f for guile-devel@gnu.org; Mon, 25 Jan 2010 12:37:44 -0500 Original-Received: from [199.232.76.173] (port=58972 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZSsd-00036t-Sp for guile-devel@gnu.org; Mon, 25 Jan 2010 12:37:39 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:53770) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZSsd-0004K6-E0 for guile-devel@gnu.org; Mon, 25 Jan 2010 12:37:39 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NZSsZ-0000uA-1G for guile-devel@gnu.org; Mon, 25 Jan 2010 18:37:35 +0100 Original-Received: from laptop-147-210-128-170.labri.fr ([147.210.128.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jan 2010 18:37:35 +0100 Original-Received: from ludo by laptop-147-210-128-170.labri.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jan 2010 18:37:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: laptop-147-210-128-170.labri.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?iso-8859-1?Q?Pluvi=F4se?= an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:JfmJSzV56m2mH3ElkJ8jWKZnUHo= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:9923 Archived-At: Hello Guilers, Andy Wingo writes: > On Sun 24 Jan 2010 18:53, Julian Graham writes: > >> As mentioned in an earlier email [0], I've been working on >> implementations for the libraries that make up the so-called R6RS >> Standard Libraries [1], along with test suites. Where possible, I've >> tried to wrap existing Guile functionality instead of writing things >> from scratch. Speaking optimistically, I think I'm about 80% of the >> way there (minus the test cases). There are quite a few files, so, to >> facilitate review, I've uploaded them to my web site [2]. There's >> also an updated copy of the `(ice-9 r6rs-libraries)' module there, >> which resolves a couple of issues present in the most recent version I >> submitted to the list. >> >> What do people think? > > Excellent hacking! +1 :-) >> One point that may be of interest is that I've chosen to provide the >> code in the form of R6RS libraries rather than Guile modules. My >> thinking is that the primary utility of most of these libraries lies >> in the cross-Scheme compatibility they provide, and thus they're not >> of particular interest to users writing code intended only for Guile. >> In cases where there's actual new functionality, such as with the >> bytevector features, a Guile module representation is probably more >> useful. > > Agreed. Though if ‘library’ expands to ‘define-module’, R6RS modules will also be readily usable as if they were “regular” guile modules, right? > I also think we should have `library' and `import' in the basic > environment. The global environment is already a crowded place, and having these forms globally may make it harder to maintain backward compatibility in the future, should R15RS have an incompatible ‘library’ form, for instance. How about having a special module and a command-line option, just like we have ‘--use-srfi’? Thanks, Ludo’.