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.devel Subject: Re: sqlite3 Date: Tue, 28 Dec 2021 17:18:56 +0200 Message-ID: <83pmpglpun.fsf@gnu.org> References: <87tufmjyai.fsf@gnus.org> <831r288vne.fsf@gnu.org> <83zgow7fpi.fsf@gnu.org> <83y24g7dui.fsf@gnu.org> <8735mnr5cb.fsf@gnus.org> <83bl19zwwy.fsf@gnu.org> <87bl18g7r3.fsf@gnus.org> <83ee64ych1.fsf@gnu.org> <83o853pydo.fsf@gnu.org> <875yrbzjc5.fsf@gnus.org> <8335mfpox7.fsf@gnu.org> <83pmpjo79j.fsf@gnu.org> <83ilvbo2ab.fsf@gnu.org> <83h7avo1l6.fsf@gnu.org> <87o852cl7z.fsf@gnus.org> <83r19ym6vv.fsf@gnu.org> <87k0fqaxy8.fsf@gnus.org> <83o852m661.fsf@gnu.org> <83lf06m1ll.fsf@gnu.org> <87v8z99p1s.fsf@gnus.org> <83wnjolw37.fsf@gnu.org> <871r1waj1d.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31079"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 28 16:21:14 2021 Return-path: Envelope-to: ged-emacs-devel@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 1n2EHq-0007qd-C0 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Dec 2021 16:21:14 +0100 Original-Received: from localhost ([::1]:53166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2EHo-00009A-Ks for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Dec 2021 10:21:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2EFe-00073T-4o for emacs-devel@gnu.org; Tue, 28 Dec 2021 10:18:58 -0500 Original-Received: from [2001:470:142:3::e] (port=39124 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2EFd-0001A5-1S; Tue, 28 Dec 2021 10:18:57 -0500 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=dm4UGMuZYCJSQHdwa+MPe0s2u2yk/RATCrXKdGG2rbg=; b=psQWhoa9Z1HO DpbjBTTmNygkjfygSQvy1Cye2C1JABnciEoDYtOlqhgZX0AbNem++/rJDk0pgyEfMVRKjaUsW8Wk/ dObOvDR+o+LJw3TTP+f7ZXqQjM8smRv5KtXXh4KuDJmYPJJaIzSJ0ba2dG4DvGBskqZYQfN+J57Bz DXffd/6SvTfNboMXfN0toq8+/p96rkoxt1J9tdeeoAYq/ekfxgELCDhLY3UXO2aZdfsG2WYAXgILS I+BNTego7ubLnCuTToKSUk3B92//nuwfzfPUT7mHdqSaa6Z/oDA6FgdGPGPDgiFnSO5wrsnrWi3iF ocHxqNclO2uuy7Wa38YKhw==; Original-Received: from [87.69.77.57] (port=1475 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 1n2EFc-0000bK-VU; Tue, 28 Dec 2021 10:18:57 -0500 In-Reply-To: <871r1waj1d.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 28 Dec 2021 15:41:34 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283511 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 28 Dec 2021 15:41:34 +0100 > > >> Yes, that would explain what we're seeing. Is there any chance the w32 > >> stat emulation could be fixed to support sub-second resolutions like it > >> does on other systems? > > > > It could, but it's not a trivial job, and doing it just for this use > > case could be overkill. > > Well, it wouldn't be just for this. Sub-second file resolution is > generally useful. OK, I'll add that to my todo, for some rainy day. > But I'm not very enthusiastic about having a synchronised multisession > variable access reading and parsing a file each time, so I'm leaning > towards just keeping the code as is and adjusting the test on Windows > (and other systems that don't have sub-second resolution). Synchronised > multisession variables offer no guarantees -- having two Emacsen > updating the variable at the same time is inherently racy, and we're > doing a best effort kind of thing. > > So this will be slightly less spiffy on Windows, and that's fine. That'd be fine by me, I think updating the same value simultaneously from several Emacsen is a pretty corner use case anyway. We can delay the solution until someone really needs that, and explains why. We do need to say something about the races in the docs, I think.