From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58669: 28.2; bindat: str and strz not operating on vectors Date: Fri, 21 Oct 2022 14:34:23 -0400 Message-ID: References: <87tu3ymm51.fsf@cern.ch> <83y1t9upv1.fsf@gnu.org> <83sfjhumfr.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31732"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58669@debbugs.gnu.org, nacho.barrientos@cern.ch To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 21 21:18:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1olxWt-0007fr-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 21:18:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olxWH-0005Js-25; Fri, 21 Oct 2022 15:17:25 -0400 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 1olwrH-00037k-TO for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 14:35:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olwrH-0001mY-20 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 14:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olwrG-0002pp-K3 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2022 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58669 X-GNU-PR-Package: emacs Original-Received: via spool by 58669-submit@debbugs.gnu.org id=B58669.166637727510863 (code B ref 58669); Fri, 21 Oct 2022 18:35:02 +0000 Original-Received: (at 58669) by debbugs.gnu.org; 21 Oct 2022 18:34:35 +0000 Original-Received: from localhost ([127.0.0.1]:39028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olwqp-0002p8-0u for submit@debbugs.gnu.org; Fri, 21 Oct 2022 14:34:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olwqm-0002or-53 for 58669@debbugs.gnu.org; Fri, 21 Oct 2022 14:34:32 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8C50780496; Fri, 21 Oct 2022 14:34:25 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 94B5F80068; Fri, 21 Oct 2022 14:34:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1666377263; bh=ifsDEpnt7G/7cwzb+WvStvKnUgZKUVE/RLXl58ZFDn8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=P1vuhorwAfULthOYo91QCbhbcoiKO2blkpIf6qTsH6Wqz6xc4FGh5bUf5p6jsaBD8 eG70mcnmJbDjwqXE2QIUmX/d//QznjTLvIkmO0Lc7VB7Yc3lzjJELSUsAAF3qMwfp9 k+s7mYgOX9t3S8fJWSOcRj/YBph6CpTOIgNBgMu3bSOv+++Ovem8GMf8Q5hzEIMtx2 YilXEwbG7PzXeRd1tsg+yyXOwhk5g1X+9q+geHhBt4yJxXPLHnEZ60NThpyXcBdPP8 EKEZzVg0FQqL9s70tGTWinvc3MLDoQ+UqDQa7jtRkjMwzXpEhl238Glm9xdXuVZWud FGVZxEV3MEwwA== Original-Received: from alfajor (alfajor.sf.umontreal.ca [10.33.232.38]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 77955120F3B; Fri, 21 Oct 2022 14:34:23 -0400 (EDT) In-Reply-To: <83sfjhumfr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Oct 2022 20:16:24 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246003 Archived-At: >> `append` takes the vector, turns it into a list (thus allocating N cons >> cells), then `apply` turns the list back into an on-stack "vector", and >> all of that just to create a 4x or 8x smaller string. It's silly. > > It gets the job done, doesn't it? Indeed, there's a way, but there isn't a *good* way, Stefan