From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Buffer size limitation in insdel.c Date: Sat, 25 Sep 2010 12:00:27 +0200 Message-ID: <83aan6rvlw.fsf@gnu.org> References: <834odivv7v.fsf@gnu.org> <83r5gkvqpf.fsf@gnu.org> <834odftdvy.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1285408855 28426 80.91.229.12 (25 Sep 2010 10:00:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Sep 2010 10:00:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 25 12:00:54 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OzRYl-000782-OU for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 12:00:48 +0200 Original-Received: from localhost ([127.0.0.1]:56071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzRYk-0007Gd-Bj for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 06:00:46 -0400 Original-Received: from [140.186.70.92] (port=35370 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzRYW-0007E5-TI for emacs-devel@gnu.org; Sat, 25 Sep 2010 06:00:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzRYR-000514-5C for emacs-devel@gnu.org; Sat, 25 Sep 2010 06:00:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:49556) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzRYQ-00050m-Tr; Sat, 25 Sep 2010 06:00:27 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L9A00500RP4PF00@a-mtaout22.012.net.il>; Sat, 25 Sep 2010 12:00:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.203.3]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L9A005L8RSKFI30@a-mtaout22.012.net.il>; Sat, 25 Sep 2010 12:00:21 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130835 Archived-At: > From: Richard Stallman > CC: emacs-devel@gnu.org > Date: Sat, 25 Sep 2010 05:40:39 -0400 > > The reason for this code is that many places use an int to hold buffer > positions. All these places are bugs; they should use EMACS_INT > instead. This code hides those bugs. > > I'd say it prevents them from really being bugs. Such measures are appropriate for a released version, not for a development version. In development, you don't sweep bugs under the carpet. You let them crash the program, and then you debug them. > I doubt your physical memory will support very many 2-gig strings. On my daytime job, I work with a server running RH GNU/Linux. That server is a 64-bit machine with 14GB of physical memory (plus the appropriate amount of swap); it routinely produces log files between 2GB and 5GB. It is part of my job to browse those logs to diagnose problems. I don't like falling back on Less for browsing those logs, as it is a major annoyance when the logs were compressed into a .tar.gz or tar.bz2 archive.