this post was submitted on 04 Nov 2023
385 points (98.5% liked)

Programmer Humor

32453 readers
594 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
all 19 comments
sorted by: hot top controversial new old
[–] mkwarman@lemmy.mkwarman.com 114 points 1 year ago (3 children)

If we're still using JavaScript in the year 275,760 we deserve the resulting epoch collapse

[–] lorty@lemmy.ml 14 points 1 year ago

Javascript will subsume all other languages by then. Humanity won't even know that others existed, or even what it is. It'll just be called Script, the way you tell computers what to do when the AI doesn't understand your prompts correctly.

[–] Maven@lemmy.sdf.org 13 points 1 year ago

Epochalypse...

[–] _dev_null@lemmy.zxcvn.xyz 6 points 1 year ago (1 children)
[–] bjornsno@lemm.ee 1 points 1 year ago

Thanks, I love oddly comforting techno theology

[–] MystikIncarnate@lemmy.ca 33 points 1 year ago (3 children)

I'm still thinking about the 2037 problem.

[–] kvadd@lemmy.world 25 points 1 year ago (2 children)

Not to be that guy, but it is the 2038 problem for 32 bit epoch. Check this out: https://en.m.wikipedia.org/wiki/Year_2038_problem

But yeah, that's a much bigger issue.

[–] stardreamer@lemmy.blahaj.zone 19 points 1 year ago

No, the 2037 problem is fixing the Y2k38 problem in 2037.

Before that there's no problem :)

[–] MystikIncarnate@lemmy.ca 2 points 1 year ago

right, my bad.

[–] aperson@beehaw.org 4 points 1 year ago
[–] pixelscript@lemmy.ml 12 points 1 year ago* (last edited 1 year ago)

The replacement for the JavaScript Date API is on the cusp of finalization.

They just got an RFC proposal approved by the IETF for an extension to the way datetime strings should be serialized that adds support for non-Gregorian calendar systems. That seems to have been the last round of red tape holding them back. Now it's just a handful of bugfix PRs to merge and browsers can begin shipping implementations unflagged.

You can watch the progress here if you find it interesting. In the meantime, there is a polyfill out now if you want to get started with it.

[–] vrighter@discuss.tchncs.de 9 points 1 year ago

so is anything in any computer

[–] mercano@lemmy.world 9 points 1 year ago (2 children)

All numbers in JS are stored as 64-bit floats, so past a certain point, precision starts to degrade.

[–] PixxlMan@lemmy.world 2 points 1 year ago

Precision always degrades