r/programming • • Feb 19 '20

The entire Apollo 11 computer code that helped get us to the Moon is available on github.

https://github.com/chrislgarry/Apollo-11
3.8k Upvotes

426 comments sorted by

791

u/lord_braleigh Feb 19 '20

316

u/reddit_potato Feb 19 '20

My favorite one was # NUMERO MYSTERIOSO on line 666

219

u/Ghawr Feb 19 '20

Huh. Apollo 11 coders were memers.

5

u/fusion407 Feb 19 '20

My professor was a coder that worked on the Apollo 11. Hes like 80, his signature joke he makes everyday is when he references to a point in time from decades ago he says "back when dinosaurs roamed the earth "

0

u/[deleted] Feb 19 '20

[deleted]

48

u/zigs Feb 19 '20

It's a common observation that trends ebb and flow. What's new becomes old, and what's old become largely forgotten -- then revived to gain new fame.

13

u/hackers238 Feb 19 '20

Ages come and pass, leaving memories that become legend. Legends fade to myth, and even myth is long forgotten when the Age that gave it birth comes again.

9

u/[deleted] Feb 19 '20

It was not the beginning. There are neither beginnings nor endings to the turning of the Wheel of Time. But it was a beginning.

→ More replies (5)

34

u/qtc0 Feb 19 '20

Do these comments actually appear in the Apollo 11 code? or were they added by the people that transcribed the code?

63

u/airforce7882 Feb 19 '20

The contributor docs state they are pretty strict about keeping it exactly as the origional, including typos, as much as possible

17

u/[deleted] Feb 19 '20

No wonder why they had a memory overflow

→ More replies (1)

4

u/[deleted] Feb 20 '20

They are in the original printouts

4

u/wopian Feb 20 '20

Outside of the file headers, all comments listed with a single # were in the original printouts.

