News for hackers. Stuff that matters.
Re:NASA Declares End to Deep Impact Comet Mission by hcarvalhoalves on Saturday September 21, 2013 @01:27AM (#6422091)
> "Basically, it was a Y2K problem, where some software didn't roll over the calendar date correctly," said A'Hearn. The spacecraft's fault-protection software (ironically enough) would have misread any date after August 11, 2013, he said, triggering an endless series of computer reboots aboard Deep Impact.

Men build a $267m spacecraft, send it to space, target it at a meteor, manage to make it inspect the meteor upclose at thousands of kms/hour... and still, writing correct software is an impenetrable problem.

Amazing.

Re:NASA Declares End to Deep Impact Comet Mission by binarymax on Saturday September 21, 2013 @07:48AM (#6422673)
Not only that, the problem was date/time related. Dates and times seem to be one of the most tricky things to account for and are consistently taken for granted, introducing unexpected errors. You would think by now someone would have made a fortune developing a robust radiation tolerant datetime IC, that has enough bits to count milliseconds from the big bang until the estimated end of the universe.
Re:NASA Declares End to Deep Impact Comet Mission by projectileboy on Saturday September 21, 2013 @10:45AM (#6423084)
As Peter van der Linden says in his (excellent) book Expert C Programming: "Anyone who thinks programming dates is easy to get right the first time probably hasn't done much of it."
Re:NASA Declares End to Deep Impact Comet Mission by ams6110 on Saturday September 21, 2013 @01:42AM (#6422107)
What's so special about that date? I guess in whatever datetime representation they were using, it overflowed at that point?
Re:NASA Declares End to Deep Impact Comet Mission by aptwebapps on Saturday September 21, 2013 @04:45AM (#6422390)
It seems to be approximately 2^32 tenths of second into the new millennium. Which is an odd way to do things, but I guess there were reasons.
Re:NASA Declares End to Deep Impact Comet Mission by lelf on Saturday September 21, 2013 @08:10AM (#6422708)
Seems so

  h> logBase 2 . realToFrac $ (secs "2013-08-11" - secs "2000-01-01")*10
  31.999992174768167
Re:NASA Declares End to Deep Impact Comet Mission by tinco on Saturday September 21, 2013 @08:29AM (#6422747)
Totally off-topic, but that looks a lot like Haskell, what did you do to make ghci have such handy calculator functionality? (I can't find secs in Hoogle)
Re:NASA Declares End to Deep Impact Comet Mission by lelf on Saturday September 21, 2013 @09:23AM (#6422857)
It's just

  secs = utcTimeToPOSIXSeconds . readTime defaultTimeLocale "%F"
Re:NASA Declares End to Deep Impact Comet Mission by michaelhoffman on Saturday September 21, 2013 @03:35PM (#6424147)
The standard for astronomical measurements today is the J2000.0 epoch.

http://en.wikipedia.org/wiki/Epoch_%28astronomy%29#Julian_ye...

Re:NASA Declares End to Deep Impact Comet Mission by tinco on Saturday September 21, 2013 @08:24AM (#6422739)
I bet there's a:

    \\TODO: reset the clock before launch day
Somewhere that would have allowed it a ~13 years lifetime from launch day on instead of from 2000 on..
Re:NASA Declares End to Deep Impact Comet Mission by munkeegutz on Saturday September 21, 2013 @11:50AM (#6423301)
I bet that during the initial design phase, they wanted to keep the design simple, have enough timekeeping range to cover the mission and then maximize temporal resolution.

Someone realized that a counter operating on tenths of a second from 2000 was both easy to use and sufficient for the primary mission... they then thought nothing of it until the loss of contact