From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Compall Newsgroups: gmane.lisp.guile.user Subject: Re: read-string!/partial on non-file ports Date: Mon, 10 Sep 2007 14:51:32 -0500 Message-ID: <1189453892.9842.2.camel@nocandy.dyndns.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1836375052==" X-Trace: sea.gmane.org 1189458813 7725 80.91.229.12 (10 Sep 2007 21:13:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 21:13:33 +0000 (UTC) Cc: guile-user@gnu.org To: Luigi Semenzato Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 11 07:13:20 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 1IUwmi-0002dt-Nc for guile-user@m.gmane.org; Tue, 11 Sep 2007 05:51:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUpIM-0005lG-6L for guile-user@m.gmane.org; Mon, 10 Sep 2007 15:51:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUpIH-0005gK-1C for guile-user@gnu.org; Mon, 10 Sep 2007 15:51:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUpIF-0005eq-Kb for guile-user@gnu.org; Mon, 10 Sep 2007 15:51:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUpIF-0005ej-At for guile-user@gnu.org; Mon, 10 Sep 2007 15:51:35 -0400 Original-Received: from mxsf04.insightbb.com ([74.128.0.74]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUpIE-0005Mw-VA for guile-user@gnu.org; Mon, 10 Sep 2007 15:51:35 -0400 X-IronPort-AV: E=Sophos;i="4.20,232,1186372800"; d="asc'?scan'208";a="29556566" Original-Received: from unknown (HELO asav01.insightbb.com) ([172.31.249.123]) by mxsf04.insightbb.com with ESMTP; 10 Sep 2007 15:51:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAHQ65UZKiZK7/2dsb2JhbAAM X-IronPort-AV: E=Sophos;i="4.20,232,1186372800"; d="asc'?scan'208";a="76822467" Original-Received: from 74-137-146-187.dhcp.insightbb.com (HELO [192.168.10.2]) ([74.137.146.187]) by asav01.insightbb.com with ESMTP; 10 Sep 2007 15:51:33 -0400 In-Reply-To: X-Mailer: Evolution 2.10.2-2.1mdv2007.1 X-Detected-Kernel: Genre and OS details not recognized. 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:6132 Archived-At: --===============1836375052== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-M1dcO1wgxk/vhyLse9Be" --=-M1dcO1wgxk/vhyLse9Be Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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): > #). >=20 > 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. --=20 ;;; Stephen Compall ** http://scompall.nocandysw.com/blog ** "Peta" is Greek for fifth; a petabyte is 10 to the fifth power, as well as fifth in line after kilo, mega, giga, and tera. -- Lee Gomes, performing every Wednesday in his tech column "Portals" on page B1 of The Wall Street Journal --=-M1dcO1wgxk/vhyLse9Be Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG5aA8YWjD35Pp0wIRAt23AKCUcB+mm4shbMx30Q6Ffej12jssBwCdESRJ nQWKZjO15de9GRhyXO1y5/0= =T8AP -----END PGP SIGNATURE----- --=-M1dcO1wgxk/vhyLse9Be-- --===============1836375052== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user --===============1836375052==--