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: Wed, 11 Jan 2023 20:05:35 +0100 Message-ID: <27DC75F6-8596-4B51-AA39-F6B76070B313@sarc.name> References: <20230111150015.10219-1-ludo@gnu.org> <87358hkmaz.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_7FFBD54A-80B3-44D8-A858-44AC4340859A" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39649"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Ludovic_Court=C3=A8s?= , Jean Abou Samra , "guile-devel@gnu.org" , Andy Wingo To: "Thompson, David" Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Jan 11 20:06:26 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 1pFgQb-000A5S-Mu for guile-devel@m.gmane-mx.org; Wed, 11 Jan 2023 20:06:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFgQ3-0003ZF-Gv; Wed, 11 Jan 2023 14:05:51 -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 1pFgQ2-0003Z5-6a for guile-devel@gnu.org; Wed, 11 Jan 2023 14:05:50 -0500 Original-Received: from mta-14-4.privateemail.com ([198.54.118.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFgPy-0000E4-AW; Wed, 11 Jan 2023 14:05:47 -0500 Original-Received: from mta-14.privateemail.com (localhost [127.0.0.1]) by mta-14.privateemail.com (Postfix) with ESMTP id 49D4F18000A1; Wed, 11 Jan 2023 14:05:43 -0500 (EST) Original-Received: from [192.168.1.105] (unknown [51.154.167.214]) by mta-14.privateemail.com (Postfix) with ESMTPA id E3C0518000A3; Wed, 11 Jan 2023 14:05:37 -0500 (EST) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.118.206; envelope-from=lloda@sarc.name; helo=MTA-14-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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:21565 Archived-At: --Apple-Mail=_7FFBD54A-80B3-44D8-A858-44AC4340859A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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 The current bytevector-copy takes a single argument. I would extend it = in the same way the srfi4 copy functions were extended recently in the = following commit = http://git.savannah.gnu.org/gitweb/?p=3Dguile.git;a=3Dcommitdiff;h=3D6be51= f9bbf47692ee5747b2cac6b372df65de970 = Regards Daniel --Apple-Mail=_7FFBD54A-80B3-44D8-A858-44AC4340859A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 11 Jan 2023, at 18:37, Thompson, David <dthompson2@worcester.edu> wrote:

On = Wed, Jan 11, 2023 at 12:34 PM Ludovic Court=C3=A8s <ludo@gnu.org> wrote:

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.

'bytevector-copy' already exists, or do you mean some = different
implementation of it?

- Dave

The current bytevector-copy takes a single = argument. I would extend it in the same way the srfi4 copy functions = were extended recently in the following commit


Regards

  = Daniel

= --Apple-Mail=_7FFBD54A-80B3-44D8-A858-44AC4340859A--