1452

Margaret Hamilton, NASA's lead developer for Apollo program, stands next to all the code she wrote by hand that took humanity to the moon in 1969

you are viewing a single comment's thread
view the rest of the comments
[-] Iron_Lynx@lemmy.world 24 points 2 years ago

Imagine having to look for the missing semicolon in there.

[-] troyunrau@lemmy.ca 4 points 2 years ago

It's probably written in Fortran66 or similar. No semicolons, but so many line numbers...

[-] ThatBaldFella@lemmy.world 21 points 2 years ago

It's written in assembly. You can check out the source code on GitHub.

[-] troyunrau@lemmy.ca 12 points 2 years ago* (last edited 2 years ago)

Oh that's so hardcore

edit: looking at the git repo, it looks like it was a team of seven, and she was the lead. So it isn't all her code. Still super impressive :)

[-] Revan343@lemmy.ca 4 points 2 years ago

The other big notable thing for assembly is that it isn't portable. Assembly is very different for every processor architecture, unlike something like C where you may have to make some adjustments between an x86 vs ARM proc, in assembly you're basically rewriting it from scratch

[-] Karyoplasma@discuss.tchncs.de 3 points 2 years ago

Also, this is an obscure assembly variant specifically for the computers in the Apollo mission. Not sure about the specifications on that, maybe there is a handbook, but I doubt it.

Rewriting the code to x86 or anything seems improbable since you'd pretty much have to guess what the instructions are actually doing.

[-] Hypersapien@lemmy.world 12 points 2 years ago* (last edited 2 years ago)

For people unfamiliar with assembly, it's one step up from raw 1s and 0s. Just vaguely human readable abbreviations for given sets of 1s and 0s. There are no built in loops or if statements, you have to build all that shit yourself from scratch every time you want to use one. And there's exactly one built in variable you can use called the register

[-] Revan343@lemmy.ca 4 points 2 years ago

Lol Fortran; it was written in Apollo Guidance Computer assembly; I frankly wouldn't be surprised if she knew Mel Kaye

The story of Mel, for the uninitiated

[-] Kinglink@lemmy.world 0 points 2 years ago

Assembly. Like most embedded systems (at least up until we had enough power to waste on higher languages)

this post was submitted on 11 Jul 2023
1452 points (100.0% liked)

Next Fucking Level

3155 readers
1 users here now

Next Fucking Level Videos and Gifs.

Rules

  1. Be respectful and inclusive.
  2. No harassment, hate speech, or trolling.
  3. Engage in constructive discussions.
  4. Share relevant content.
  5. Follow guidelines and moderators' instructions.
  6. Use appropriate language and tone.
  7. Report violations.
  8. Foster a continuous learning environment.

founded 2 years ago
MODERATORS