From: "Luigi Semenzato" <luigi@semenzato.com>
To: "Stephen Compall" <s11@member.fsf.org>
Cc: guile-user@gnu.org
Subject: Re: read-string!/partial on non-file ports
Date: Mon, 10 Sep 2007 13:35:29 -0700 [thread overview]
Message-ID: <c6bf18db0709101335j5f8f554eh5455c94854a04855@mail.gmail.com> (raw)
In-Reply-To: <1189453892.9842.2.camel@nocandy.dyndns.org>
On 9/10/07, Stephen Compall <s11@member.fsf.org> wrote:
> On Mon, 2007-09-10 at 12:25 -0700, Luigi Semenzato wrote:
> > I would like to move binary data between two guile
> > applications across a pipe (opened with open-input-output-pipe).
> > Read-char and write-char in a loop are going to be too slow.
> > Read-string!/partial and write-string/partial are exactly what
> > I need but they only work on file ports. (I get this error:
> > Wrong type argument in position 2 (expecting open file port):
> > #<input-output: soft 56f1d0>).
> >
> > 1. Do I have other choices? I cannot find any.
>
> How about display?
>
> -- Scheme Procedure: display obj [port]
> Send a representation of OBJ to PORT or to the current output port
> if not given.
>
> The output is designed for human readability, it differs from
> `write' in that strings are printed without doublequotes and
> escapes, and characters are printed as per `write-char', not in
> `#\' form.
That's cool for writing, thanks. But what about reading?
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2007-09-10 20:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 19:25 read-string!/partial on non-file ports Luigi Semenzato
2007-09-10 19:51 ` Stephen Compall
2007-09-10 20:35 ` Luigi Semenzato [this message]
2007-09-11 7:18 ` Thien-Thi Nguyen
2007-09-10 20:42 ` Mike Gran
2007-09-10 23:49 ` Kevin Ryde
2007-09-10 23:19 ` Ludovic Courtès
2007-09-11 5:00 ` Luigi Semenzato
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=c6bf18db0709101335j5f8f554eh5455c94854a04855@mail.gmail.com \
--to=luigi@semenzato.com \
--cc=guile-user@gnu.org \
--cc=s11@member.fsf.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).