this post was submitted on 18 Dec 2024
1099 points (98.5% liked)

memes

10666 readers
1905 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 3 days ago

In other news, the colony Szinthar failed to update its software systems due to a lack of pregrammers and Techmancers. Signals received suggest there were no survivors.

[–] [email protected] 28 points 3 days ago (1 children)

Nah, they will do what they always do. Change some system environmental variables to move the zero date on till after they would have retired.

Nobody wants to touch the original code, it was developed in the 1970s

[–] [email protected] 11 points 3 days ago

Look at this fucking piece of shit code, oh right, it's been written by a homo sapiens sapiens. No wonder they collapsed soon after.

[–] [email protected] 25 points 3 days ago* (last edited 3 days ago) (9 children)

In this thread: mostly people that don't know how timekeeping works on computers.

This is already something that we're solving for. At this point, it's like 90% or better, ready to go.

See: https://en.m.wikipedia.org/wiki/Year_2038_problem

Time keeping, commonly, is stored as a binary number that represents how many seconds have passed since midnight (UTC) on January 1st 1970. Since the year 10,000 isn't x seconds away from epoch (1970-01-01T00:00:00Z), where x is any factor of 2 (aka 2^x, where x is any integer), any discrepancies in the use of "year" as a 4 digit number vs a 5 digit number, are entirely a display issue (front end). The thing that does the actual processing, storing and evaluation of time, gives absolutely no fucks about what "year" it is, because the current datetime is a binary number representing the seconds since epoch.

Whether that is displayed to you correctly or not, doesn't matter in the slightest. The machine will function even if you see some weird shit, like the year being 99 100 because some lazy person decided to hard code it to show "99" as the first two digits, then take the current year, subtract 9900, and display whatever was left (so it would show the year 9999 as "99", and the year 10000 as year "100") so the date becomes 99 concatenated with the last two (now three) digits left over.

I get that it's a joke, but the joke isn't based on any technical understanding of how timekeeping works in technology.

The whole W2k thing was a bunch of fear mongering horse shit. For most systems, the year would have shown as "19-100", 1900, or simply "00" (or some variant thereof).

Edit: the image in the OP is also a depiction of me reading replies. I just can't even.

[–] [email protected] 11 points 3 days ago (5 children)

You need to qualify your statement about Y2K being fear mongering. People saying all technology would stop (think planes crashing out of the sky) were clearly fear mongering or conspiracy theorists. People saying certain financial systems needed to be updated so loans didn't suddenly go from the year 1,999 to 19,100 or back to 1900 were not fear mongering. It's only because of a significant amount of work done by IT folks that we have the luxury of looking back and saying it was fear mongering.

Look at this Wikipedia page for documented errors. One in particular was at a nuclear power plant. They were testing their fix but accidentally applied the new date to the actual equipment. It caused the system to crash. It took seven hours to get back up and they had to use obsolete equipment to monitor conditions until then. Presumably if the patch wasn't applied this would happen at midnight on January 1st 2000 too.

Y2K was a real problem that needed real fixes. It just wasn't an apocalyptic scenario.

load more comments (5 replies)
[–] [email protected] 6 points 3 days ago

Y2k was not fear mongering. There were a great many systems, in industrial finance and infrastructure applications that definitely needed to be addressed. You know, the things that keep modern infrastructures running. Of course there were consumer facing companies that took advantage of it, but that was small in comparison.

It ended up not being a disaster, because it was taken seriously.

[–] [email protected] 3 points 3 days ago

... any discrepancies in the use of "year" as a 4 digit number vs a 5 digit number, are entirely a display issue (front end).

That's exactly how I read the meme. It would still require a change.

Whether that is displayed to you correctly or not, doesn't matter in the slightest. The machine will function even if you see some weird shit,

I'm not sure if this is some nihilistic stuff, or you really think this. Of course nothing actually matters. The program will still work even if the time is uint32 instead of uint64. The machine of course will still work as well. Shit, your life will go on. The earth continues to spin and this will for sure not cause the heat death of the universe. But aside from actual crashes and some functionality bugs, UI issues should be the ones you worry about the most. If your users are a bank and they need to date the contracts, and you only offer 3 digits for the year? I think you'll agree with me that if users don't like using your program, it's a useless program.

[–] [email protected] 16 points 3 days ago (5 children)

Y2K was definitely not only fear-mongering. Windows Systems did not use Unix timestamps, many embedded systems didn't either, COBOL didn't either. So your explanation isn't relevant to this problem specifically and these systems were absolutely affected by Y2K because they stored time differently. The reason we didn't have a catastrophic event was the preventative actions taken.

Nowadays you're right, there will be no Y10K problem mainly because storage is not an issue as it was in the 60s and 70s when the affected systems were designed. Back then every bit of storage was precious and therefore omitted when not necessary. Nowadays, there's no issue even for embedded systems to set aside 64 bit for timekeeping which moves the problem to 292277026596-12-04 15:30:08 UTC (with one second precision) and by then we just add another bit to double the length or are dead because the sun exploded.

load more comments (5 replies)
[–] [email protected] 17 points 3 days ago* (last edited 3 days ago) (2 children)

My brother in Christ, there's more to time than just storing it. Every datetime library I've ever used only documents formatting/parsing support up to four year digits. If they suddenly also supported five digits, I guarantee it will lead to bugs in handling existing dates, as not all date formats could still be parsed unambiguously.

