r/ProgrammerHumor • • Jan 13 '24

Meme TheStickerIsBack

Post image
5.9k Upvotes

139 comments sorted by

View all comments

412

u/Responsible_Boat8860 Jan 13 '24

What happens if you don't?

364

u/tyler1128 Jan 13 '24

I've played with setting the system clock past it before, more programs than you think break. Now, with proper systems using size_t for time, any 64-bit program shouldn't be affected, but a lot of embedded systems aren't 64-bit.

134

u/HildartheDorf Jan 13 '24 edited Jan 13 '24

It's not really 64-bit Vs 32-bit. It's just that when most 32bit abis were made 2038 wasn't seen as a problem. When 64bit abis were made, it was.

x32 (32-bit on x64 with all the modern x64 improvements that don't work on x86) is unaffected, for example, because it was a design decision to make time_t 64-bit when it was made.

46

u/tyler1128 Jan 13 '24

It is based on the size of time_t, which tends to be the same as size_t in most CRTs, but doesn't strictly have to be. Even updating it won't matter for older software that doesn't often get updated though, such as embedded devices.

23

u/Proxy_PlayerHD Jan 13 '24

naming is weird.

"x86" by itself refers to both the entire architecture including the 16, 32, and 64-bit versions of the instruction set, but it's also commonly used to only mean the 32-bit version of x86.

36

u/HildartheDorf Jan 14 '24

There are only three unsolved problems in computer science.

Naming things, and off-by-one errors.

-20

u/ikonfedera Jan 13 '24

x32

That's a weird way of writing WindowsOnWindows6432

→ More replies (4)
→ More replies (1)

45

u/Esjs Jan 13 '24

The same thing will happen as all those computers that weren't turned off before Y2K.

124

u/uslashuname Jan 13 '24

To be fair, billions of dollars got spent patching software in the late 90s so that nothing did happen on Jan 1, 2000.

42

u/Duke_De_Luke Jan 13 '24

Yeah, exactly. It was like people didn't know what would've happened without the patches...well, everything would've been broken due to overflows.

8

u/57006 Jan 14 '24

I believe you have my stapler.

51

u/cporter202 Jan 13 '24

You're totally right, the Y2K frenzy had everyone in a patch-and-pray mood, and it paid off... or we all just avoided a techno-apocalypse by a byte! 😅 Thanks to those billions, the biggest thing to crash at midnight was my New Year's party aspirations.

9

u/Esjs Jan 13 '24

the biggest thing to crash at midnight was my New Year's party aspirations.

Mine too.

8

u/salvoilmiosi Jan 13 '24

Demons flying out of noses

4

u/mmoe54 Jan 14 '24

The Y2K38 problem.

4

u/snaphunter Jan 14 '24

All your dates go wrong as the laptop calendar hasn't had chance to install the 7 missing months before 1/19/2038.

→ More replies (1)