From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: Re: Represent NTP's origin time Date: Sat, 17 Apr 2021 18:20:53 +0200 Organization: Linux Private Site Message-ID: <87pmysyja2.fsf@Rainer.invalid> References: <87o8efcqfh.fsf@Rainer.invalid> <8735vpyqir.fsf@Rainer.invalid> <20210417140951.GB726@tuxteam.de> <87tuo5x8od.fsf@Rainer.invalid> <20210417152736.GA3748@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:7vscuc0oPoBty7VRbF+QqbARIsk= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 17 18:22:44 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 1lXniV-0008br-Es for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Apr 2021 18:22:43 +0200 Original-Received: from localhost ([::1]:39982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXniU-0004iy-HC for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Apr 2021 12:22:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXnh0-0003wx-2y for emacs-devel@gnu.org; Sat, 17 Apr 2021 12:21:10 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:52258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXngs-000542-H6 for emacs-devel@gnu.org; Sat, 17 Apr 2021 12:21:09 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lXngp-0006bp-31 for emacs-devel@gnu.org; Sat, 17 Apr 2021 18:20:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268132 Archived-At: tomas@tuxteam.de writes: > Again. The fact that *you* haven't doesn't mean that others are > in the same boat. A maintainer's job involves exactly that kind > of deliberation :) You are tilting at windmills. > (I'd bet that Stefan's hardware is still 32 bit :) The hardware is probably not, but it wasn't explicitly mentioned. The hardware isn't the issue here anyway. The implementation of time_t is, as was clear from the original posting and later confirmed to be the case. > So basically it reduces to whether the Emacs project wants to > support 32 bit systems (currently, the answer seems to be "yes") > and what to do about time_t when yes. No, that was not the question Stefan originally asked, but one that you brought into the discussion. To be clear, I have not and I will not offer an opinion on that particular topic in this thread. The question of Stefan was how to represent the NTP epoch (or "origin time") and the answer was and still is you can't do that on a system that has 32bit time_t of any kind. The question of whether you'd want to support Emacs on such systems is immaterial to both the question and the answer. The workaround that was mentioned multiple times now works for conversion between NTP to UNIX representation (both ways) without the need to have an explicit representation of the NTP epoch, with the disadvantage that it only works where those two representations overlap (i.e you lose about two years on either end). But that is the answer to an extrapolation of the original question which Stefan revealed later as the actual problem he wanted to solve. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada