News for hackers. Stuff that matters.
Re:We found an undocumented bug in the Apollo 11 guidance co... by buredoranna on Tuesday April 07, 2026 @09:20AM (#47674969)
Still my all time favorite snippet of code.

    TC    BANKCALL    # TEMPORARY, I HOPE HOPE HOPE
    CADR  STOPRATE    # TEMPORARY, I HOPE HOPE HOPE
    TC    DOWNFLAG    # PERMIT X-AXIS OVERRIDE
https://github.com/chrislgarry/Apollo-11/blob/master/Luminar...
Re:We found an undocumented bug in the Apollo 11 guidance co... by f1shy on Tuesday April 07, 2026 @11:45AM (#47677128)
Cadr here has no relation with lisp cadr, right?
Re:We found an undocumented bug in the Apollo 11 guidance co... by jacquesm on Tuesday April 07, 2026 @11:54AM (#47677253)
Re:We found an undocumented bug in the Apollo 11 guidance co... by jasomill on Tuesday April 07, 2026 @01:20PM (#47678525)
Correct.

CADR is an AGC assembly directive defining a "complete address" including a memory bank, in this case a subroutine to be called by the preceding BANKCALL (TC = transfer control, i.e., store return address and jump to subroutine), which switches to the memory bank specified in the CADR before jumping to the address specified in the CADR.

For a brief explanation of AGC subroutine calls, see [1].

CAR and CDR in Lisp come from the original implementation on the IBM 704, where pointers to the two components of a cons cell were stored as the (C)ontents of the (A)ddress and (D)ecrement fields of a (R)egister (memory word).

(CADR x) is just shorthand for (CAR (CDR x)), i.e., a function that returns the second element of a list (assuming x is a well-formed list).

[1] https://epizodsspace.airbase.ru/bibl/inostr-yazyki/American_...

Re:We found an undocumented bug in the Apollo 11 guidance co... by donkeyboy on Tuesday April 07, 2026 @10:21AM (#47675839)
Can you explain this to me?
Re:We found an undocumented bug in the Apollo 11 guidance co... by dylan604 on Tuesday April 07, 2026 @10:45AM (#47676257)
I think the point was the comments more than any of the code requiring explanation. There's nothing more permanent than a temporary solution
Re:We found an undocumented bug in the Apollo 11 guidance co... by buredoranna on Tuesday April 07, 2026 @10:45AM (#47676254)
Wish I could... but I know of it from a previous HN post, where there is some discussion on its purpose.

https://news.ycombinator.com/item?id=22367416

Re:We found an undocumented bug in the Apollo 11 guidance co... by foxyv on Tuesday April 07, 2026 @02:03PM (#47679045)
I'm having a really bad Mandala effect right now where I remember some XKCD that wrote a poem about this. Maybe I'm thinking of another comic.
Re:We found an undocumented bug in the Apollo 11 guidance co... by watt on Tuesday April 07, 2026 @04:12PM (#47680760)
Oh, it's Mandala effect now? I could swear it was Mandela before.
Re:We found an undocumented bug in the Apollo 11 guidance co... by foxyv on Tuesday April 07, 2026 @07:56PM (#47682873)
I think it was Madnela?
Re:We found an undocumented bug in the Apollo 11 guidance co... by mindcrime on Tuesday April 07, 2026 @09:38PM (#47683734)
It was definitely Madalaine.
Re:We found an undocumented bug in the Apollo 11 guidance co... by alexjm on Tuesday April 07, 2026 @06:05PM (#47681948)
Are you thinking of "The Codeless Code" poem about this?

https://www.thecodelesscode.com/case/234

Re:We found an undocumented bug in the Apollo 11 guidance co... by foxyv on Tuesday April 07, 2026 @07:38PM (#47682739)
Yes! Thank you!
Re:We found an undocumented bug in the Apollo 11 guidance co... by zeristor on Wednesday April 08, 2026 @10:42PM (#47698734)
From the Editor’s note:

“I tried to keep to Shelley’s unusual (and non-standard) rhyme scheme for the sonnet, but I departed from it in the second-to-last line for poetic reasons. For a language which excels in stealing words from other cultures, English has an appalling lack of rhymes.”

Perhaps with deeper analysis, and a few choice new words this issue could be remedied.

Although that’s a paradoxically tedious engineering solution to improve a languages beauty.

From another angle how comes other languages are more poetic, are they older and have had more time to evolve to be more poetic? Or were the speakers who wrought the language just more poetic.

Re:We found an undocumented bug in the Apollo 11 guidance co... by shagie on Tuesday April 07, 2026 @05:53PM (#47681819)
It's reference in The Codeless Code - https://thecodelesscode.com/case/234