From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Making --with-wide-int the default Date: Wed, 18 Nov 2015 18:10:54 +0100 Message-ID: <87mvub6xnl.fsf@fencepost.gnu.org> References: <83oafz70im.fsf@gnu.org> <5620AF43.4050401@cs.ucla.edu> <83k2qn6xfm.fsf@gnu.org> <5620B4FA.1000804@cs.ucla.edu> <83wptojs1r.fsf@gnu.org> <56444C66.8050506@gmx.at> <83r3jugx8g.fsf@gnu.org> <87io56nu0a.fsf@fencepost.gnu.org> <83lha1dl87.fsf@gnu.org> <871tbrmeu3.fsf@fencepost.gnu.org> <564A63FB.7040209@cs.ucla.edu> <564AC9EA.5060200@cs.ucla.edu> <22090.61048.541688.443882@a1i15.kph.uni-mainz.de> <564B750E.4050305@cs.ucla.edu> <22091.36569.731568.915025@a1i15.kph.uni-mainz.de> <874mgj9sl1.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447868214 21236 80.91.229.3 (18 Nov 2015 17:36:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2015 17:36:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 18:36:54 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 1Zz6f2-0007PJ-Pr for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2015 18:36:48 +0100 Original-Received: from localhost ([::1]:37259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zz6f2-0007I9-6I for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2015 12:36:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zz6ey-0007I4-SR for emacs-devel@gnu.org; Wed, 18 Nov 2015 12:36:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zz6eu-0005bb-Qx for emacs-devel@gnu.org; Wed, 18 Nov 2015 12:36:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zz6eu-0005bX-No; Wed, 18 Nov 2015 12:36:40 -0500 Original-Received: from localhost ([127.0.0.1]:47121 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1Zz6eu-0002dp-14; Wed, 18 Nov 2015 12:36:40 -0500 Original-Received: by lola (Postfix, from userid 1000) id 16978DF5F6; Wed, 18 Nov 2015 18:10:54 +0100 (CET) In-Reply-To: <874mgj9sl1.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 18 Nov 2015 17:32:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:194727 Archived-At: Achim Gratz writes: > Ulrich Mueller writes: >> I still think that --without-wide-int is the more reasonable default. > > I beg to differ. > >> Users who need those big buffers or files can easily flip the option. > > That's not a good argument to base that decision on anyway. The > trigger for making that switch on all my old 32bit machines was that > you can't represent an awful lot of dates on any modern system > otherwise. Huh? current-time is a built-in function in =E2=80=98C source code=E2=80=99. (current-time) Return the current time, as the number of seconds since 1970-01-01 00:00:00. The time is returned as a list of integers (HIGH LOW USEC PSEC). HIGH has the most significant bits of the seconds, while LOW has the least significant 16 bits. USEC and PSEC are the microsecond and picosecond counts. [back] float-time is a built-in function in =E2=80=98C source code=E2=80=99. (float-time &optional SPECIFIED-TIME) Return the current time, as a float number of seconds since the epoch. If SPECIFIED-TIME is given, it is the time to convert to float instead of the current time. The argument should have the form (HIGH LOW) or (HIGH LOW USEC) or (HIGH LOW USEC PSEC). Thus, you can use times from =E2=80=98current-time=E2=80=99 and from =E2=80=98fil= e-attributes=E2=80=99. SPECIFIED-TIME can also have the form (HIGH . LOW), but this is considered obsolete. WARNING: Since the result is floating point, it may not be exact. If precise time stamps are required, use either =E2=80=98current-time=E2=80= =99, or (if you need time as a string) =E2=80=98format-time-string=E2=80=99. [back] > So the decision should really be based on what size time_t is, IMHO. I don't see the point since all time representations of Emacs are long established in a form that works fine with 24 bits of precision. So time_t is a "solved problem" at the current point of time. I don't see that tampering with it makes any sense before Emacs gains arbitrary precision integers: it seems pointless to tie time manipulations to some particular machine precision. --=20 David Kastrup