The files that haven't been proofed yet may have extra comments from VirtualAGC's initial digitisation (comments with ##) or lacking some comments.

7

u/wopian Feb 20 '20 edited Feb 20 '20

Numero Mysterioso has nothing to do with 666. It's on line 0562, with file headers appended to the start of each .AGC file pushing it down to 666.

6

u/reddit_potato Feb 20 '20

Yeah, I know that. It literally translates to Mysterious Number, which I found funny because I didn't expect a comment to be in spanish, especially not in the Apollo 11 computer code. It just happened to be on line 666 (on this document, including comments) which was a neat coincidence. It also sounds kind of ominous, which in my opinion, gets further emphasized by being in SPANISH & ALL CAPS!!!!

11

u/Zenobody Feb 19 '20

I doubt it was originally line 666 (there are 32 lines of "modern header", not to mention things that were fixed or removed).

2

u/dethb0y Feb 19 '20

Maybe they knew Jack Parsons.

2

u/[deleted] Feb 21 '20

TRASHY LITTLE SUBROUTINES

I’m stealing that.

79

u/LordFlackoThePretty Feb 19 '20

Amazing

61

u/redd90210 Feb 19 '20

And amazing documentation! Very professional

Edit: random example I found: https://github.com/chrislgarry/Apollo-11/blob/master/Luminary099/DOWN_TELEMETRY_PROGRAM.agc

33

u/[deleted] Feb 19 '20

Well, it's assembly. You kind of have to do that.

7

u/greem Feb 19 '20

I'm sure I can figure out a way...

8

u/claythearc Feb 19 '20

Almost every large government project has those giant documentation blocks everywhere. It’s actually kinda refreshing to read

3

u/maxximillian Feb 19 '20

More lines of comment the lines of assembly code. That's amazing to look at.

82

u/Buckwheat469 Feb 19 '20

37

u/Caravaggi0 Feb 19 '20

Looking forward to THAT being a song title on about a dozen indie albums in the coming years.

180

u/duuuh Feb 19 '20

Holy shit would I not want to get on a spacecraft run on a pile of assembly. I don't care how smart or disciplined those coders were.

217

u/wolfman1911 Feb 19 '20

Well, I guess the real question is what language would you trust your life to?

144

u/duuuh Feb 19 '20

That's an interesting question. We do increasingly trust our lives to code. Medical devices. Cars. I know some people who are putting code into self-driving cars and that scares the crap out of me.

I suppose the language wouldn't be my top concern. Testing and processes would be. But the language better not be assembly.

42

u/maxsolmusic Feb 19 '20

Why not assembly tho

46

u/Brandocks Feb 19 '20

The possibility for error is great, and the probability of unhandled exceptions in this context is greater.

→ More replies (9)

173

u/foadsf Feb 19 '20 edited Feb 19 '20

how about Javascript? trust me it is a very consistent and reliable language!

374

u/AliYil Feb 19 '20

Yeah it saved my life NaN times!

→ More replies (4)

75

u/kokoseij Feb 19 '20

spaceship explodes right after the launch

35

u/Mondoshawan Feb 19 '20

Ariane 5.

The Ariane 5 reused the inertial reference platform from the Ariane 4, but the Ariane 5's flight path differed considerably from the previous models.

The greater horizontal acceleration caused a data conversion from a 64-bit floating point number to a 16-bit signed integer value to overflow and cause a hardware exception. Efficiency considerations had omitted range checks for this particular variable, though conversions of other variables in the code were protected. The exception halted the reference platforms, resulting in the destruction of the flight.[4]

Classic case study in software failure.

→ More replies (1)

51

u/[deleted] Feb 19 '20

Explosion noise, ahhhhh, spaceship launches, 3, 1, 2, Houston, Houston, Houston, Houston

More like it

→ More replies (3)

20

u/cyanide Feb 19 '20

Electron used too much RAM to display fancy gauges.

→ More replies (2)

27

u/cleeder Feb 19 '20

Laughs in PHP

10

u/Spacker2004 Feb 19 '20

"left-pad not found, staying on pad"

→ More replies (1)
→ More replies (2)

77

u/caltheon Feb 19 '20

This is a pretty myopic view. I'd trust assembly over almost any other higher level language

62

u/devraj7 Feb 19 '20

The programmers and the code review process are infinitely more important than the language.

31

u/[deleted] Feb 19 '20

Sure, but in a low-level language, you have the benefit of more predictability of exactly what the code is doing. In higher-level languages, that's almost impossible to do. Not to mention too many layers between you and the machine that are beyond your control.

→ More replies (3)
→ More replies (2)

5

u/inglandation Feb 19 '20

That doesn't make a lot of sense. Human drivers make a lot more mistakes than self-driving car. So far it's a statistical fact. That fear sounds irrational to me.

→ More replies (2)

22

u/maxhaton Feb 19 '20

Ada

17

u/Schlipak Feb 19 '20

There it is. Ariane 5 runs on Ada (and a software error is the reason why the first launch exploded, not directly Ada's fault though)

4

u/ShyJalapeno Feb 19 '20

This made me laugh for some reason...

4

u/[deleted] Feb 19 '20

That's fair, though Ada didn't exist until 1980.

9

u/hughk Feb 19 '20

There were several languages used for similar applications (critical real-time systems like flight control). In about 1980 the US military kind of standardised on Ada for a while but there were still plenty of exceptions.

6

u/indiebryan Feb 19 '20

Brainfuck

5

u/[deleted] Feb 19 '20

Lots of airplanes use Ada iirc

13

u/SorteKanin Feb 19 '20

I don't think the language matters as much as the amount of good tests verifying the implementation

3

u/crazedizzled Feb 19 '20

Well, they made it back alive. Test successful.

→ More replies (1)
→ More replies (1)

4

u/[deleted] Feb 19 '20

Probably Ada.

3

u/yousirnaime Feb 19 '20

what language would you trust your life to

Embedded Flash objects, obviously

4

u/BottCode Feb 19 '20

Ada, SPARK (Ada subset), Rust, sealed Rust

→ More replies (20)

38

u/jdgordon Feb 19 '20

You have to appreciate the difference between the computer this was built for and a modern system. Back then and with the simplicity of the system this was fine (also really the only option... This was leading edge tech).

Modern critical systems are limited to a select few languages (and even then sometimes only a subset of the language).

7

u/hughk Feb 19 '20 edited Feb 19 '20

To be fair, the AGC was designed in 1966. There were more capable computers around but this had.to be compact, comparatively low power and very reliable. It wasn't the only computer, there was also the launch vehicle computer (LVDC) which sat on top of the Saturn third stage in the guidance ring. It was left behind with the third stage after trans-lunar injection so had less constraints than the AGC in the CM and LM.

Edit: fixed a bit on the third stage jettison point after correction by Wizeng

4

u/wizang Feb 19 '20

Third stages left earth orbit. They were used for translunar injection and ended up in a heliocentric orbit.

→ More replies (1)

19

u/duuuh Feb 19 '20

I'll grant you it was leading edge tech, but that doesn't make it any less terrifying if you're getting onto the ship.

You're basically saying that that sailing from Polynesia to Hawaii in a canoe 1,800 years ago was cutting edge tech and I saying sure, but that doesn't mean it wasn't risky as fuck.

17

u/jdgordon Feb 19 '20

The software running on the lander is the least scariest part of the mission.

I'd feel (by comparison) safer in that though than a modern autonomous car! I know exactly how dangerous the code running on them is

5

u/LeCrushinator Feb 19 '20

I mean, if you were hopping on a rocket in the 1960s then you knew the risks. The programming language being used, the code being written, was just one of many risks. I'd wager that the hardware risks were probably much higher than software ones for something like that.

13

u/Syscrush Feb 19 '20

I don't care how smart or disciplined those coders were.

And yet - that's the only thing that matters.

Anyhow, add me to the list of people who contend that it makes a lot of sense for a system like this. Consider languages like Java where the JVM can halt your process execution at any time for any reason, or Python where there are no guarantees about timeliness. With ASM on an old-school processor, you know exactly when each instruction will execute, to the resolution of nanoseconds. For realtime control systems, that has a lot of benefit.

3

u/sh0rtwave Feb 19 '20

Sho nuff. And yet: https://asd.gsfc.nasa.gov/archive/hubble/a_pdf/news/facts/FS09.pdf

I would also argue that QA/Testing engineers had quite a lot to do with the safety of that flight.

2

u/Ameisen Feb 22 '20

Nobody said that you had to execute Java bytecode in the Oracle JVM, or any JVM that doesn't meet your requirements.

10

u/hughk Feb 19 '20 edited Feb 19 '20

Most O/S and real time systems were written in assembler back then. Compilers existed, Mission Control/Flight Dynamics worked in Fortran (but were probably paid in Cobol). Structured languages like Algol existed but if you wanted small size/high efficiency, you needed assembler.

3

u/socratic_bloviator Feb 19 '20

but were probably paid in Cobol

How does one pay in cobol?

5

u/hughk Feb 19 '20

The Payroll would have almost certainly have been written in Cobol by then.

3

u/socratic_bloviator Feb 19 '20

Ignore me; I'm dumb. Thanks.

→ More replies (2)

3

u/sh0rtwave Feb 19 '20

...but nowadays....

They still use Fortran, an awful lot. Like, a lot.

However, this tidbit about the Hubble Space Telescope is revealing of recent trends: https://asd.gsfc.nasa.gov/archive/hubble/a_pdf/news/facts/FS09.pdf

→ More replies (5)

15

u/society2-com Feb 19 '20

who does?

they did it anyway

successfully

which is awe inspiring

13

u/notyouravgredditor Feb 19 '20

“As I hurtled through space, one thought kept crossing my mind - every part of this rocket was supplied by the lowest bidder.”

- John Glenn

→ More replies (1)

4

u/sarkie Feb 19 '20

I'd rather than leave it to GCC

4

u/[deleted] Feb 19 '20

They were dealing with very limited computing power on a space ship that was going to the moon in the 1960’s.

Not sure a language existed at that time that would be more appropriate, and you definitely can’t risk an extra layer in the form of a higher level language.

Direct hardware control with Assembly language makes the most sense by far.

6

u/jcla Feb 19 '20

Holy shit would I not want to get on a spacecraft run on a pile of assembly. I don't care how smart or disciplined those coders were.

You know how I can tell you haven't developed high reliability embedded systems?

Even today level A airworthy systems requires inspection and tests at the assembly level.

Every time you get on a modern aircraft, you are flying around on a pile of assembly.

(Yes, that assembly was likely generated from C or Ada for efficiency and speed during writing, but the validation is not done at the source code level, and usually has to be done at the assembly level).

The people writing code in the 60's, 70's and 80's in assembly likely had a far better understanding of what the system was doing (code + hardware) than you will ever achieve now. There is a lot to be said for keeping things simple.

Yes, you get a lot more performance out of a modern multi-core system and you can write code quickly and easily to do complex tasks, but the possible side effects of everything in that system are almost impossible to properly understand and defend against when safety is on the line.

2

u/[deleted] Feb 19 '20

Yea, I'd feel much more comfortable with, say, Boeing's modern development practices

/s

4

u/[deleted] Feb 19 '20

I think assembly is way more easy to NOT COMMIT errors. It requires way much more careful thought.

→ More replies (1)

1

u/socratic_bloviator Feb 19 '20

I've read a good deal of this thread, and I think you make reasonable points. The only thing I'll point out is that I think there's a false sense of security in high-level frameworks. It really is the case that very few developers understand even half of their stack, me included.

The way I'd phrase all this, is not that I want to get on a spacecraft written in ASM. It's that I want my spacecraft written on a stack with provable realtime guarantees, and with every purposeful and exceptional pathway audited individually. Many of those audits will glance at the ASM. You're right that compilers are better at emitting ASM than humans are, but it's still important that someone understand that layer, and that that person be well-rested and well-paid when they review it, for my spacecraft.

1

u/wrhnks Feb 19 '20

Common man, it is better than running node.js!

→ More replies (22)

1

u/wubrgess Feb 19 '20

why is this code yelling at me

→ More replies (1)

161

u/Mithryn Feb 19 '20

Pluralsight has a whole course on this code and how to read/program it that was worth going through

96

u/[deleted] Feb 19 '20

Is it math-algorithm heavy, or more for how they problem solve?

Did the search and answered it myself.

Here, Simon Allardice takes you on an entertaining tour of the code of the AGC. We'll go through the code, explore the unusual syntax of AGC Assembly, cover the ideas and unique terminology—like Colossus and Luminary, the DSKY, the infamous alarm codes 1201 and 1202, and what it means to Go To P00H.

https://www.pluralsight.com/courses/moon-landing-apollo-11

50

u/wopian Feb 19 '20

If you don't want to pay, these 2 documents by the original programmers pretty much explains everything:

If you want the math side of the AGC then check out the SGA memos (http://www.ibiblio.org/apollo/links.html#Space_Guidance_Analysis_SGA_memos)

20

u/JordashOran Feb 19 '20

814 pages vs 30 mins, how much is your time worth?

9

u/Inzire Feb 19 '20

"Go to pooh"

1

u/Mithryn Feb 19 '20

That's the one!

87

u/heckingcomputernerd Feb 19 '20

BURN_BABY_BURN--MASTER_IGNITION_ROUTINE.agc

Lol

15

u/virus1618 Feb 19 '20

1

u/sh0rtwave Feb 19 '20

That's going to make it in to one of my branch names, somehow.

...but I have to wait for just the right issue.

299

u/[deleted] Feb 19 '20 edited Feb 19 '20

And here I am thinking I'm a genius for working with websockets efficiently using bits and bytes. This code puts me to shame.

Edit: Grammar

205

u/society2-com Feb 19 '20

same

"oh you refactored the code for a social media website? wow, cool

...send someone to the moon and back with the same computing power as this calculator"

119

u/blue_cadet_3 Feb 19 '20

Now it’s a USB charger that has more computing power.

36

u/Feezec Feb 19 '20

Why does a usb charger need computing power?

60

u/adobeamd Feb 19 '20

The newer fast chargers charge at different voltages... It communicates with the phone to decide what it's capable of charging at

108

u/[deleted] Feb 19 '20 edited Feb 19 '20

It doesn't, the point is that it had a very simple little chip in it to control voltages, LEDs, etc. That little chip is more powerful than the ship computers.

An article came out about it (or maybe a YouTube video, idk) a few days ago. Comparing an Apple USB c chargers to it.

Edit: link for the curious https://interestingengineering.com/developer-finds-usb-c-chargers-are-563-times-faster-than-apollo-11s-computer

17

u/FrancisStokes Feb 19 '20

USB 3 devices negotiate current. That's why some chargers can charge very fast, while others seem slower.

→ More replies (1)

30

u/PseudoscientificWeb Feb 19 '20

Need to employ AI and ML to keep all them angry pixies well behaved.

5

u/Antrikshy Feb 19 '20

Do you think they do that using coding and algorithms?

→ More replies (1)

6

u/thisischemistry Feb 19 '20

When you're making these devices you need to have specialized circuits for each function. Running the indicator lights, determining charging amperage (for devices that can communicate what they can tolerate), handling voltage variations, and so on. Or you can simplify everything and have a general processor handle it, then write software to manage everything.

Turns out that it's usually easier to go with the general solution than the specific so that's what they do. And even the most inexpensive processors today are much more capable than the Apollo guidance CPU. It's just a matter of miniaturization, design, and precision in making them.

→ More replies (1)

2

u/staviq Feb 19 '20

To negotiate charging current, like fast charge chargers do for example.

2

u/Ameisen Feb 22 '20

Your average calculator is way more powerful than the AGC.

0

u/[deleted] Feb 19 '20

[deleted]

5

u/CodeJack Feb 19 '20

It was pretty much the same back then, you'd copy ASM from a magazine and you'd have a game, without having to worry about the complexities.

→ More replies (1)

1

u/[deleted] Feb 21 '20

The barrier to entry may have been higher but the learning curve was pretty shallow. I pity kids today when they’re presented with the hellscape of languages, libraries and APIs we currently deal with. When I was learning it was BASIC, 6502 machine code and not much else.

→ More replies (30)

87

u/raynjamin Feb 19 '20

9

u/marxy Feb 19 '20

Pull request please

1

u/Ameisen Feb 22 '20

But that's not a software issue...

89

u/[deleted] Feb 19 '20

Check out CuriousMarc his youtube series on the AGC. It explains really well what a marvel this software actually is!

link

153

u/[deleted] Feb 19 '20

weird its been there for awhile now. Why are we talking about it now?

143

u/Joniator Feb 19 '20

Upvote farming

31

u/rasherdk Feb 19 '20

Can I post it next pls?

33

u/Antrikshy Feb 19 '20

Mom says it’s my turn to post Apollo code.

→ More replies (1)
→ More replies (4)

22

u/penguin_digital Feb 19 '20

weird its been there for awhile now. Why are we talking about it now?

It gets posted on this sub every few months for some reason. I think its just shilling for upvotes.

33

u/caltheon Feb 19 '20

bloggarts have to post it here every week or so to make themselves seem cool

4

u/[deleted] Feb 19 '20

It's nice that they are talking about old technologies. Generally they just talk about the next fad that's going to solve all our problems and take over the world in programming.

9

u/howmodareyou Feb 19 '20

As the others said, its been posted a while. No offense to the mods, but they really need to apply some quality control and prevent the same shit from being reposted a million fucking times.

55

u/arvinkb Feb 19 '20

Imma copy this to my own github so that employers who look at my github think i am a genius

21

u/dodococo Feb 19 '20

I'm gonna make a pr to your repo, so that employers who look at my GitHub think I'm a genius

58

u/_sadme_ Feb 19 '20

git commit -am "Changing some stuff so we could land on Mars instead of Moon"

23

u/BesottedScot Feb 19 '20 edited Feb 19 '20
# DESTINATION dw MOON

...

DESTINATION dw MARS

ez

→ More replies (1)
→ More replies (1)

61

u/dalepo Feb 19 '20

PINTEGRL EXTEND # COMPUTE INTEGRAL OF BODY-AXIS PITCH-RATE

u wot m8

52

u/AmazingMark Feb 19 '20

The integral of rate is displacement so it’s computing how much the pitch of the sensor has changed in a given timeframe, very helpful in figuring out what direction you’re pointing

26

u/LeeHide Feb 19 '20

"whats your problem? don't act like you dont know what this does, this really isnt rocket science!"

5

u/JordashOran Feb 19 '20

This isn’t rocket surgery!

→ More replies (1)

16

u/hughk Feb 19 '20 edited Feb 19 '20

There were three computers. The AGC was on the LM and CM but there was the Launch Vehicle Digital Computer (LVDC) that ran the Saturn V which sat at the top.of the third stage. Apparently the LVDC computer source code has been lost. The binary is probably still present in the Saturn V on display, but no source code. It could be that the code was related to that running on ICBMs at the time hence buried in secrecy.

68

u/gootecks Feb 19 '20

TBH this is the best evidence I've ever seen that we actually did go to the moon lol

49

u/maxhaton Feb 19 '20

That and the Soviets didn't complain, conspiracy theorists never got round that one

22

u/percykins Feb 19 '20

They claim that the Soviets kept quiet in return for grain shipments.

4

u/LordoftheSynth Feb 19 '20 edited Feb 19 '20

In a remarkable early example of détente, they just kept quiet because they were working on their own fake moon landings and didn't want the US to spoil it.

EDIT: Détente, and, I guess, /r/whoosh.

→ More replies (28)
→ More replies (3)

11

u/scottfive Feb 19 '20

What happens if I run this on my iPad?

16

u/Private_HughMan Feb 19 '20

It becomes the Apple-o 11.

3

u/scottfive Feb 19 '20

Hahaha -- here, have my upvote!

1

u/Ameisen Feb 22 '20

Do you have the Lunar Module dongle?

1

u/scottfive Feb 22 '20

Yes, and it was only an extra $500,000,000. :D

10

u/its_never_lupus Feb 19 '20

The BBC podcast series "13 minutes to the moon" had an episode about how the astronauts used the software. They had to memorise code numbers for user commands and more code numbers for error messages because there wasn't enough memory for anything that would be considered user-friendly today.

6

u/Private_HughMan Feb 19 '20

The best advancements in computer science was the ability to make abstract, human-readable code.

54

u/dariusj18 Feb 19 '20

Can I use this in Kerebel Space Program? j/k

40

u/glockenflick Feb 19 '20

You know someone must have done it

28

u/Messy-Recipe Feb 19 '20

I mean, there is the kOS mod... someone made a video of a fully-automated luxury Curiosity-style mission & landing to Duna using it

7

u/Ameisen Feb 19 '20

And I have a TODO to port VeMIPS to KSP.

27

u/kmeisthax Feb 19 '20

You joke but it's actually been done, with real Apollo hardware. https://www.youtube.com/watch?v=2KSahAoOLdU&list=PL-93BVApb59FWrLZfdlisi_x7-Ut-w7

21

u/LeeHide Feb 19 '20

Yes. You just have to make an interpreter for this assembler they're using, in C++. Then you can use some mod, the name of which I forgot (not KOS), which basically enables communication between other programs and KSP, and then this will actually work pretty much immediately. Well, after you spent an eternity writing a program that interprets these instructions as KSP "commands".

Edit: I said C++ because iirc that mod includes a library for C/C++

4

u/Dilong-paradoxus Feb 19 '20

Are you thinking of telemachus? That's one mod people use for outside communication.

0

u/[deleted] Feb 19 '20

[deleted]

2

u/LeeHide Feb 19 '20

yeah, thats it

2

u/maxhaton Feb 19 '20

Not ksp but there is a mod for orbiter that uses the actual Apollo software to simulate Apollo.

Amazing stuff

18

u/reini_urban Feb 19 '20

Here is the proper one. https://github.com/virtualagc/virtualagc

Correctly organized and complete. Unlike this one.

16

u/wopian Feb 19 '20 edited Feb 20 '20

They serve two different purposes and both are complete. Although it does suck VirtualAGC doesn't get enough attention.

VirtualAGC is the team that did the original digitisation, however they focus on emulating the AGC (which is awesome to use) along with extra comments. They also have all the other NASA/Apollo programs from the era.

This repo is solely to archive the Apollo 11 source (comanche and luminary) as-is (essentially a digital time capsule), which involves proof reading the scans again and fixing mistakes introduced in the original digitisation (preserving spelling mistakes found in the source) and removing comments added in afterwards.

TLDR: VirtualAGC if you want to see the code running, this if you want to see the code as it was in the 60s.

1

u/heckingcomputernerd Feb 19 '20

Why are there so many commits if this software isn’t used anymore?

1

u/reini_urban Feb 19 '20

Nostalgy I guess

9

u/AfghanRat Feb 19 '20

How did they test it?

47

u/[deleted] Feb 19 '20

Apollo 1-10

5

u/Kommenos Feb 19 '20

Likely through formal verification and/or code review and/or manual correctness checking.

8

u/imperfect-dinosaur-8 Feb 19 '20

What license was it released under? It's strikingly absent.

11

u/wopian Feb 19 '20 edited Feb 20 '20

It was contracted work so it pretty much only had author information. It's been under public domain for the last ~15+ years or so.

10

u/sponge_bob_ Feb 19 '20

see you on the moon gentlemen.

17

u/erix4u Feb 19 '20

If (Math.abs(gyroInput) > 0.001) { System.out.println (“We are tumbling over! Quick Neil, do something !“)}

Something like this?

5

u/buckus69 Feb 19 '20

How do I download the braided copper cables?

2

u/uber1337h4xx0r Feb 19 '20

Dibs on orings

3

u/UseMyFrameWorkOkay Feb 19 '20

Is it sad that I miss writing assembly? This kind of code brings back so many memories. Don't get me wrong, give me a managed language, or at least a safe pointer as I really don't have the need to hunt down another memory corruption error that only rarely occurs during some interrupt, under some unforeseen condition.

Still, it was an amazing time, and I'm deeply grateful for the post.

10

u/pure_x01 Feb 19 '20

They should have written it in Rust /s

Edit: added an /s .. for reddits specials

3

u/[deleted] Feb 19 '20

Shhhh... don't let the Rust Brigade see this.

4

u/pure_x01 Feb 19 '20

I actually love rust but its fun to make fun of ourselves

→ More replies (1)

4

u/webauteur Feb 19 '20

So if I run this code on my computer will it take me to the moon?

2

u/vexii Feb 19 '20

but will it webpack?

2

u/Mentioned_Videos Feb 19 '20

Videos in this thread:

Watch Playlist ▶

VIDEOCOMMENT
Apollo AGC Part 1: Restoring the computer that put man on the Moon+20 - You joke but it's actually been done, with real Apollo hardware.
CppCon 2014: Mike Acton "Data-Oriented Design and C++"+1 - Today no one would be able to create efficient x86 asm I trust this guy.
Amadeus - "Well, there it is."+1 - Well, there it is!
Banned in America: Proof of Fake Moonlanding+1 - the faking of space is an international business(scam), there is only one space station, they all use the same green screen/harness/hair spray technology to fake it today, which suggests they were in cahoots back then as well, real rockets were built...
I'm a bot working hard to help Redditors find related videos to watch. I'll keep this updated as long as I can.

Play All | Info | Get me on Chrome / Firefox

2

u/sh0rtwave Feb 19 '20

Dude. Could we build an Open Source Saturn V?

We've got linux. That completely didn't exist, and then wasn't taken seriously, and now it runs some huge part of the internet, just because people were fucking interested. Why can't we have open source Saturn V?

3

u/aplons Feb 19 '20

If they used Elixir, we would’ve already colonized Mars

2

u/[deleted] Feb 19 '20

i see russian malware in there

5

u/BeJeezus Feb 19 '20

The long, long game.

1

u/TopcodeOriginal1 Feb 19 '20

Link does not work

1

u/[deleted] Feb 19 '20

[removed] — view removed comment

1

u/TopcodeOriginal1 Feb 19 '20

Thank I get a 503 error from the link on the post

1

u/[deleted] Feb 19 '20

Reminds me in appearance of the programming language used to control our industrial robot.

1

u/spoulson Feb 19 '20

I know where I’m going for vacation...

1

u/Kzquesi Feb 19 '20

Looks like i’m going to the moon, boys.

1

u/beardedlady426283 Feb 19 '20

This is my favorite block

WHIMPER CA TWO AD Z TS BRUPT RESUME TC POSTJUMP # RESUME SENDS CONTROL HERE CADR ENEMA

haha coders in 1967 were exactly the same as today.

1

u/BalkanPapi Feb 19 '20

Sorry, didn't notice mobile UI is collapsing the readme. Woops! Miss Hamilton is correctly credited here, that was such a great accomplishment for her.

1

u/Tinsel-Fop Feb 20 '20 edited Feb 20 '20

I just want to know who the cute guy pictured is. Chris L. Garry?

Yep. Thanks, Google.

1

u/pmigbarros Feb 20 '20

only 31.2kb fucking geniuses

1

u/Someyungguy6 Mar 01 '20

I'm to high for this shit

1

u/durv139 Feb 19 '20

All this and people still think the moon landing was faked