unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: <tomas@tuxteam.de>
Cc: Achim Gratz <Stromeko@nexgo.de>, emacs-devel@gnu.org
Subject: [OFFTOPIC] Re: Represent NTP's origin time
Date: Sat, 17 Apr 2021 12:54:59 -0400	[thread overview]
Message-ID: <jwvk0p0anpd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20210417152736.GA3748@tuxteam.de> (tomas@tuxteam.de's message of "Sat, 17 Apr 2021 17:27:36 +0200")

>> The support for 64bit time_t on 32bit platforms is quite old by now
>> actually, but it hasn't seen as much uptake as initially envisioned for
>> whatever reasons.  So in effect those platforms have announced their EOL
>> and you should move off them.

IIUC the issue is that the ripple effects of the change are non-trivial:
lots and lots of APIs include a time_t somewhere (where recompilation
leads to an incompatible ABI).  So changing time_t ends up requiring
recompiling (or, from the users's PoV upgrading) lots and lots of
packages, plus a lot of work to figure out which packages need
recompiling and which don't.  So the alternative of making a completely
new port is not much worse (implies more recompilation, admittedly, but
completely avoids the need to figure out which packages need
recompilation).

[ IIUC for i386 the plan for Debian is indeed to hope that the port will
  die before the 32bit limit becomes really unbearable.  Not sure what
  will happen with the ports for smaller systems where the move from
  32bit to 64bit is much younger (e.g. armhf).  ]

>> > The *BSDs and Linux (beyond kernel 5.6ish) do support 64 bit time_t
>> > in their 32 bit variants: perhaps this is an orientation.
>> I have no 32bit system left that can run a modern enough Linux kernel
>> and doesn't also support 64bit, so once I update those will not be 32bit
>> anymore.

FWIW, I use an amd64 kernel with a i386 Debian install on most of my machines.

> (I'd bet that Stefan's hardware is still 32 bit :)

I do still own several machines with a 32bit-only CPU:
- two armhf SBCs (both using the Allwinner A20 CPU) which I use as
  always-on servers.
- my old Thinkpad X30, which I use as "PDF to VGA adapter" when I teach.
- an old Thinkpad X60 which was supposed to replace the X30 but which I end up
  not using because the X30 still works well enough.
- my DSL modem/router (running a `mips` port of OpenWRT; a rare big-endian machine ;-)
- my smartphone
- my tablet

Admittedly, I don't use Debian on the last 3.

I also own 3 more machines which had a 32bit-only CPU (Core Duo)
originally but in which I retrofitted Core 2 Duos.

I tried using an amd64 Debian install on those machines that are limited
to 3GB of RAM and found that the increased memory pressure was
sufficiently noticeable that I decided to stick to i386.

> So basically it reduces to whether the Emacs project wants to
> support 32 bit systems (currently, the answer seems to be "yes")

Quite.

> and what to do about time_t when yes.

I don't think there's any need for Emacs to make any special effort in
this respect.


        Stefan




  parent reply	other threads:[~2021-04-17 16:54 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15  4:00 Represent NTP's origin time Stefan Monnier
2021-04-15  8:06 ` Andreas Schwab
2021-04-15  8:22   ` Gregory Heytings
2021-04-15  8:27 ` Ulrich Mueller
2021-04-15  8:30   ` Eli Zaretskii
2021-04-15 12:40   ` Stefan Monnier
2021-04-15 12:56     ` Andreas Schwab
2021-04-15 13:39       ` Stefan Monnier
2021-04-15 13:41     ` Ulrich Mueller
2021-04-15 13:44       ` Stefan Monnier
2021-04-15 14:06     ` Gregory Heytings
2021-04-15 14:51       ` Stefan Monnier
2021-04-15 19:12 ` Achim Gratz
2021-04-16  7:06   ` tomas
2021-04-17  3:53   ` Richard Stallman
2021-04-17  7:30     ` tomas
2021-04-17 13:44   ` Achim Gratz
2021-04-17 14:09     ` tomas
2021-04-17 14:23       ` Stefan Monnier
2021-04-17 14:55       ` Achim Gratz
2021-04-17 15:27         ` tomas
2021-04-17 16:20           ` Achim Gratz
2021-04-17 16:54           ` Stefan Monnier [this message]
2021-04-17 20:00             ` [OFFTOPIC] " tomas
2021-04-17 20:31               ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk0p0anpd.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-devel@gnu.org \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).