unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* SRFI 41 for Guile
@ 2011-12-06 19:37 Chris K. Jester-Young
  2011-12-14 14:28 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Chris K. Jester-Young @ 2011-12-06 19:37 UTC (permalink / raw)
  To: guile-devel

Hi all,

Just writing to say that after many months of being busy with other
stuff, I finally got around to finishing my Guile port of SRFI 41:

https://github.com/cky/guile2-modules

Basically, both the code and the tests are based on the reference
implementation, albeit with somewhat significant changes (as Andreas
Rottmann pointed out ;-)) to make better use of Guile's features:

+ The tests use Guile's (test-suite lib) test framework.

+ define*/lambda* is used for handling optional arguments, rather than
  manual argument unpacking. In the odd case of stream->list where the
  optional argument is the leftmost one, I used case-lambda instead.

+ Guile's SRFI 45 is used directly, rather than reimplemented as in the
  reference implementation.

+ stream-match and stream-unfolds are complete rewrites. stream-match
  uses (ice-9 match), and stream-unfolds uses (ice-9 q) to store the
  unread results.

+ stream-constant uses circular-list to hold the values of interest,
  rather than...whatever the reference implementation does with append
  (see for yourself, if you're curious ;-)).

The long and short is that whatever functionality is covered by an
existing Guile module or builtin feature, I tried to make the best use
of it. Still, I don't know every Guile module there is, so if I missed
something, please let me know!

Before anyone asks, though, I can't use (ice-9 streams)---it works on
a very different streaming model from SRFI 41, as explained in the
latter's introduction.

Comments are very welcome. :-)

Enjoy!
Chris.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-28  7:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 19:37 SRFI 41 for Guile Chris K. Jester-Young
2011-12-14 14:28 ` Ludovic Courtès
2011-12-16  6:45   ` Chris K. Jester-Young
2012-01-07  0:47     ` Andy Wingo
2012-01-28  7:00       ` Chris K. Jester-Young

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).