From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8611: fixnum arithmetic should not wrap around Date: Tue, 03 May 2011 21:31:21 -0300 Message-ID: References: <4DC0491D.7090404@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304469424 12447 80.91.229.12 (4 May 2011 00:37:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 May 2011 00:37:04 +0000 (UTC) Cc: 8611@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 04 02:37:00 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHQ5M-0007IM-1z for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2011 02:37:00 +0200 Original-Received: from localhost ([::1]:50165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHQ5L-0001o0-I4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2011 20:36:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHQ5H-0001mN-Hr for bug-gnu-emacs@gnu.org; Tue, 03 May 2011 20:36:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHQ5G-0005ZY-Mr for bug-gnu-emacs@gnu.org; Tue, 03 May 2011 20:36:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHQ5G-0005ZU-LG for bug-gnu-emacs@gnu.org; Tue, 03 May 2011 20:36:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QHQ0Y-0001YN-FC; Tue, 03 May 2011 20:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 May 2011 00:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8611-submit@debbugs.gnu.org id=B8611.13044690935935 (code B ref 8611); Wed, 04 May 2011 00:32:02 +0000 Original-Received: (at 8611) by debbugs.gnu.org; 4 May 2011 00:31:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHQ04-0001Xg-Pl for submit@debbugs.gnu.org; Tue, 03 May 2011 20:31:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHQ02-0001XU-Ve for 8611@debbugs.gnu.org; Tue, 03 May 2011 20:31:31 -0400 Original-Received: from 121-249-126-200.fibertel.com.ar ([200.126.249.121]:2443 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QHPzw-0007Ce-AG; Tue, 03 May 2011 20:31:24 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id BDC65662FC; Tue, 3 May 2011 21:31:21 -0300 (ART) In-Reply-To: <4DC0491D.7090404@cs.ucla.edu> (Paul Eggert's message of "Tue, 03 May 2011 11:27:41 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 03 May 2011 20:32:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46175 Archived-At: > If Emacs Lisp treats too-large integers as floating point when > reading, then its arithmetic should be consistent with this. In the > long run perhaps it'd be better for Emacs Lisp to use bignums, but > until then, consistent use of floating point is a better substitute > than wraparound. I'm not convinced that auto-switching to floats is a good idea. Using floats has only been introduced in order to handle things like file sizes larger than 4GB, i.e. the int-to-float conversion currently only ever happens for values that come from some C function. Until now the current inconsistency hasn't seemed to be a source of real problems, so I'd rather leave it as is. If/when we bump into a real problem due to it, we'll then see what needs to be done. Stefan