From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#42147: 28.0.50; pure vs side-effect-free, missing optimizations? Date: Thu, 2 Jul 2020 18:55:23 +0000 (UTC) Message-ID: <117811516.3019881.1593716123601@mail.yahoo.com> References: <3A9CC2A3-8307-47B2-8D80-795C0AF020E1@acm.org> <0433A879-C98D-4B1A-B85C-A15DA9289099@acm.org> <1621669100.2102667.1593639091621@mail.yahoo.com> <775819003.2516724.1593687594435@mail.yahoo.com> <5F2B4684-34D1-4474-8909-9F435369FE54@acm.org> <705260433.2731607.1593698199171@mail.yahoo.com> <6CF8EE58-9A49-40E7-AA86-48AB39BF94BA@acm.org> <28B19D86-343C-4126-B95F-1F38735F73F2@acm.org> Reply-To: Andrea Corallo Mime-Version: 1.0 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="1948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Paul Eggert , 42147@debbugs.gnu.org To: Stefan Monnier , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 02 20:56:11 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 1jr4NW-0000OM-Ko for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 20:56:10 +0200 Original-Received: from localhost ([::1]:52362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr4NV-0005MQ-MO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 14:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr4NO-0005MF-Tn for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2020 14:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jr4NO-00009t-Kh for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2020 14:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jr4NN-0006wa-Jy for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2020 14:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jul 2020 18:56:01 +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.159371613826659 (code B ref 42147); Thu, 02 Jul 2020 18:56:01 +0000 Original-Received: (at 42147) by debbugs.gnu.org; 2 Jul 2020 18:55:38 +0000 Original-Received: from localhost ([127.0.0.1]:55665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jr4Mz-0006vv-UH for submit@debbugs.gnu.org; Thu, 02 Jul 2020 14:55:38 -0400 Original-Received: from sonic313-21.consmr.mail.ir2.yahoo.com ([77.238.179.188]:41614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jr4Mw-0006vg-Sh for 42147@debbugs.gnu.org; Thu, 02 Jul 2020 14:55:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s2048; t=1593716128; bh=m/Ei9xF1mM3Q56WwNowmOeYDxdmz/+WlYcn8a5zltVw=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=LClcvTXioiv14+FuOE9d3eh7pzTqDg7CB9SUoJzPSAqB6scWrAhkwPwQYjk7/3Qd4Hv/JMW7mapo/qfVQsFLqC3LKKJZHTtYKeinbfsM+uc5MvgOxaSVJ12td6LUwPKCwMLMq8bIZyOm642YY1HQ63pDx0WBexX6HYLj5xqneS6YQtxBbP6qOjWYVszSxj1Aqb9tNxVJ2RK89x+iEZ+RSpOnr4/7vip0jPQ4+0JHQzu87tl7km0LdmNr1wJZrclittphBvm8yviddiV2PxCzCLd03dyTWhIsUmgVAwldM33A5cxccC+qAzJw6hXxN73oIajPkfW5ebOYrhZxnu+0Lg== X-YMail-OSG: USmaMRYVM1l1HbyQTBtKijOsDC6_iSQ41EfjrZkKWSAcEXl2TXhnFr5UODJ8rbX OtI8f4eTc.xwwN0zgMFMEjlTU1JavTRkGWWOfG_pddDNsslB6I_f6IhmXQufeKteUAds4m07jo38 Ferq.aKtrwyu3_d_ZyEeTKEbq9sBlkhRBNxp4czuUbQWYlaar6h02HK.nROtJNiY4va.QLSWrKZz BvQx6IysJKXxQlsOzlnCFq0I7sUrbcjXgYTU4AeSQuFPVaXDsWAtAS26EBWQ2pN1fHWtb1gA8Ezh 5DgkI3x2gbH9vMmpuGcEQ5SOSkVsYY.kVoOTYyJLY6bLqBn3XEgp6MK56PIwUTEXpDnqYvrq6NNq DC68bqPxY5GHB85bhJCwMfBJI_5UKoOxoC_7IgxHNtPD_s1XlmEd0exL0YhuJUeSbWUlALMiIJJI MsXPTcALxVADezyruu6ZYFnA2Ipt6AC7wGbm7u.lDO5B1NomXP_9rUkQFt4jBopSsGLMkoEKYD0G tYHRMGJ6zmnEKlWdYWu2SYqyBZr6Mh68TjSgnHoV8s.3BzPaGQ2sNyQmcn56RjU7_dR6tcH5tqDw u__55Em2MdS300tZC9Sd5iXgQ5gmNny5XqPWriAGSyPyM9fagCo87Ok_qMUqCq4L4Xljzah0_I3U S69noHIoT6BFHdQeW.wz2jNvwmgnDw5c9P2xWSeiD6.pEThxzNdUqoxna_CAWEwixVd.9WSndWNK .dIgKtBrKPUMUnDg7527MIR5wiq.8L_Hiuer_ehhg3uz_hyLdjQlby6dJDqMx.P9eqjRo84nRxjl kn8JwSG5C1rAzfkap6.226ZdBrDJXXryTA8K976zY4 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Thu, 2 Jul 2020 18:55:28 +0000 In-Reply-To: <28B19D86-343C-4126-B95F-1F38735F73F2@acm.org> X-Mailer: WebService/1.1.16197 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0 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:182643 Archived-At: Mattias Engdeg=C3=A5rd writes: > 2 juli 2020 kl. 17.49 skrev Stefan Monnier : > >> Better yet, there's still hope that we change things such that `eq` >> behaves like `eql` on bignums (and maybe also on floats). > > Speaking of which, Andrea may be in a good position to provide us with > performance data about such a change, since making 'eq' more expensive > is likely to be more visible in native code (assuming the operation is > open-coded) than in bytecode or interpreted lisp. On the other hand, > perhaps his compiler thingamajig is able to eliminate some checks > statically by type propagation? Correct, in case we would certainly opencode it and use the thingamajig trying to eliminate the type checks we can.