It won't help you if time is stored perfectly, while none of your applications support it.

Regarding Y2K, it wasn't horse shit - thousands upon thousands of developer hours were invested to prevent these issues before they occurred. Had they not done so, a bunch of systems would have broken, because parsing time isn't just about displaying 19 or 20.

[–] [email protected] 5 points 3 days ago (4 children)

The comment you're replying to is really frustrating to me. It annoys me when people are so arrogant but also wrong. Do they live in a perfect world where nobody stores dates as ISO 8601 strings? I've seen that tons of times. Sometimes, it may even be considered the appropriate format when using stuff like JSON based formats.

load more comments (4 replies)
[–] [email protected] -1 points 3 days ago (1 children)

I would hope that these kinds of parsers are not used in critical applications that could actually lead to catastrophic events, that's definitely different to Y2K. There would be bugs, yes, but quite fixable ones.

Regarding Y2K, it wasn't horse shit - thousands upon thousands of developer hours were invested to prevent these issues before they occurred. Had they not done so, a bunch of systems would have broken, because parsing time isn't just about displaying 19 or 20.

"There's no glory in prevention". I guess it's hard to grasp nowadays, that mankind at some point actually tried to stop catastrophies from happening and succeeded

[–] [email protected] 5 points 3 days ago (1 children)

Even if such parsers aren't used directly in critical systems, they'll surely be used in the supply chains of critical systems. Your train won't randomly derail, but disruptions in the supply chain can cause repair parts not to be delivered, that kind of thing.

And you can be certain such parsers are used in almost every application dealing with datetimes that hasn't been specifically audited or secured. 99% of software is held together with duct tape.

[–] [email protected] 1 points 3 days ago (1 children)

True. But I wouldn't see this as extremely more critical than the hundreds of other issues we encounter daily in software. Tbh, I'd be glad if some of the software I have to use daily had more duct tape on it...

[–] [email protected] 4 points 3 days ago

I think you might be underestimating the potential impact.

Remember the Crowdstrike Windows BSOD? It caused billions in damages, and it's the absolute best case scenario for this kind of issue. Our potential Y10K bug has a bunch of additional issues:

  • you don't just have to patch one piece of software, but potentially all software ever written that's still in use, a bunch of which won't have active maintainers
  • hitting the bug won't necessarily cause crashes (which are easy to recognize), it can also lead to wrong behavior, which will take time to identify. Now imagine hundreds of companies hitting the bug in different environments, each with their own wrong behavior. Can you imagine the amount of continuous supply chain disruptions?
  • fixes have to be thought about and implemented per-application. There's no panacea, so it will be an incredible amount of work.

I really don't see how this scenario is comparable to anything we've faced, beyond Y2K.

load more comments (4 replies)
[–] [email protected] 5 points 3 days ago (2 children)

More of a front end issue actually, almost all time is just stored as the number of seconds since 00:00:00 Jan 1 1970.

[–] [email protected] 3 points 3 days ago

I've seen plenty of people use ISO 8601 for storage as well as display.

[–] [email protected] 4 points 3 days ago (1 children)

And it's represented as a 64 bits value, which is over 500 billions years.

[–] [email protected] 3 points 3 days ago (3 children)
[–] [email protected] 3 points 3 days ago

This is for a 32bits encoded epoch time, which will run out in 2038.

Epoch time on 64 bits will see the sun swallow Earth before it runs out.

[–] [email protected] 1 points 3 days ago (2 children)

We've still got time to fix it, and the next release of Debian will likely have a time-64 complete userland. I don't know the status of other "bedrock" distributions, but I expect that for all Linux (and BSD) systems that don't have to support a proprietary time-32 program, everything will be time-64 with nearly a decade to spare.

[–] [email protected] 1 points 3 days ago

Probably some mainframe or something lol. Always a mainframe.

[–] [email protected] 3 points 3 days ago (1 children)

Yup. Gentoo people are working on it as well. This is only a problem on 32-bit Linux too, right?

load more comments (1 replies)
[–] [email protected] 3 points 3 days ago

That's the 32 bit timestamp

[–] [email protected] 13 points 3 days ago (1 children)

Actual programmers wondering why this joke doesn't mention 65535...

[–] [email protected] 2 points 3 days ago (5 children)

Actual programmers wondering how you've never seen anyone use ISO 8601 strings as storage.

load more comments (5 replies)
[–] [email protected] -4 points 3 days ago (1 children)

"Were being short-sighted"

Lol Picard maneuver. Pretty sure your opinion wasn't asked for.

load more comments (1 replies)
[–] [email protected] 25 points 4 days ago* (last edited 4 days ago)

oh just start at 0000 again, signate that as 10,000. Files didn't start until like 1979 anyways, and there can't be many left, and even if it is a problem, now you have 2000 years to not worry about it.

[–] [email protected] 8 points 4 days ago (1 children)

I wonder how Voyagers' code represents time

[–] [email protected] 6 points 4 days ago

It just counts up, according to this answer.

[–] [email protected] 23 points 4 days ago

We’re being short-sighted

Tell that to the billionaires speed-running terraforming this planet into a barren wasteland.

[–] [email protected] 7 points 4 days ago* (last edited 4 days ago)

The Butlerian jihad will have happened by then.

load more comments
view more: ‹ prev next ›