From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Nonblocking get-bytevector-n bug? Date: Mon, 07 Dec 2015 11:58:11 +0100 Message-ID: <87h9ju7cfw.fsf@T420.taylan> References: <87h9jvuxb3.fsf@elektro.pacujo.net> <87poyilh8k.fsf@gnu.org> <87mvtm7e5j.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 1449485921 2668 80.91.229.3 (7 Dec 2015 10:58:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2015 10:58:41 +0000 (UTC) Cc: guile-user@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 07 11:58:26 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 1a5tUu-0007ri-I1 for guile-user@m.gmane.org; Mon, 07 Dec 2015 11:58:24 +0100 Original-Received: from localhost ([::1]:53785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5tUt-0004q9-Dr for guile-user@m.gmane.org; Mon, 07 Dec 2015 05:58:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5tUl-0004q3-3Q for guile-user@gnu.org; Mon, 07 Dec 2015 05:58:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5tUk-0002Yv-9o for guile-user@gnu.org; Mon, 07 Dec 2015 05:58:15 -0500 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:36068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5tUj-0002Yn-W8; Mon, 07 Dec 2015 05:58:14 -0500 Original-Received: by wmww144 with SMTP id w144so135201787wmw.1; Mon, 07 Dec 2015 02:58:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=NrMn2MN8667Kd1Ymp+O89tO+1QO73Cci0vqEKdcsCCY=; b=ou5Xge214viD+4Aa+wSOILOvxtp2ntHi902IhcD9zmpbYaYqqNXC2rMYlZ306xmNFE qlKjVzh5/2INw3psdkLTFmQsJXLWhIf8YkeOOxtBBmjvqgipiS39wGT45VzkyRkxjpqs hVj+ysH+uCyiULAOdbRaQ1NujPeZncU4NIW/jKkNbk98qgsU5uY7MjgZ/YT3Xm1wyzf4 RYctdg6ZG7CmdO+AZ/0gYQm1WysV6PR/5oIBHc1acCMN2MCJcBh5+5DQcVCKlzkE7lMn lRb1+F+kTCLKO8hjMIRqH/RW/PcYixhS1VGGLYzPfbRoVHb5ZnLEC18+7xVy2zvsCUFL XM8A== X-Received: by 10.194.84.4 with SMTP id u4mr38154567wjy.149.1449485893165; Mon, 07 Dec 2015 02:58:13 -0800 (PST) Original-Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id ht5sm5399880wjb.34.2015.12.07.02.58.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Dec 2015 02:58:12 -0800 (PST) In-Reply-To: <87mvtm7e5j.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:21:12 +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: 2a00:1450:400c:c09::234 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:12220 Archived-At: 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"). Taylan