From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.devel Subject: Re: current-time and GMP Date: Mon, 22 Oct 2018 12:07:31 -0300 Message-ID: <86mur6xbnw.fsf@phe.ftfl.ca> References: <90b5009f-f752-3c7d-0a01-97dc6bc9d5ac@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1540220752 8499 195.159.176.226 (22 Oct 2018 15:05:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2018 15:05:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (berkeley-unix) Cc: Stefan Monnier , Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 17:05:48 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 1gEbm6-000225-48 for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2018 17:05:46 +0200 Original-Received: from localhost ([::1]:35680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEboC-0004XG-IK for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2018 11:07:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEbo5-0004R7-Ke for emacs-devel@gnu.org; Mon, 22 Oct 2018 11:07:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEbnx-0002gy-FI for emacs-devel@gnu.org; Mon, 22 Oct 2018 11:07:49 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:37862) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEbnx-0002Yn-4w for emacs-devel@gnu.org; Mon, 22 Oct 2018 11:07:41 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id bh10-v6so5824480plb.4 for ; Mon, 22 Oct 2018 08:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=NNKINUxf+anbEv8YUNx6ETcvWuAJt94WbvCx9aD74jM=; b=LVSQ8VIwsa/8NV2m31JwCTsVRH5t9pIUmcU7cjb8UbIIxl3BRRNtd04zDlw+vrOQsi oRcg5DYIWrEuc15E+3sFIVyitFJfKXSHIJHMenE9yV6kFhudsJup8YXHIhXiqGKixnR1 WfKq3LrBFkyFSrxS6Q1h0EALtdYZshJ2PL/RA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NNKINUxf+anbEv8YUNx6ETcvWuAJt94WbvCx9aD74jM=; b=UtWjNnAzEp0CbhrFhtL0PEBsJUXUTJYx70KDs0mjlpjrb0qOLeS8ql1wmHHhSKOUjS g7beQ4KJNshQZWGOErT/vCn19rX6Uw6YCRH0nNBk1IB5cTbTqH9CSpvRPiGG09vU2EZV 66rAfBH/aP2Xc1ykHhAu3+kISlf37krl/ZrjHt8HvJFsVfjWq/oPlVByVvbvju67skHB m/MWiKr5m89YXpMVlTY7c9meM3zFdWAn5iaSbwiIZY7bUGGR7Eo1cnPmUdmuteowTIfh LgHDmt5kDEab27wP5GF2yxmN7MtUJEpvJp1po6wrr4liBRukqS2EGG1jHXs5y+PNCOe+ z8rA== X-Gm-Message-State: ABuFfohDc7Y3fNAoJxiK6BSeBj1N9ewmLedGVfCUFZJCQORMIkTbXFaL 8rxfxh8xa8dysihHysINpdDnoB37fPg= X-Google-Smtp-Source: ACcGV61zbeaT4cTcpK2JnVtbLJ4wDPI2q7Rh3+aTQ56jOOzEMGSGKpZH2sbCFtxB4JPsgW79HTIrxQ== X-Received: by 2002:a17:902:758f:: with SMTP id j15-v6mr46104358pll.160.1540220855737; Mon, 22 Oct 2018 08:07:35 -0700 (PDT) Original-Received: from phe.ftfl.ca.ftfl.ca (hlfxns017vw-142-68-132-248.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.132.248]) by smtp.gmail.com with ESMTPSA id u124-v6sm50803758pgc.0.2018.10.22.08.07.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 08:07:34 -0700 (PDT) In-Reply-To: (Paul Eggert's message of "Mon, 1 Oct 2018 18:09:29 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::62c 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:230558 Archived-At: --=-=-= Content-Type: text/plain Paul Eggert writes: > On 8/29/18 12:16 PM, Stefan Monnier wrote: >> Right, I think (INTEGER-TIMESTAMP . RESOLUTION) would be a nice >> representation. We can additionally (and temporarily) signal an >> error/warning if INTEGER-TIMESTAMP (and/or RESOLUTION) is "too small" >> (indicating a very likely use of the deprecated (HOGH . LOW) >> representation). > OK, I submitted a proposed patch to that effect as Bug#32902. I tested it on 32- and 64-bit platforms, as well as in a "future" mode where current-time etc. return the new (INTEGER-TIMESTAMP . RESOLUTION) > format. It works well for me, though of course there may be glitches I missed. Comments welcome. I began seeing entries like "obsolete timestamp with cdr 53421" in *Messages* soon after this was committed. It can be reproduced with `emacs -Q` and `list-packages'. Everything seems fine otherwise. There are a few similar reports, e.g., https://github.com/Malabarba/paradox/issues/154 although unlike me, they say they do not see the messages with `emacs -Q`. Build details ------------- GNU Emacs 27.0.50 (build 1, amd64-portbld-freebsd11.2, GTK+ Version 3.22.30) Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: 11.2-RELEASE-p4 Commit: d2a07b9 Configured using: 'configure --disable-build-details --localstatedir=/var --with-gameuser=games:games --without-libsystemd --without-mini-gmp --with-wide-int=no --with-x --enable-acl --without-cairo --without-dbus --without-gconf --with-gif --with-gnutls --without-gsettings --with-x-toolkit=gtk3 --with-jpeg --with-json --with-file-notification=kqueue --with-lcms2 --with-m17n-flt --with-imagemagick --with-mailutils --with-modules --with-sound=oss --with-libotf --with-png --with-toolkit-scroll-bars --with-rsvg --with-threads --with-tiff --with-xft --with-xim --with-xml2 --with-xpm --without-xwidgets --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/emacs/info/ --build=amd64-portbld-freebsd11.2 'CFLAGS=-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing ' 'CPPFLAGS=-isystem /usr/local/include' 'LDFLAGS= -fstack-protector -L/usr/local/lib '' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix -- Joseph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEVbCTpybDiFVxIrrVNqQMg7DW754FAlvN57NfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUACgkQNqQMg7DW 756ZrxAAquWIfhSei840uIpQFNmfVGPxs59jreZc+MjQcSW8fFqdXhTeZsh4Ubso Hhjvtqp49HUXD/3YC099omZ+hLKcq8Q+K6xdEZipb/nPU9hXPUJiPX7UJgtHfWKb 76Hw5LY9ihfRPn9pEiyDmx7O064P8tKepbFO1WFF3lLoN3fYVY691Ody2o71F6/M K410saLkTkaSwi94Ta+tRhQv2DuMT05jZ8jjg3hjLDLpJJbw0570tOUM2W/o1Dw5 nlOuE9CFUYTlHXvp1eehECF7FztOgvvhTs7ds3Ls+mCvf6j68VPJcBSIxb0vXmE7 EerydPBO0kQg59P7jZRxDycclNsL6Sht6PkHRplsdQwvEDNYrQKnHlYmsawTZJIf b+Z+OM2FrEeph6zaUdhodRUZsphqfCQKrJ+arlYQd7rIKgu6aubGJlb9+MH63hjI c+GgT5oNQSG3MuC20gtdvRHZnn6idXUPvsd816+uiWZ7v/8Lf/RYG5GzoKmBjvvF IP2orQvtqm1X/+EXNTwuYZcFizYpCJZqNZ/eymvOFTnlVuJXmHSZT/8mbzitYxg8 Wgk1Dcqb9CCsKUN25FBcZv2JSbgYZesnBGdAiOl/ZTOnYnU0mLvHSaBH8+kG9S6l D0MO6tO0HWq2BqY4zneCUf12TIaMhcOmkHrliavN4+S9YoccNkM= =NmfR -----END PGP SIGNATURE----- --=-=-=--