Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on dormi.zone

48 replies

danc4498reply
lemmy.world

They’ll work on a solution in the year 275,759

39

They’ll work on a solution in the year 275,759

…written in ES5, Python 2 and mostly Rust++

8

It's fun how oddly close that year is with 0°C in Kelvin: 273.15. Seeing 275.8K just instantly brought me back to chemistry...

3
lemmy.zip

Bold of you to assume no one will come up with a replacement date library rather than just getting rid of JS.

76

It’s javascript. We’ll have gone through 275,760 new datetime libraries before then, it’ll be fine.

66
Redkeyreply
programming.dev

Of course! There's already a proposal for a replacement Temporal object.

5

It’s not just a proposal, it’s already fully defined and almost completely implemented - I believe they’re just waiting on a standards update from ISO for time zone stuff.

3
ARkreply

reserve me tickets for the inevitable shit show that follows 🍿

5
lemmy.world

Also means you can't reference anything earlier than the late Pleistocene.

45
lemmy.world

Sorry, that's also wrong. The entire universe, in its current state, popped into existence last Tuesday. It's been terribly inconvenient tho.

30
sik0fewlreply
kbin.social

I wish we would have popped into a better existence.

12
rekabisreply
lemmy.ca

Fun fact: infinities can be different sizes, such that one infinity can be larger than another.

They’re still infinities, with no end. Just of different absolute sizes. Fun stuff to rabbithole down into if you want to melt your brain on a lazy afternoon.

5

Even more fun: nobody can agree on how many there are (some people say none!), and mathematics is self-consistent regardless of if you assume certain ones definitely do or definitely don't exist.

2
CanadaPlusreply
lemmy.sdf.org

For all those who believe time is infinite please apply a logistic transformation to your dates.

In what unit? They're not scale invariant.

Also in case you're serious, I'm sure (by the pigeonhole principle) you'll run out of exponents just about as fast as you would run out of integers.

4
infosec.pub

What people fail to see is that this is the largest date the API can store, not a magical cutoff date in the distant future.

You could create a date today and send it to the API, and it could potentially crash it, or create a buffer overrun.

24

The definition of the Date object explicitly states that any attempt to set the internal timestamp to a value outside of the maximum range must result in it being set to "NaN". If there's an implementation out there that doesn't do that, then the issue is with that implementation, not the standard.

8

That's because this is the maximum integer that can be stored in a double precision floating point number without loss of precision, lol

14

I've got a bunch of freeze dried food from my backpacking days. Who wants to jump in on a business selling Y275.76K Survival Kits?

14
lemmy.ca

past 13 September

Yes, but will that be a Friday??

13

it may or may not be a monday - probably won't. it will be monday based on the (4000 | year) => !(leap year) rule, but by the year 275000 the difference will be so big that i am pretty sure people will make more rules to solve that.

1

This will be a tough one to fix. There must be millions upon millions of embedded systems out there with 16-bit epoch burned in.

They'll all be much tougher to find than "YEAR PIC(99)" in COBOL was.

Y2K wasn't a problem because thousands upon thousands of programmers worked on it well in advance (including myself) we had source code and plenty of static analysis tools, often homegrown.

The 2038 bugs are already out there...in the wild...their source code nothing but a distant dream.

6
sopuli.xyz

We survived the 2000 crash, we will survive this

6