From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lloda Newsgroups: gmane.lisp.guile.devel Subject: Re: [EXT] [PATCH] Add 'bytevector-slice'. Date: Fri, 13 Jan 2023 10:30:42 +0100 Message-ID: <91E5C18F-3A5B-4524-AD43-B9CA80BF435B@sarc.name> References: <20230111150015.10219-1-ludo@gnu.org> <87358hkmaz.fsf@gnu.org> <27DC75F6-8596-4B51-AA39-F6B76070B313@sarc.name> <87o7r3fkxn.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29878"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Thompson, David" , Jean Abou Samra , "guile-devel@gnu.org" , Andy Wingo To: =?utf-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 13 10:31:43 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pGGPW-0007cQ-Rg for guile-devel@m.gmane-mx.org; Fri, 13 Jan 2023 10:31:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGGP5-0002H1-8g; Fri, 13 Jan 2023 04:31:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGGOr-0002Gs-Dj for guile-devel@gnu.org; Fri, 13 Jan 2023 04:31:01 -0500 Original-Received: from mta-12-4.privateemail.com ([198.54.127.107]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGGOp-0005ZZ-GG; Fri, 13 Jan 2023 04:31:00 -0500 Original-Received: from mta-12.privateemail.com (localhost [127.0.0.1]) by mta-12.privateemail.com (Postfix) with ESMTP id DE77C18000A2; Fri, 13 Jan 2023 04:30:49 -0500 (EST) Original-Received: from [192.168.1.105] (unknown [51.154.167.214]) by mta-12.privateemail.com (Postfix) with ESMTPA id 96C0C18000A1; Fri, 13 Jan 2023 04:30:44 -0500 (EST) In-Reply-To: <87o7r3fkxn.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.127.107; envelope-from=lloda@sarc.name; helo=MTA-12-4.privateemail.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21571 Archived-At: > On 12 Jan 2023, at 23:27, Ludovic Court=C3=A8s wrote: >=20 > lloda skribis: >=20 >>> On 11 Jan 2023, at 18:37, Thompson, David = wrote: >>>=20 >>> On Wed, Jan 11, 2023 at 12:34 PM Ludovic Court=C3=A8s = wrote: >>>>=20 >>>> What could be convenient though is =E2=80=98bytevector-copy=E2=80=99 = (no bang), which >>>> would combine =E2=80=98make-bytevector=E2=80=99 + = =E2=80=98bytevector-copy!=E2=80=99. >>>=20 >>> 'bytevector-copy' already exists, or do you mean some different >>> implementation of it? >>>=20 >>> - Dave >>=20 >> The current bytevector-copy takes a single argument. >=20 > Right, what I had in mind is one that would take an offset and size; I > hadn=E2=80=99t realized the name was already taken. >=20 > Thanks, > Ludo=E2=80=99. Actually (scheme base) from r7rs already defines (bytevector-copy = bytevector start end), this is of course r7rs's convention. This is = hidden in Guile's manual, which only lists the 1-argument version from = r6rs.