From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Making --with-wide-int the default Date: Sat, 17 Oct 2015 00:53:51 +0900 Message-ID: <22049.7567.599998.682681@turnbull.sk.tsukuba.ac.jp> References: <83r3trulse.fsf@gnu.org> <54E0D7E0.305@87.69.4.28> <83h9unukbg.fsf@gnu.org> <54E0DEF8.7020901@dancol> <83egpruiyp.fsf@gnu.org> <54E0FF93.2000104@dancol.org> <5610ED13.1010406@dancol.org> <56117F37.9060808@dancol.org> <83oag087gs.fsf@gnu.org> <83oafz70im.fsf@gnu.org> <5620AF43.4050401@cs.ucla.edu> <8737xbusz1.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1445010870 31745 80.91.229.3 (16 Oct 2015 15:54:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 15:54:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 16 17:54:30 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zn7Kw-0000Wv-9f for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 17:54:30 +0200 Original-Received: from localhost ([::1]:54589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7Kv-00064R-IH for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 11:54:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7KW-00064L-Jv for emacs-devel@gnu.org; Fri, 16 Oct 2015 11:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn7KV-0007Eo-Pp for emacs-devel@gnu.org; Fri, 16 Oct 2015 11:54:04 -0400 Original-Received: from turnbull.sk.tsukuba.ac.jp ([130.158.96.25]:52468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7KP-0007BT-Dj; Fri, 16 Oct 2015 11:53:57 -0400 Original-Received: from steve by turnbull.sk.tsukuba.ac.jp with local (Exim 4.86) (envelope-from ) id 1Zn7KJ-0000N8-NO; Sat, 17 Oct 2015 00:53:51 +0900 In-Reply-To: <8737xbusz1.fsf@fencepost.gnu.org> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta34) "kale" 698a9aa86de4 XEmacs Lucid (x86_64-apple-darwin14.5.0) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: steve@turnbull.sk.tsukuba.ac.jp X-SA-Exim-Scanned: No (on turnbull.sk.tsukuba.ac.jp); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 130.158.96.25 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191771 Archived-At: David Kastrup writes: > Instead of going to 64-bit unilaterally it would seem to make more > sense to me to degrade gracefully into gmp. GUILE does that, I > think that XEmacs or SXEmacs can do it, XEmacs can't handle greater than 1 GB buffers on a 32-bit machine. Yes, when bignums are enabled Lisp arithmetic will automatically overflow to bignums (and bigfloats), but internal accounting for text objects uses EMACS_INTs, not Lisp integers. At one time there were several users who preferred XEmacs to Emacs because they were routinely manipulating 512MB+ buffers and files. If you just want big Lisp integers, yes, bignums are nice. To be honest, I don't think it's a good idea to use bignums for internal indexes into text objects. 1 exabyte buffers should be enough to keep even the full archives of emacs-devel with room to spare for a while.