issue205:micro-ci_micro-la
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue205:micro-ci_micro-la [2024/06/03 07:11] – d52fr | issue205:micro-ci_micro-la [2024/06/12 15:16] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
Well, now it is next month, and that’s what we’ll talk about. The 2038 problem. But you might not remember Y2K and what it meant to people and the computer industry, so we’ll hop into the Tardis and zip back to 1999 for some perspective first.** | Well, now it is next month, and that’s what we’ll talk about. The 2038 problem. But you might not remember Y2K and what it meant to people and the computer industry, so we’ll hop into the Tardis and zip back to 1999 for some perspective first.** | ||
+ | |||
+ | Le problème de 2038 | ||
+ | |||
+ | Bonjour à tous les êtres vivants sensibles. Venu de quelque part dans le temps et l' | ||
+ | |||
+ | À la fin de l' | ||
+ | |||
+ | « Si vous êtes assez âgé pour vous souvenir du passage à l'an 2000, vous serez heureux ou effrayé d' | ||
+ | |||
+ | Eh bien, nous sommes le mois prochain, et c'est de cela que nous allons parler, du problème de 2038. Mais vous ne vous souvenez peut-être pas du passage à l'an 2000 et de ce qu'il a signifié pour les gens et l' | ||
Ligne 15: | Ligne 25: | ||
Once computers started to become popular and part of everyday life, this habit continued. In databases and applications around the world, the habit was maintained. Part of the reason for this was that the cost of memory per kilobyte on disk, ram, and tape (yes, tape) at one point, was over US $100. Think of how much Ram and Hard drive space you have on your home or office computer and then multiply that by 100! When storing date information, | Once computers started to become popular and part of everyday life, this habit continued. In databases and applications around the world, the habit was maintained. Part of the reason for this was that the cost of memory per kilobyte on disk, ram, and tape (yes, tape) at one point, was over US $100. Think of how much Ram and Hard drive space you have on your home or office computer and then multiply that by 100! When storing date information, | ||
+ | |||
+ | De quoi s' | ||
+ | |||
+ | Au 20e siècle, lorsqu' | ||
+ | |||
+ | Lorsque les ordinateurs ont commencé à devenir populaires et à faire partie de la vie quotidienne, | ||
+ | |||
**Somewhere around the early 1980s, it dawned on someone just how big a problem this could be. Storing someone’s date-of-birth could show up as 53, but would that be 1853, 1953 or 2653? No way to know. And that was the problem. Anything that stored a date on any kind of computer or computer media, could be a very big problem. So not just date-of-birth but loan payments, school records, driver permits and so on were immediately suspect and the subject of potential problems. However, most of those people in charge of things said “What’s the rush? It’s a long time until the year 2000! We’ll take care of it long before it becomes a problem.” | **Somewhere around the early 1980s, it dawned on someone just how big a problem this could be. Storing someone’s date-of-birth could show up as 53, but would that be 1853, 1953 or 2653? No way to know. And that was the problem. Anything that stored a date on any kind of computer or computer media, could be a very big problem. So not just date-of-birth but loan payments, school records, driver permits and so on were immediately suspect and the subject of potential problems. However, most of those people in charge of things said “What’s the rush? It’s a long time until the year 2000! We’ll take care of it long before it becomes a problem.” | ||
Ligne 21: | Ligne 38: | ||
Luckily, there were only a handful of situations that showed up. However, I remember sitting in Central Texas on December 31, 1999, on emergency call with the company I work for, in Colorado, waiting for the phone to ring with my boss saying that there was a problem with our software because we missed something somewhere that caused our software package to show the date as January 1, 1900.** | Luckily, there were only a handful of situations that showed up. However, I remember sitting in Central Texas on December 31, 1999, on emergency call with the company I work for, in Colorado, waiting for the phone to ring with my boss saying that there was a problem with our software because we missed something somewhere that caused our software package to show the date as January 1, 1900.** | ||
+ | |||
+ | Au début des années 1980, quelqu' | ||
+ | |||
+ | Lorsque décembre 1999 est arrivé, la plupart des entreprises s' | ||
+ | |||
+ | Heureusement, | ||
+ | |||
**What is the 2038 problem? | **What is the 2038 problem? | ||
Ligne 27: | Ligne 51: | ||
With 14 years before this could be a problem, many of the systems that would possibly be affected have already been fixed. The simple fix is not to use a signed integer to hold the number of seconds, but to use a long integer. Operating systems, mainframes, even home computers, are already fixed to avoid this issue.** | With 14 years before this could be a problem, many of the systems that would possibly be affected have already been fixed. The simple fix is not to use a signed integer to hold the number of seconds, but to use a long integer. Operating systems, mainframes, even home computers, are already fixed to avoid this issue.** | ||
+ | |||
+ | Qu' | ||
+ | |||
+ | Pour citer Wikipedia, « Le problème existe dans les systèmes qui mesurent le temps Unix - le nombre de secondes écoulées depuis l' | ||
+ | |||
+ | Quatorze ans avant que le problème ne se pose, la plupart des systèmes susceptibles d' | ||
+ | |||
**MicroPython and the 2038 problem | **MicroPython and the 2038 problem | ||
Ligne 42: | Ligne 73: | ||
The output in the REPL is shown on the right.** | The output in the REPL is shown on the right.** | ||
+ | |||
+ | MicroPython et le problème 2038 | ||
+ | |||
+ | Alors que Python et Linux (et je suppose Mac et Windows) se sont tous préparés au problème de 2038, MicroPython (au moins jusqu' | ||
+ | |||
+ | L' | ||
+ | |||
+ | Le code | ||
+ | |||
+ | Voir ci-dessus. | ||
+ | |||
+ | |||
+ | La sortie | ||
+ | |||
+ | La sortie dans le REPL est montrée à droite. | ||
+ | |||
**I even put in an issue report on https:// | **I even put in an issue report on https:// | ||
Ligne 50: | Ligne 97: | ||
Until next time, as always; stay safe, healthy, positive and creative!** | Until next time, as always; stay safe, healthy, positive and creative!** | ||
+ | |||
+ | J'ai même rédigé un rapport sur https:// | ||
+ | |||
+ | Conclusion | ||
+ | |||
+ | Bien que je pense en grande partie qu' | ||
+ | |||
+ | Jusqu' | ||
issue205/micro-ci_micro-la.1717391513.txt.gz · Dernière modification : 2024/06/03 07:11 de d52fr