From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.devel Subject: Re: Reading data from a file descriptor Date: Mon, 20 Jun 2016 12:58:38 +0200 Message-ID: <20160620105838.GA24842@tuxteam.de> References: <87fv0h1ic2.fsf@delenn.home.rotty.xx.vu> <87h9kpvqw1.fsf@netris.org> <09b3d3156d439ce3dd7bedc48d84fd5b@hypermove.net> <20151117095319.GA7958@tuxteam.de> <20151117125956.4b2fc363@bother.homenet> <20151117125221.GB13216@tuxteam.de> <20151117135517.42458d6a@bother.homenet> <87a8igjg7e.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: ger.gmane.org 1466420350 16233 80.91.229.3 (20 Jun 2016 10:59:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 10:59:10 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jun 20 12:59:03 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bEwuy-00030X-Nn for guile-devel@m.gmane.org; Mon, 20 Jun 2016 12:59:00 +0200 Original-Received: from localhost ([::1]:42714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwuy-00011W-07 for guile-devel@m.gmane.org; Mon, 20 Jun 2016 06:59:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwuh-0000nS-Aa for guile-devel@gnu.org; Mon, 20 Jun 2016 06:58:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEwue-0001Vb-68 for guile-devel@gnu.org; Mon, 20 Jun 2016 06:58:43 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:52311 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwud-0001VT-Vf for guile-devel@gnu.org; Mon, 20 Jun 2016 06:58:40 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1bEwuc-0006Wg-Oj for guile-devel@gnu.org; Mon, 20 Jun 2016 12:58:38 +0200 In-Reply-To: <87a8igjg7e.fsf@pobox.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18367 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jun 20, 2016 at 12:40:53PM +0200, Andy Wingo wrote: > On Tue 17 Nov 2015 14:55, Chris Vine writes: > > > On Tue, 17 Nov 2015 13:52:21 +0100 > >> On Tue, Nov 17, 2015 at 12:59:56PM +0000, Chris Vine wrote: [...] > >> > guile's R6RS implementation has get-bytevector-some, which will do > >> > that for you, with unix-read-like behaviour. [...] > > I suppose it is worth adding that it might not be optimally efficient > > for all uses, as there is no get-bytevector-some! procedure which > > modifies an existing bytevector and takes a maximum length value. I > > guess it is a matter of 'suck it and see', efficiency-wise. > > I would be happy to support such an interface though. I guess it would > take a keyword or optional argument indicating a minimum number of bytes > to fill, and if that number is 0 it would never block; sound about > right? Assuming I understood everything involved -- yes, it sounds spot-on. Thanks - - t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAldnzF4ACgkQBcgs9XrR2kbbkQCeJtkFrSRYBz9UTX9+pO1v7E3r hKYAn03UD5dhTe9hPpYusaBqTYOu2MbW =WJhe -----END PGP SIGNATURE-----