From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Support for sub-second time in decoded time Date: Mon, 29 Jul 2019 16:59:01 +0200 Message-ID: References: <83tvb4kjgo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211468"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 29 17:06:22 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hs7EE-000sjR-Dq for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 17:06:22 +0200 Original-Received: from localhost ([::1]:53060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7ED-0000Ci-FZ for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 11:06:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37896) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs77H-0004Be-Fq for emacs-devel@gnu.org; Mon, 29 Jul 2019 10:59:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs77E-0004cC-8S for emacs-devel@gnu.org; Mon, 29 Jul 2019 10:59:10 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:39470) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs77D-0004ZT-SX; Mon, 29 Jul 2019 10:59:08 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hs778-00035y-4C; Mon, 29 Jul 2019 16:59:05 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEX/99iFfG3+8dL+9tf/ /N7+9db/+doFNWQJAAACYUlEQVQ4jVWUTY6jMBCFS7HK64ZR74ORe20Nck5gsa5gOWtLIb7/EeaV oTPdhUKQP9evH5Dr5t1/8xw358gvptlghOXBOYih1tZW84W81GoJIOeFuMittZTa7UU+VLIUSxHs zvEhbU9ptY1mqdZiXU0MU4BHW+2qoSgvukx6Q459h0eiK0WKGUsRVMpCtScBCFSPzYXVLQDs657I Ez2PDIaAsG2HB8BsqYfKheMCYMnua0oIBaAF5VINxRgEICmYbX3pfimWnkZKBmgKvK109CDEVMjU BoCqZiJzdEdWgZbbenKi5ajKuYsrTPYEV0KZWtXmhmnMptp2VpVzQNOxTAPMa6SzqpiR3MRt6CZv cH2iD5HoDoDh7idAHVkyI9IIOKLatKY+K7OIsEaSch/mcERK5HTYWXpqgPHxDTzGi9PWosY7fm+P MnOIxQCMRXPY/e1RII6CHJ8XN30D7dxEgyx/sZndffg8IyWSxosC5JhwfeiJd/BVESjHRcE4DFfS CXbQLgCGp6Nzn08XhHqVKPZ5P8Anxn6AB07WQKQX3T4MH9ae5Qq9cDq15mnwwXlj3w1SP0+ibfoT 6NBhBwvWoOVKgfUwQd59NAt5CAmTgiP3ilC2WngQxHlYFyjkU/DicIQ2RbCKG2SFK/WdxnA0oi64 QT2t3nZVO0tgxiT19EtEwRDBjeaAlAvzIqo8hshq7S+KpxfjndV3U5MY4vbk4jxAhNoKS9aSCSLD 8PoHQGW7YcA+dFAKpNzBpn+ueI9gOZ7yBvj+gDhfgiYt3m0/gfNQxYZvzYanX0Bt+/H8C/y0f/36 52z51Ac6AAAAAElFTkSuQmCC In-Reply-To: <83tvb4kjgo.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Jul 2019 17:23:51 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:239002 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Date: Mon, 29 Jul 2019 11:48:02 +0200 >> >> `current-time' returns its data as (HIGH LOW USEC PSEC), but now that we >> have bignum support, perhaps we don't need to do it this way. What >> about just having a field in decoded times that's the fraction of a >> second? > > That'd be backward-incompatible, no? It's an extra field in the structure returned from `decode-time'. There may be callers that rely on it being exactly 8 elements... But I don't think that's very likely? Hm... I guess I could see people saying stuff like (destructuring-bind (....) (decode-time) ) and that would break, but on the other hand, you don't see many people using those constructs in Emacs Lisp code. We could add an optional parameter to `decode-time' INCLUDE-FRACTIONAL-SECONDS and only include the 9th element then. But I think we'd then basically would want to change all callers in Emacs to include that parameter. That's a safer option, though. Either is fine with me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no