Live data from Hacker News

Infinite loop in macOS Night Shift in the summer near the Arctic Circle

twitter.com

131–140 of 175 posts

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#132
post #54

I sometimes wonder how many bugs are lurking in systems using GPS for navigation at 180th meridian (where longitude goes from 180 to -180).

The F-22 had such problems. https://www.defenseindustrydaily.com/f22-squadron-shot-down-...

When I was working on geo-fencing feature for a small UAV I did see the consequences of naive maths when working with coordinates near antimeridian (e.g. calculating a perpendicular vector of a fence segment).

Also related- it seems crazy to me how some teams are working on a robotic product without building/interating a simulator first!

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#134
post #102
post #85

Earlier quoted context omitted.

How did we screw up time zones so much?

We invented and then implemented time zones and then invented and then implemented daylight savings time; arbitrarily and with arbitrary laws and treaties. There are days where I think I should go back to a mechanical watch and adjust the time each day at high noon. It won’t agree with anyone else’s time most of the time, but at least it will be correct .

But won't it be wrong as soon as you start travelling east or west, though?

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#135
post #101
post #89

Earlier quoted context omitted.

DST rules are just insane. I'm responsible for some code where I just drew the line and 40 some odd people in one of the Antarctic stations are just going to have to live with wrong time part of the year if they ever run my code. I'm not adding another code path and test case just because these people wanted their own special concept of time. I don't remember the pattern, but I think it was maybe a daylight savings t…

We have endless problems with DST as well. I can't wait for the EU directive that abolishes it. Russia dropped it years ago. We'll still have to support past times and other timezones though.

I wonder how long time it will take to forget DST if it is abolished. Will that messy spaghetti code be ripped out and never seen again.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#136
post #25

Am I the only person who is impressed with this person's debugging skill?

Not really. All he's shown is a behavior (high CPU) and is equating it with the latitude he's at. When he turns off Night Shift, the daemon process for the feature stops consuming as much CPU, from what I gathered. Nowhere does he provide evidence that there is an infinite loop calculating the sunrise/sunset. And I really don't want to be a stereotypical poster by simply degrading what he did, so I will give credit t…

You’re splitting hairs and failing at it. They have clearly found a “bug” if Night Shift is consuming 100% CPU without end, even if their hypothesis for the reason might be wrong.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#138
post #2

The perils of living on a spinning oblate sphere strike again! Software would be so much simpler on a ringworld ...

This is due mainly to our tilt, not our sphere-ness

You're right, we need to straighten the earth up.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#139
post #56

Deep in the twitter replies: > Now, is this a corner case, an edge case or a boundary case? And does the answer depend on whether you are a flat-earther or not? That was too funny.

Personally I believe that earth is flat disk carried by 4 elephants, which are standing on the back of a giant turtle

You’re wrong. I know for a fact that there are 7 elephants, one of them is white.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#140
post #135
post #101

Earlier quoted context omitted.

We have endless problems with DST as well. I can't wait for the EU directive that abolishes it. Russia dropped it years ago. We'll still have to support past times and other timezones though.

I wonder how long time it will take to forget DST if it is abolished. Will that messy spaghetti code be ripped out and never seen again.

Most standard libraries still have support for the Julian calendar. That stuff is never going away.
Post reply on HN