From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55163: 29.0.50; master 4a1f69ebca (TICKS . HZ) for current-time broke lsp-mode Date: Fri, 29 Apr 2022 22:53:31 +0300 Message-ID: <83ee1facp0.fsf@gnu.org> References: <87sfpxxyvb.fsf@3-191.divsi.unimi.it> <87zgk5jtm6.fsf@gnus.org> <87o80kj2q1.fsf@gnus.org> <878rroi5a8.fsf@gnus.org> <83y1zo9n3o.fsf@gnu.org> <87y1zof944.fsf@gnus.org> <83wnf89mcj.fsf@gnu.org> <0a39a220-6298-8ed4-87bd-414702cd9b57@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34564"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, v.pupillo@gmail.com, 55163@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 29 21:54:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkWgs-0008mw-DP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Apr 2022 21:54:10 +0200 Original-Received: from localhost ([::1]:50344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkWgr-0002aC-3J for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Apr 2022 15:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkWgk-0002Zo-2z for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2022 15:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33261) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkWgj-0004Tq-Q7 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2022 15:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkWgj-0005Vz-MB for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2022 15:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2022 19:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55163 X-GNU-PR-Package: emacs Original-Received: via spool by 55163-submit@debbugs.gnu.org id=B55163.165126201821168 (code B ref 55163); Fri, 29 Apr 2022 19:54:01 +0000 Original-Received: (at 55163) by debbugs.gnu.org; 29 Apr 2022 19:53:38 +0000 Original-Received: from localhost ([127.0.0.1]:55391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkWgL-0005VM-Q3 for submit@debbugs.gnu.org; Fri, 29 Apr 2022 15:53:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkWgJ-0005V8-MI for 55163@debbugs.gnu.org; Fri, 29 Apr 2022 15:53:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkWgD-0004TI-Jm; Fri, 29 Apr 2022 15:53:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=StMdUB9hltS/4abgG6IHD+h91wHpYr0X4+GuufEZAVA=; b=jZiumCGKJ4Aq +GkScm54C7f7BRpaUnAM7zIM7GpjPMrwatTfLyKnHjs4EmPoGyk5sLEUAT81UbSe6FGqUEmywXFnV hMXThMGMt85xor2nsTWkpGp3OZnkgg8mPYWGo6LmGpPc8njAYJ8OdhKmnMY0lXNnd9BRzcxfWb/lJ SAvCfh8/HtI6tTxu41ZAaMkxedChfouTvj2Yg6VPbahS28NH/lFNQvWp/i1G1MB30knGs/E0h123Z 6ScbTGqDoZ2ajKDQ4U4JBZWs7m1sMxNpKPAuBk31HKxv91BOg/c3bV2Lri8UNuEnRt8/wHxKwQRPY BaQdU6KYwu3LbPP4I+AkDw==; Original-Received: from [87.69.77.57] (port=3339 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkWgD-00005V-88; Fri, 29 Apr 2022 15:53:29 -0400 In-Reply-To: <0a39a220-6298-8ed4-87bd-414702cd9b57@cs.ucla.edu> (message from Paul Eggert on Fri, 29 Apr 2022 12:38:19 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230987 Archived-At: > Date: Fri, 29 Apr 2022 12:38:19 -0700 > Cc: 55163@debbugs.gnu.org, v.pupillo@gmail.com > From: Paul Eggert > > On 4/29/22 04:10, Eli Zaretskii wrote: > > Then why again would we want to come up with new functions for > > handling timestamps? just because the existing ones have names that > > make discovery difficult, or are there other reasons? > > I think Lars is saying both, though the other reasons are more important. > > Lars makes a good point that common idioms like > (file-attribute-modification-time (file-attributes F)) generate > unnecessary garbage. And it's more than just GC overhead: at a lower > level, 'statx' on GNU/Linux can be significantly more efficient than > plain 'stat' when retrieving just a subset of stat info (such as, just > the file timestamp). This is (almost) unrelated to timestamps. The same case can be made about almost every individual file attribute, at least theoretically. But before we implement a separate primitive for each attribute, we should ask ourselves: what are the use cases where a Lisp program would want to use such a primitive. Taking the file's modification time as an example, are there any important use cases except determining if a file is older or newer than another? Because we already have a primitive for that.