News for hackers. Stuff that matters.
Re:NASA Open Sources Apollo 11 Code (2009) by andyjohnson0 on Thursday April 03, 2014 @11:27AM (#7523475)
Anyone who is looking for something to run it on could take a look at Block I Apollo Guidance Computer (AGC): How to build one in your basement [1]. The build took one guy four years and a lot of wire-wrap. A fascinating and quite awe-inspiring piece of work.

[1] http://klabs.org/history/build_agc/

Re:NASA Open Sources Apollo 11 Code (2009) by rip747 on Thursday April 03, 2014 @11:42AM (#7523589)
that guy deserves a medal. 4 years of work and documentation and he gives it to the world. the documentation is pretty good with some incredible pictures and diagrams. now granted i'm not an electrical engineer so i don't know if it is accurate.
Re:NASA Open Sources Apollo 11 Code (2009) by el_duderino on Thursday April 03, 2014 @12:46PM (#7524065)
Wow. I have no idea what I just read, but it....it was awesome.
Re:NASA Open Sources Apollo 11 Code (2009) by Lambdanaut on Thursday April 03, 2014 @12:57PM (#7524152)
Haha... That's pretty amazing...

How about an emulator?

Re:NASA Open Sources Apollo 11 Code (2009) by jccooper on Thursday April 03, 2014 @01:08PM (#7524275)
Sure: http://www.ibiblio.org/apollo/

Or, if you want a web-based version (via asm.js): http://svtsim.com/moonjs/agc.html

(I knew about the Burkey version, but the JS port I just found. Ain't the modern world amazing?)

Re:NASA Open Sources Apollo 11 Code (2009) by rickr on Thursday April 03, 2014 @10:52AM (#7523203)
This is a blog linking to a blog linking to the source (from 2009).

http://googlecode.blogspot.com/2009/07/apollo-11-missions-40...

Re:NASA Open Sources Apollo 11 Code (2009) by Cthulhu_ on Thursday April 03, 2014 @10:59AM (#7523276)
^. Submissions should link to the source as much as possible, instead of reposts.
Re:NASA Open Sources Apollo 11 Code (2009) by spectre256 on Thursday April 03, 2014 @10:43AM (#7523142)
It's worth noting that the software, while only 36k machine words long, and the hardware, which was very slow even by the standards of other computers of the 60s, were remarkable works created in only a couple years by huge teams (peak of 800 people working on hardware and 400 on software IIRC).

Its popular to dismiss the AGC as simple and uninteresting, but it was a challenging engineering task, and it never once had a failure in flight.

There's lots of resources on the internet to read more. A great book on the topic is Digital Apollo by David Mindell

Re:NASA Open Sources Apollo 11 Code (2009) by TallGuyShort on Thursday April 03, 2014 @11:14AM (#7523396)
It never once had a failure in flight, except for the short in Apollo 14, which they managed to hack around mid-flight. Cool story: http://www.ibiblio.org/apollo/#Final_exam_for_the_advanced_s...
Re:NASA Open Sources Apollo 11 Code (2009) by spectre256 on Thursday April 03, 2014 @12:13PM (#7523827)
That was caused by an actual physical short (in space, conductive bits, usually soldier balls, floating around and shorting things was a big problem), which happened somewhat commonly. I think Apollo 12 nearly aborted the launch because the display was showing all 8s briefly, also caused by a short.

However there truly was never an unknown software bug discovered in flight. Lots of known software bugs had workarounds, partially because there was a hard deadline of about 4 months where the software couldn't be changed before the launch. Pretty amazing.

Re:NASA Open Sources Apollo 11 Code (2009) by NAFV_P on Thursday April 03, 2014 @12:51PM (#7524107)
> Its popular to dismiss the AGC as simple and uninteresting, but it was a challenging engineering task, and it never once had a failure in flight.

Stating it never failed in flight is jumping the gun a bit, it didn't fly enough times to get a reliable statistic.

Re:NASA Open Sources Apollo 11 Code (2009) by talmand on Thursday April 03, 2014 @02:08PM (#7524771)
I would think it's accurate to state that the system never had a failure in flight if it never had a failure in flight, despite how many times it flew.

If you were to compare it to something else, then how many times it flew becomes important. For example, you can't necessarily say that a 100% success rate over 5 attempts is better than a 95% success rate over 100 attempts.

Re:NASA Open Sources Apollo 11 Code (2009) by spectre256 on Thursday April 03, 2014 @05:03PM (#7526646)
Right. I think I remember Digital Apollo quoting an engineer who estimated, based on their extensive ground testing, that the AGC had a MTBF of about 50,000 hours. That's not particularly good, but considering all the Apollo missions spent only about 1000 hours in space total, it was apparently good enough.
Re:NASA Open Sources Apollo 11 Code (2009) by jfthiigsegbje on Thursday April 03, 2014 @11:30AM (#7523498)
Digital Apollo is a great read.
Re:NASA Open Sources Apollo 11 Code (2009) by TallGuyShort on Thursday April 03, 2014 @10:33AM (#7523061)
If this kind of thing interests you, there are some great resources here about the Gemini and Apollo guidance computer architecture, including recreations of them: http://www.ibiblio.org/apollo/. I also recommend the book "Digital Apollo" about the role of digital computers in early space flight. I found both fascinating.
Re:NASA Open Sources Apollo 11 Code (2009) by andyjohnson0 on Thursday April 03, 2014 @11:46AM (#7523626)
I second your recommendation of "Diagital Apollo". A very interesting book.

Two other books worth checking-out are The Apollo Guidance Computer: Architecture and Operation by Frank O'Brien and Journey to the Moon: The History of the Apollo Guidance Computer by Eldon Hall. The latter book is not particularly well written, but the author was the AGC hardware design lead and this book captures a lot of his first-hand knowledge of the hardware development and testing process.

Re:NASA Open Sources Apollo 11 Code (2009) by batbomb on Thursday April 03, 2014 @10:41AM (#7523119)
Or check out this for all sorts of info about NASA's probes:

http://history.nasa.gov/SP-480/sp480.htm

Re:NASA Open Sources Apollo 11 Code (2009) by raimue on Thursday April 03, 2014 @10:41AM (#7523121)
It's not really new, you should have added the suffix "(2009)" to the title.
Re:NASA Open Sources Apollo 11 Code (2009) by thewopr on Thursday April 03, 2014 @11:29AM (#7523488)
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...

That article calls out this line (among others). I wonder what the actual story behind this comment was. I'm sure it's not as bad as, "I'm just putting this in temporarily and we should fix it before it goes to Mars". It probably means something else.

Anyone have any idea?

Re:NASA Open Sources Apollo 11 Code (2009) by andyjohnson0 on Thursday April 03, 2014 @11:35AM (#7523533)
Further down in the same file there's a line:

    GAINBRAK,1      # NUMERO MYSTERIOSO
Re:NASA Open Sources Apollo 11 Code (2009) by thewopr on Thursday April 03, 2014 @11:41AM (#7523571)
Yeah, considering the number of people working on this, I can't imagine anything was left to chance. Did the comments have some connotation that was lost to time, was it just joking around, or is there something that the developers seriously weren't sure about?
Re:NASA Open Sources Apollo 11 Code (2009) by yiedyie on Thursday April 03, 2014 @11:59AM (#7523726)
We invest a lot of code in GUI, which makes me think of:

I'm afraid the holodeck will be society's last invention. - Scott Adams

And this ultimate GUI would require the ultimate coding effort.

Re:NASA Open Sources Apollo 11 Code (2009) by joezydeco on Thursday April 03, 2014 @12:07PM (#7523791)
The Apollo 11 UI module, code named DSKY/PINBALL, was meant as a demonstration unit and never meant to be the actual operating interface for the mission.

"As time passed, and more and more people became familiar with the demo, nobody got around to inventing an improvement for the user interface, so the coders simply built it into the flight software without any specific requirements to do so"

The future will always be duct tape and bubble gum.

http://www.ibiblio.org/apollo/ForDummies.html

Re:NASA Open Sources Apollo 11 Code (2009) by jordigh on Thursday April 03, 2014 @10:53AM (#7523222)
http://code.google.com/p/virtualagc/source/browse/trunk/LICE...

"The software for the Apollo Guidance Computer (AGC) and LM Abort Guidance Computer (AGS) is believed to be in the public domain."

Eh? So is it open source or not?

I doubt someone would come around and claim exclusive copyright on this, but still... Netlib had the same problem, and that's why replacements exist. The ACM still once in a while claims copyright on ancient Fortran code from the late 1960's. Back then it was a blissful golden era when people didn't even think that source code was elligible for copyright.

Re:NASA Open Sources Apollo 11 Code (2009) by ChuckMcM on Thursday April 03, 2014 @01:27PM (#7524450)
Given the pocket calculator joke[1] I'm wondering if anyone has built functionally equivalent AGC code on a more modern processor? And by functionally equivalent I mean a black box tester with an Apollo AGC would not be able to tell if it was running the old code or the new code.

[1] "It’s been famously remarked that the on-board systems in Apollo 11 had less computing power than a modern pocket calculator." -- http://apcmag.com/apollo-11-code-goes-open-source.htm

Re:NASA Open Sources Apollo 11 Code (2009) by Implicated on Thursday April 03, 2014 @01:38PM (#7524540)
Yes it's a 2009 blog post, but I still found it new and interesting.

Especially the "# TEMPORARY, I HOPE HOPE HOPE" comments, so I decided to look into them and hopefully find someone who has a clue to explain...which I did, here's a link for anyone else interested...

(last comment) http://www.metafilter.com/83450/Apollo-11-Source-Code

Re:NASA Open Sources Apollo 11 Code (2009) by johnduhart on Thursday April 03, 2014 @10:34AM (#7523068)
"July 23, 2009"
Re:NASA Open Sources Apollo 11 Code (2009) by yiedyie on Thursday April 03, 2014 @12:22PM (#7523889)
Misleading indeed but is not like realeasing the latest kernel patch, where the code date is important.
Re:NASA Open Sources Apollo 11 Code (2009) by meandthebean on Thursday April 03, 2014 @02:41PM (#7525052)
Trashy Little Subroutines is going to be my new band's name.

https://code.google.com/p/virtualagc/source/browse/trunk/Lum...

Re:NASA Open Sources Apollo 11 Code (2009) by 0xdeadbeefbabe on Thursday April 03, 2014 @01:14PM (#7524342)
So they must have written this simulator without help from source code http://svtsim.com/moonjs/agc.html. While it doesn't strike me as a bad simulator, I wonder if it's right.
Re:NASA Open Sources Apollo 11 Code (2009) by talmand on Thursday April 03, 2014 @02:20PM (#7524869)
If anyone compiles this; remember to set your turbo button to off or the timings will be wildly inaccurate.
Re:NASA Open Sources Apollo 11 Code (2009) by jlgaddis on Thursday April 03, 2014 @11:22AM (#7523444)
Weird... ISTR hearing something like this a long time ago.

Edit: Nevermind, just saw the date on the article.

Re:NASA Open Sources Apollo 11 Code (2009) by sirduncan on Thursday April 03, 2014 @10:54AM (#7523230)
NASA open source Apollo 11 code...5 years ago. How about a (2009) guy?
Re:NASA Open Sources Apollo 11 Code (2009) by pearjuice on Thursday April 03, 2014 @02:35PM (#7525010)
Google Code? That still a thing? It must be enterprise-government-class contracts like this keeping it alive.

It would have been much cooler to see it on Github and people forking away at it.

Re:NASA Open Sources Apollo 11 Code (2009) by frandroid on Thursday April 03, 2014 @11:56AM (#7523698)
Time to start my own backyard space program.
Re:NASA Open Sources Apollo 11 Code (2009) by dsugarman on Thursday April 03, 2014 @11:47AM (#7523630)
please add 2009 to the end of the title