Live data from Hacker News

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

twitter.com

61–70 of 175 posts

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

#61
post #8

Earlier quoted context omitted.

It exists, it's just complex-valued.

There are both coordinates and rotations, it would probably be better modeled as a quarternion or something of an even higher order.

I believe you can actually compute the sunrise time of a location/day that doesn't have a sunrise, and it would be just a complex number (root of some analytic function).

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

#62
post #39
post #26

Earlier quoted context omitted.

My favorite incorrect fact is that there are 24 timezones. In fact, the number of offsets from UTC fluctuates throughout the year (at least last I worked on scheduling in 2012. Back then it was either 39 or 40 depending on DST)

Yeah I always feel like a jerk when people open tickets in the summer saying “Please do this at #:## EST” and I have to reply “thanks for providing a time but it’s currently EDT in NYC. Is that what you meant?”

I hear you. It almost always is what people meant but most of us (myself included) rarely think about the distinction.

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

#63
post #45

Earlier quoted context omitted.

Falsehood #2: Every day starts at 12:00 am midnight.

Wot, what's the false case?

DST. Some countries (Brazil) switch over at midnight instead of 2:00 am. One day of the year has no midnight.

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

#65
Perhaps it's because they implemented the "Sunrise equation" naively, which becomes indeterminate for high latitudes when the Sun is close to the maximum?

https://en.wikipedia.org/wiki/Sunrise_equation

cos(\Omega) = - tan(\phi) x tan(\delta)

Where \Omega = hour angle (sunrise, sunset offset from noon), \phi = latitude, \delta = sun declination.

Clearly if the right hand side gets big enough (>1), this doesn't work.

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

#66
post #31
post #23

Earlier quoted context omitted.

Time is hard: https://zachholman.com/talk/utc-is-enough-for-everyone-right This is all because of the fact that we're trying to represent the time taken by the earth (an arbitrary planet that has no impact on the universe whatsoever) to revolve around the sun (an arbitrary star) in terms of the amount of time the earth takes to rotate around itself. These two obviously unrelated things are somehow merged into to crea…

> (an arbitrary planet that has no impact on the universe whatsoever) What do you call this type of worldview where you just view everything as completely meaningless or devoid of any value? Is it really straight up Narcism? I mean my god no wonder this is one of the most depressed generations on record. Apologies for the off-topic comment, I just felt compelled to post this. We are the most meaningful, most importan…

I like life, but we are meaningless motes in the universe. We'll all be dead one day and no one will remember us.

It's ok though, it doesn't matter.

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

#67
post #31
post #23

Earlier quoted context omitted.

Time is hard: https://zachholman.com/talk/utc-is-enough-for-everyone-right This is all because of the fact that we're trying to represent the time taken by the earth (an arbitrary planet that has no impact on the universe whatsoever) to revolve around the sun (an arbitrary star) in terms of the amount of time the earth takes to rotate around itself. These two obviously unrelated things are somehow merged into to crea…

> (an arbitrary planet that has no impact on the universe whatsoever) What do you call this type of worldview where you just view everything as completely meaningless or devoid of any value? Is it really straight up Narcism? I mean my god no wonder this is one of the most depressed generations on record. Apologies for the off-topic comment, I just felt compelled to post this. We are the most meaningful, most importan…

I've learned to enjoy the struggle and this has helped me immensely.

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

#68
post #39

Earlier quoted context omitted.

Yeah I always feel like a jerk when people open tickets in the summer saying “Please do this at #:## EST” and I have to reply “thanks for providing a time but it’s currently EDT in NYC. Is that what you meant?”

I hear you. It almost always is what people meant but most of us (myself included) rarely think about the distinction.

I've just gotten to saying ET (or equivalent) all year-round .

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

#69
post #4

'Falsehoods programmers believe about time: - Every day has a sunrise and a sunset'

This is true, depending on how far away you look from where you are.

Or, this is true, if you allow that "day" is defined by sunrise to sunrise (or sunset to sunset, depending on your religion), which in the region discussed would give you one sunrise per revolution around the sun.

Either one of those truths could be the basis for fixing this bug.

EDIT: Rather than a bug (in the implementation), this may be better classified as an under-specification.

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

#70
post #41

Earlier quoted context omitted.

Yep. And there also small regions that observe daylights savings WITHIN regions that don’t observe daylight savings WITHIn regions that do observe it. For example, in Indiana it is on a per county basis[1]. 1. https://www.timeanddate.com/time/us/indiana-time.html

Speaking of within, I fibbed slightly about Arizona. https://en.wikipedia.org/wiki/Time_in_Arizona The Navajo Nation is within Arizona's boundaries, and it does observe DST. And the Hopi Reservation is within the Navajo Nation, and it does not observe DST. And since Arizona is surrounded by California, Nevada, Utah, New Mexico, and Mexico, all of which do observe DST, that means you have an island of no-DST (Hopi) in…

Well that's almost enough to make one think daylight saving time is a bunch of cracked-up nonsense!
Post reply on HN