From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#42147: 28.0.50; pure vs side-effect-free, missing optimizations?
Date: Wed, 29 Jul 2020 14:53:55 +0200
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; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="37396"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= ,
Paul Eggert , Andrea Corallo ,
42147@debbugs.gnu.org
To: Stefan Monnier
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 29 14:55:14 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 1k0lc0-0009as-Vy
for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jul 2020 14:55:12 +0200
Original-Received: from localhost ([::1]:46306 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1k0lbz-000700-UU
for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jul 2020 08:55:11 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33542)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1k0lbq-0006yi-Ji
for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2020 08:55:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:48786)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1k0lbq-0004jK-AM
for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2020 08:55:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1k0lbq-00088b-76
for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2020 08:55:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 29 Jul 2020 12:55: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.159602729931265
(code B ref 42147); Wed, 29 Jul 2020 12:55:02 +0000
Original-Received: (at 42147) by debbugs.gnu.org; 29 Jul 2020 12:54:59 +0000
Original-Received: from localhost ([127.0.0.1]:60332 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1k0lbn-00088D-BX
for submit@debbugs.gnu.org; Wed, 29 Jul 2020 08:54:59 -0400
Original-Received: from mail-ot1-f48.google.com ([209.85.210.48]:34324)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1k0lbm-000880-2X
for 42147@debbugs.gnu.org; Wed, 29 Jul 2020 08:54:58 -0400
Original-Received: by mail-ot1-f48.google.com with SMTP id k12so577114otr.1
for <42147@debbugs.gnu.org>; Wed, 29 Jul 2020 05:54:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=KpqKbRfhd14wMEMBnymxJrmvaDgFAgdJru3/h9SfQqs=;
b=g1GWrLX3HyBTEA3//Mk14JK8oix60u9a9DIDhEHqvUIV35hbiDH9u5C632kLQ8VXje
dEiRfBGU6kHG91PoBLO3ZPeWml4TBvIS95La0ZP91kb9YYoUelcsgpn4YIboIp6Rd1EP
Uh43pJ27b6PAXdGgThfINwKSZxrM1xHjxZLOczP0ytWBKnlyvNIui2RzcWpNcxIPP5XN
NJoEizpRhx37AMF0Vv1RDBtkrAk5HfP05bfYWASIgqO2pUcRq7qxpaWvIg3WQ9hXYfXZ
dya3RZVlITEXB2g+G+59LjmasoCuu2GiAO5tVMXZ739RZ1fAEpwGAWa00NIqz2hDg9Od
DGWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=KpqKbRfhd14wMEMBnymxJrmvaDgFAgdJru3/h9SfQqs=;
b=KcjtNVwlhPQwgj84atJAqS95Op6ri8L1SbPCtaEn7q8de1m7qRb7pd/7Kx+Fc75eWv
NRLY4W5H7BKfGL8HQpEXC7vxsd5QiAvYOYrb8x+vvmsoF2en+HL9S/fha+Q7qPf/I81B
lBcmgafwohmsNS7zmQ7Z/pH2GhA6oJxR4YBKrIUDLSm6Dq2j5UxijfzCFWptlZmd3Usy
O7lEoV/KPBRA2NpDE/72JW41FnR5Izg2Qws0qVDM++qW1ItBuimN7BMQyWKCXS1E5dx/
b/z0p/52mO1S79ba4Y7pcjmI5Sqh19J3NftI51J0v5dD8Rr3NFsuYna2jwvRQyzEYG5n
AlBA==
X-Gm-Message-State: AOAM530twVRmzhhhi6ODkHh1mzDvo8rFaT9w9g619O1TzDdglyVrk3VP
SmmHgqqU5v9fdaJxIFLa5meL5GEdsHBPnFnAVM4=
X-Google-Smtp-Source: ABdhPJw+L/XliZ5Kc8mKEBsWCh3inNx1ytoS0hp5mArYNLYgg+jSV9zSdu+exZK1rsmOlZGN5TpNYEV6D07V32umED8=
X-Received: by 2002:a9d:170c:: with SMTP id i12mr4051169ota.36.1596027292212;
Wed, 29 Jul 2020 05:54:52 -0700 (PDT)
In-Reply-To:
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:183656
Archived-At:
Am So., 26. Juli 2020 um 00:27 Uhr schrieb Stefan Monnier
:
>
> >> > 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`).
Only if the strings aren't modified between two invocations.