- cross-posted to:
- programmerhumor@lemmy.ml
Bold of you to assume no one will come up with a replacement date library rather than just getting rid of JS.
It’s javascript. We’ll have gone through 275,760 new datetime libraries before then, it’ll be fine.
Well y275.8k will certainly be interesting
They’ll work on a solution in the year 275,759
there goes my plans to build a time machine in javascript
Partitioning by integer secobds is dumb.
Just assign 0 to the start of time, 1 to the end of time, and every point between is represented by a double precision floating point number.
For all those who believe time is infinite please apply a logistic transformation to your dates.
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.
My nephew refuses to talk to me because of this.
He said I smelled like farts, then I said he did times 10, he replied times a hundred, I pulled out the infinity card, then he replied with times infinity plus one, activating my trap card. I sat him down and for 90 minutes, starting with binary finger counting and Cantor’s diagonalisation argument, I rigorously walked him through infinities and Aleph numbers (only the first 2 in detail, I’m not a monster).
Now he knows the proper retort (not infinity plus one, use Aleph 1). Unfortunately now he’s not sure if numbers are “real” or not because I taught him that natural numbers are the cardinal numbers.