From: Ian Price <ianprice90@googlemail.com>
To: tantalum@gmx.net
Cc: guile-user@gnu.org
Subject: Re: I/O, modules
Date: Tue, 13 Nov 2012 23:03:25 +0000 [thread overview]
Message-ID: <87haott8aq.fsf@googlemail.com> (raw)
In-Reply-To: <20121113114549.279070@gmx.net> (tantalum@gmx.net's message of "Tue, 13 Nov 2012 12:45:49 +0100")
tantalum@gmx.net writes:
> The (ice-9 streams) module could be interesting, too.
> http://www.gnu.org/software/guile/manual/html_node/Streams.html
When it gets merged into master/stable-2.0, I'd suggest using (srfi
srfi-41) rather than (ice-9 streams). It cures the off-by-1 problems
that frequently occur with "odd" streams.
Another approach to stream based IO is called "iteratees", as proposed
by Oleg Kiselyov.[0] I had started working on an implementation[1], but
it quite incomplete at the moment. Maybe one day...
0. http://okmij.org/ftp/Streams.html
1. https://github.com/ijp/iteratees/blob/master/iteratees.sls
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
next prev parent reply other threads:[~2012-11-13 23:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 11:45 I/O, modules tantalum
2012-11-13 23:03 ` Ian Price [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-13 5:57 thorsopia
2012-11-13 9:31 ` Ludovic Courtès
2012-11-13 9:53 ` Thien-Thi Nguyen
2012-11-13 14:31 ` Mark H Weaver
2012-11-13 14:50 ` Mike Gran
2012-11-13 22:29 ` Ian Price
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=87haott8aq.fsf@googlemail.com \
--to=ianprice90@googlemail.com \
--cc=guile-user@gnu.org \
--cc=tantalum@gmx.net \
/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).