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: Thu, 02 Jul 2020 17:41:31 -0400 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11768"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Paul Eggert , Andrea Corallo , 42147@debbugs.gnu.org To: 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 23:42: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 1jr6yB-0002rv-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 23:42:11 +0200 Original-Received: from localhost ([::1]:53492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr6yA-0008LS-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 17:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr6y2-0008LF-6b for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2020 17:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jr6y1-0007nr-TW for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2020 17:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jr6y1-0004kc-S6 for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2020 17:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jul 2020 21:42: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.159372610418238 (code B ref 42147); Thu, 02 Jul 2020 21:42:01 +0000 Original-Received: (at 42147) by debbugs.gnu.org; 2 Jul 2020 21:41:44 +0000 Original-Received: from localhost ([127.0.0.1]:55856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jr6xk-0004k6-3I for submit@debbugs.gnu.org; Thu, 02 Jul 2020 17:41:44 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jr6xg-0004jr-HL for 42147@debbugs.gnu.org; Thu, 02 Jul 2020 17:41:42 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D941F440F0F; Thu, 2 Jul 2020 17:41:34 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A1DF6440EBA; Thu, 2 Jul 2020 17:41:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1593726093; bh=5qA++KqtxiOQo1XXnWs/vC9aQOjwsalXLiPgJ/NlWOU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BkFyvF3RI2VVgutsaI288Z3VwV09vQr9poNynh9rXT+Fy2e12M0TxfImTD+b5osJH YuVcir21W8hxjpxD9BIKFUZgEZUCkmKh5Iw1E07YEWoqYlYzeyrtbhqcC3jvvrQUTJ ii7y5bj4Kj2K6e0+9E8vTB8HEqOSLne9D+w4Op+S3woLEwigBcoHeLd2RKf4nDHdFG U7oXZWMHI3Rz+N5bGl3Edbf2129UcNCEA0Lnj58fiXZ6pya7PtAMUruhRZrKj0moaG pNO4hQFQbSD3+ObXoUVtzHAcMrY5sI1COn7WOZ+E14Pf5uZGQDgvyKEtb/JrOY9Vdo 60+OP913Lf5fw== Original-Received: from alfajor (unknown [157.52.0.200]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 030EF120439; Thu, 2 Jul 2020 17:41:32 -0400 (EDT) In-Reply-To: <28B19D86-343C-4126-B95F-1F38735F73F2@acm.org> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Thu, 2 Jul 2020 20:01:23 +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:182652 Archived-At: > Anyway, since we now have bignums and have standardised on IEEE 754 binar= y64 > floats, is there a reason to keep byte-opt-portable-numberp? Indeed, it seems like it might not be needed any more. > If we want to make allowance for capricious x87 rounding, what about > rewriting it to accept integral floats in the =B12^53 range, as well as a= ny > integer? This is what it might look like: I must say I don't know what x87 rounding has to do with it. I'd tend to assume that x87 rounding can virtually never be seen from Elisp because it's hard to imagine how the C compiler will manage to keep our Elisp floats long enough in the x87 stack to avoid rounding back to 64bit floats between every Elisp-level operation. Or are we worried about the double-rounding of x87? Stefan