From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Luigi Semenzato" Newsgroups: gmane.lisp.guile.user Subject: Re: read-string!/partial on non-file ports Date: Mon, 10 Sep 2007 13:35:29 -0700 Message-ID: References: <1189453892.9842.2.camel@nocandy.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189460708 15076 80.91.229.12 (10 Sep 2007 21:45:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 21:45:08 +0000 (UTC) Cc: guile-user@gnu.org To: "Stephen Compall" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 11 07:44:55 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUxTE-0001Gh-B6 for guile-user@m.gmane.org; Tue, 11 Sep 2007 06:35:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUpyr-0005EB-DJ for guile-user@m.gmane.org; Mon, 10 Sep 2007 16:35:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUpyn-0005DT-7U for guile-user@gnu.org; Mon, 10 Sep 2007 16:35:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUpym-0005DD-2F for guile-user@gnu.org; Mon, 10 Sep 2007 16:35:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUpyl-0005DA-VG for guile-user@gnu.org; Mon, 10 Sep 2007 16:35:31 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUpyl-0005Ai-Da for guile-user@gnu.org; Mon, 10 Sep 2007 16:35:31 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so1055359rvf for ; Mon, 10 Sep 2007 13:35:30 -0700 (PDT) Original-Received: by 10.140.165.21 with SMTP id n21mr498642rve.1189456529893; Mon, 10 Sep 2007 13:35:29 -0700 (PDT) Original-Received: by 10.141.151.10 with HTTP; Mon, 10 Sep 2007 13:35:29 -0700 (PDT) In-Reply-To: <1189453892.9842.2.camel@nocandy.dyndns.org> Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6133 Archived-At: On 9/10/07, Stephen Compall 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): > > #). > > > > 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