From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Floating-point constant folding in Emacs byte compiler Date: Mon, 26 Mar 2018 21:29:42 +0300 Message-ID: <831sg6g06h.fsf@gnu.org> References: <2ce39e5c-cd1b-65d6-b125-719caad67932@cs.ucla.edu> <83vadmgfbz.fsf@gnu.org> <87d0zr2n1u.fsf@gmail.com> <83h8p2g99p.fsf@gnu.org> <87370m3k4y.fsf@gmail.com> <838taeg6z5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522088889 16732 195.159.176.226 (26 Mar 2018 18:28:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 18:28:09 +0000 (UTC) Cc: rpluim@gmail.com, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 20:28:05 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0Wqi-0004EZ-Pl for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 20:28:04 +0200 Original-Received: from localhost ([::1]:58432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Wsl-0008Al-TF for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 14:30:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0WsC-0008AR-I6 for emacs-devel@gnu.org; Mon, 26 Mar 2018 14:29:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0Ws8-0004l1-Kv for emacs-devel@gnu.org; Mon, 26 Mar 2018 14:29:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Ws8-0004kx-HE; Mon, 26 Mar 2018 14:29:32 -0400 Original-Received: from [176.228.60.248] (port=3516 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f0Ws8-0003Hh-09; Mon, 26 Mar 2018 14:29:32 -0400 In-reply-to: (message from Pip Cet on Mon, 26 Mar 2018 18:23:15 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224061 Archived-At: > From: Pip Cet > Date: Mon, 26 Mar 2018 18:23:15 +0000 > Cc: Robert Pluim , emacs-devel@gnu.org > > But is this really a problem for any actual code? Good code shouldn't > depend on more than the 30 bits Emacs guarantees IMO, it is no longer reasonable nowadays to require "good code" to be limited to 30 bits. Most people use 64-bit platforms, and those who don't should be able to run the code with some run-time penalty, but without overflows, errors, and any similar calamities.