From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juliusz Chroboczek Newsgroups: gmane.emacs.devel Subject: Re: Checking for loss of information on integer conversion Date: Mon, 19 Feb 2018 00:46:44 +0100 Message-ID: <87sh9x97yz.fsf@trurl.irif.fr> References: <7432641a-cedc-942c-d75c-0320fce5ba39@cs.ucla.edu> <87woza7wwi.fsf@trurl.irif.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518997599 31345 195.159.176.226 (18 Feb 2018 23:46:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Feb 2018 23:46:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 19 00:46:35 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 1enYf9-0007iM-Uz for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 00:46:32 +0100 Original-Received: from localhost ([::1]:46942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enYhC-0005MR-5O for ged-emacs-devel@m.gmane.org; Sun, 18 Feb 2018 18:48:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enYgV-0005MC-GX for emacs-devel@gnu.org; Sun, 18 Feb 2018 18:47:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enYgQ-0005Zi-Gy for emacs-devel@gnu.org; Sun, 18 Feb 2018 18:47:55 -0500 Original-Received: from [195.159.176.226] (port=45951 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enYgQ-0005ZM-9o for emacs-devel@gnu.org; Sun, 18 Feb 2018 18:47:50 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1enYe2-0003Qd-Ev for emacs-devel@gnu.org; Mon, 19 Feb 2018 00:45:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:wKbjpvClmTCjDQ5HNIIL/vrr10s= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:222888 Archived-At: >>> Another possibility would be for Emacs to signal an error when >>> reading any integer that does not fit in fixnum bounds. >> Please do that. > That would be a regression. On 32bit systems, there are various > circumstances where we need to read a 32bit ID I can see how this could be a problem, but I still find the current semantics pretty horrible, and completely different from what any Lisp hacker would expect. Perhaps Emacs could acquire small bignums? Say, boxed 64-bit integers with signal on overflow? > On 64bit systems (and 32bit systems built with wide-ints), > I don't see such a clear need to convert a large integer into a float, > so on those systems I think it's OK to just signal an error. Please. > Stefan "still living in the 32bit world" We like you nonetheless. -- Juliusz