From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#42147: 28.0.50; pure vs side-effect-free, missing optimizations? Date: Sat, 25 Jul 2020 18:27:13 -0400 Message-ID: References: <3A9CC2A3-8307-47B2-8D80-795C0AF020E1@acm.org> <0433A879-C98D-4B1A-B85C-A15DA9289099@acm.org> <1621669100.2102667.1593639091621@mail.yahoo.com> <33C2E2C8-16A6-47A9-B3A4-8A5F43648E04@acm.org> <51FE77F3-CA05-459A-9601-9E1EEBC1E2FE@acm.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Paul Eggert , Andrea Corallo , 42147@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 26 00:28:10 2020 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 1jzSeI-000AYv-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jul 2020 00:28:10 +0200 Original-Received: from localhost ([::1]:39434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzSeH-00089n-6q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jul 2020 18:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzSeA-00088p-Jr for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 18:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzSeA-00067c-BD for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 18:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzSeA-0005aO-6s for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 18:28: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: Sat, 25 Jul 2020 22:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42147 X-GNU-PR-Package: emacs Original-Received: via spool by 42147-submit@debbugs.gnu.org id=B42147.159571604621429 (code B ref 42147); Sat, 25 Jul 2020 22:28:02 +0000 Original-Received: (at 42147) by debbugs.gnu.org; 25 Jul 2020 22:27:26 +0000 Original-Received: from localhost ([127.0.0.1]:51317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzSda-0005ZZ-CJ for submit@debbugs.gnu.org; Sat, 25 Jul 2020 18:27:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzSdV-0005ZI-Vs for 42147@debbugs.gnu.org; Sat, 25 Jul 2020 18:27:24 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D6F5E8079B; Sat, 25 Jul 2020 18:27:15 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 25AB980836; Sat, 25 Jul 2020 18:27:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1595716034; bh=UnBO0nZa1U3oOLP2XfBUIbUsCailnY554nq2bGr1hjw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=W30/x/6pKUvy2g44e6vvkTymVuStSDvk2OtJ/4gqSGJBGXyYuvXu+xI9fLGTz+lnY f9UCH1PSfTKgyYsfpDfMkVf9uJuwSbCAryFDhzXmMcAPL2PvKs8eiKBaqEJEMvtjA3 N3aw0UHVzLpJ4AEVWLJUDHeMH1ZNlUJvxd51kLj1SS21p8hy2hN1i7ipoKokJj06MT bCSXquWi8EQa7ISFA6kdPbLqLp5IeZkUN+dFrdN2uIOYrDmxKETbIPtw09Fb0YN43u rcixMG2ulbTzglNn/eiiXMVl7JLvcIIpv1DM1dW6NuqDWQN0I4JDVFWfqTpnOzk2IL I1pFixsuHiPHA== Original-Received: from milanesa (unknown [104.247.229.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E00D3120268; Sat, 25 Jul 2020 18:27:13 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Sat, 25 Jul 2020 23:39:05 +0200") 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183559 Archived-At: >> > There are also some functions declared 'pure' that appear to have side >> > effects: kbd, package-get-version >> >> Which side-effects are you thinking of? >> > > I wouldn't know about side effects, but `kbd' is definitely not pure > by the "homomorphism w.r.t. eql" definition as it takes a string > argument. Taking string arguments is not a problem (`eql` strings are also `equal`). It's returning a fresh new string/vector that is a problem (which also affects `kbd`, indeed). Stefan