unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: r6rs standard libraries
Date: Mon, 25 Jan 2010 18:37:13 +0100	[thread overview]
Message-ID: <87aaw2jdbq.fsf@gnu.org> (raw)
In-Reply-To: m3ocki1bn9.fsf@pobox.com

Hello Guilers,

Andy Wingo <wingo@pobox.com> writes:

> On Sun 24 Jan 2010 18:53, Julian Graham <joolean@gmail.com> 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’.





  reply	other threads:[~2010-01-25 17:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-24 17:53 r6rs standard libraries Julian Graham
2010-01-25 14:50 ` Andy Wingo
2010-01-25 17:37   ` Ludovic Courtès [this message]
2010-01-25 21:41     ` Andy Wingo
2010-01-26 14:35       ` Ludovic Courtès
2010-01-26 19:35         ` Andy Wingo
2010-01-28 21:54           ` Neil Jerram
2010-01-29  3:04             ` Grant Rettke
2010-01-29  3:52   ` Julian Graham
2010-02-06 17:50     ` Julian Graham
2010-02-07 10:30       ` Andy Wingo
2010-02-08 16:02         ` Julian Graham
2010-02-15 20:33           ` Julian Graham
2010-02-24  5:47             ` Julian Graham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aaw2jdbq.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).