[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / siberia / edu / hobby / tech / games / anime / music / draw / AKM ] [ meta / roulette ] [ cytube / wiki / git ] [ GET / ref / marx / booru / zine ]

/tech/ - Technology

"Technology reveals the active relation of man to nature" - Karl Marx
Name
Options
Subject
Comment
Flag
File
Embed
Password (For file deletion.)

Join our Matrix Chat <=> IRC: #leftypol on Rizon


File: 1709456973832.jpg (12.38 KB, 306x306, a.jpg)

 No.23592

What kind of advances in computer science could help programmers deal with highly rare and irregular events like leap days?
https://codeofmatt.com/list-of-2024-leap-day-bugs/

 No.23593

abolish calendars

 No.23596

>>23592
Most of these bugs look like implementation issues i.e. shoddy programming ala y2k and particularly symptoms of the lack of a good time library in many environments. You can read http://naggum.no/lugm-time.html for an exhaustive treatment of the problems related to computer time.

 No.23597

>>23592
wait until you find out about leap seconds
imo the ideal solution would be to replace our calendar with a more computer-friendly one and write an open, very detailed specification for time libraries to help developers correctly implement the actual libraries
the second best solution would be to build a massive rocket engine to decelerate the planet until we get perfect, 31536000 sec. years

 No.23598

File: 1709468154112.gif (344.38 KB, 220x213, 54325.gif)

>>23596
>Most of these bugs look like implementation issues i.e. bugs
Thanks for the explanation!

 No.23599

>>23593
This but unironically.

 No.23606

>>23593
Unix time for everything, all dates just stored as seconds from January 1st 1970.

 No.23608

>>23606
In which timezone?

 No.23609

>>23592
shared libraries

 No.23610


 No.23611

File: 1709536835474.gif (1.37 MB, 430x360, 1630098628113.gif)

Is timekeeping possible in an interplanetary civilization? What about light lag?

 No.23612

>>23611
timekeeping on Earth is already difficult due to relativistic effects and drift. the C in UTC stands for coordinated. in other words, we simply decide what the time is. sometimes we mess up, like that time a few of years ago where we lost a couple of microseconds

 No.23613

>>23606
that still uses a calendar for a reference point

 No.23614

>>23606
That makes sense because that date is the beginning of time itself.

 No.23617

>>23592
The leap days are not the fault of computer science but of how the Gregorian calendar works. It's all just legacy stuff from Chistianity, our language, our number system and our mathematic notation even were always broken, the entire world is like Windows.

The advances of technology won't help, you need a better set of standards that is going to be reinforced by every institution.

 No.23618

>>23611
>Is timekeeping possible in an interplanetary civilization? What about light lag?
Hell yeah. But not for that reason. The main problem is that the days would be different lengths. Mars is almost identical but it would still be shifting around nonstop.

 No.23623

>>23617
The fault of computer science (or software engineering, even) is that programmers keep making dumb shit errors like these.

 No.23627

>>23623
Programmers are just workers, they don't actually make decisions like these, they're just doing what they're required to do.

 No.23629

>>23592
You can still test for stuff like that, you just need to know that such a thing can happen.

 No.23630

>>23611
Kind of funny how Star Trek completely handwaves this. Accounting for communication delays and relativistic time warp would be a fucking nightmare.

 No.23631

>>23617
How would you make a calendar without leap days, oh euphoric anon?

 No.23632

>>23617
anon its not the fault of our standards that the earth spins ~365,25 times for one trip around the sun

 No.23633

>>23631
Have a quarter day every year

Eh no wait that wouldn't work lol


Unique IPs: 14

[Return][Go to top] [Catalog] | [Home][Post a Reply]
Delete Post [ ]
[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / siberia / edu / hobby / tech / games / anime / music / draw / AKM ] [ meta / roulette ] [ cytube / wiki / git ] [ GET / ref / marx / booru / zine ]