From: ccsdhd@bath.ac.uk (Dennis Davis)
To: 9fans@cse.psu.edu
Subject: [9fans] Re: Inferno, filter.m
Date: Mon, 18 Feb 2002 13:48:37 +0000 [thread overview]
Message-ID: <1014038394.18195.0.nnrp-14.d4f0e306@news.demon.co.uk> (raw)
bengt wrote:
> is it a good idea to follow the filter module interface when writing data
> processing modules?
>
> i ask since neither dd, gettar, lstar, puttar, uuencode, uudecode etc seems to
> do this.
the filter interface was an just an idea as to how one might structure
the API to a filter-like program without using pipes (which are
somewhat awkward to use when you're writing and reading from the same
program at the same time).
for compression, for example, it provides a reasonably lightweight way
to have several independent compressing streams without loading and
initialising a separate module for each.
the thread-based nature of the interface means that the filter can be
written in a natural (non-callback) style, and the channel-based
interface means that a few data copies are avoided.
in the end, i don't really know whether it was worth it, but if you
are considering writing a data-filter interface that you'd like to be
easily usable from Limbo code, you might consider it. if not, it's
probably easier just to use a conventional stdin->stdout interface
using Bufio.
cheers,
rog.
next reply other threads:[~2002-02-18 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-18 13:48 Dennis Davis [this message]
2002-02-18 14:31 ` Dennis Davis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1014038394.18195.0.nnrp-14.d4f0e306@news.demon.co.uk \
--to=ccsdhd@bath.ac.uk \
--cc=9fans@cse.psu.edu \
/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 NNTP newsgroup(s).