From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Nonblocking get-bytevector-n bug? Date: Mon, 07 Dec 2015 15:42:28 +0100 Message-ID: <87lh96jp63.fsf@gnu.org> References: <87h9jvuxb3.fsf@elektro.pacujo.net> <87poyilh8k.fsf@gnu.org> <87mvtm7e5j.fsf@T420.taylan> <87h9ju7cfw.fsf@T420.taylan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1449499373 29209 80.91.229.3 (7 Dec 2015 14:42:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2015 14:42:53 +0000 (UTC) Cc: guile-user@gnu.org To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 07 15:42:48 2015 Return-path: Envelope-to: guile-user@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 1a5x03-0007a9-0x for guile-user@m.gmane.org; Mon, 07 Dec 2015 15:42:47 +0100 Original-Received: from localhost ([::1]:54948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5x02-00061b-BA for guile-user@m.gmane.org; Mon, 07 Dec 2015 09:42:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5wzt-00060Z-6A for guile-user@gnu.org; Mon, 07 Dec 2015 09:42:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5wzp-0000L9-7H for guile-user@gnu.org; Mon, 07 Dec 2015 09:42:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5wzp-0000L0-4F; Mon, 07 Dec 2015 09:42:33 -0500 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:33842 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a5wzo-0005nr-G1; Mon, 07 Dec 2015 09:42:32 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 Frimaire an 224 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87h9ju7cfw.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Mon, 07 Dec 2015 11:58:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12224 Archived-At: taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skribis: > taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") writes: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Not sure what R7 does here. >> >> R7RS section 6.13.2 Input, page 58, defines: >> >> (read-bytevector! bytevector [port [start [end]]]) >> >> Reads the next END - START bytes, or as many as are available before >> the end of file, from the binary input PORT into BYTEVECTOR in >> left-to-right order beginning at the START position. If END is not >> supplied, reads until the end of BYTEVECTOR has been reached. If >> START is not supplied, reads beginning at position 0. Returns the >> number of bytes read. If no bytes are available, an end-of-file >> object is returned. >> >> Maybe the r7rs-wip branch has an implementation of it. > > Eh, never mind, this seems to imply blocking ("as many as are available > before the end of file"). Yes, but only =E2=80=9Cuntil the end of BYTEVECTOR has been reached.=E2=80= =9D Ludo=E2=80=99.