From: Andy Wingo <wingo@pobox.com>
To: Julian Graham <joolean@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: r6rs standard libraries
Date: Mon, 25 Jan 2010 15:50:50 +0100 [thread overview]
Message-ID: <m3ocki1bn9.fsf@pobox.com> (raw)
In-Reply-To: <2bc5f8211001240953h4959cb2ar3540be3d464fdaa2@mail.gmail.com> (Julian Graham's message of "Sun, 24 Jan 2010 12:53:10 -0500")
Hi,
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! I think this is fantastic. I want to get on
http://www.ccs.neu.edu/home/will/Larceny/benchmarksGenuineR6Linux.html.
I did some tests with Clinger's R5RS benchmarks, showing pretty good
performance for Guile, but I think he's only really working on the R6RS
ones now. I would like to smoke a couple of other Schemes ;-)
> 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.
Personally I'm ready to merge this code whenever you want, as long as it
has tests. A section in the manual about what we implement of R6RS and
what the differences are would be useful as well.
I also think we should have `library' and `import' in the basic
environment. In order to do this I would like for them in boot-9.scm,
not in a separate module, and implemented in terms of syntax-case.
Implementing `library' in terms of syntax-case will allow `library' to
expand out to (begin (define-module (foo) #:pure) (import a ...) ...),
which allows imports to be processed only in the `import' macro. The
`import' macro will be resolved in `(guile)' even though the module is
pure, due to hygiene. No toplevel-defined helper functions will be
necessary.
Does this sound sensible to you?
If so, can you make a git branch that (1) adds `library' and `import' to
boot-9, then adds the other modules, one-by-one with tests? I've got my
finger on the merge trigger :)
Cheers,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2010-01-25 14:50 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 [this message]
2010-01-25 17:37 ` Ludovic Courtès
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=m3ocki1bn9.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=joolean@gmail.com \
/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).