Re:Exploring the software that flies SpaceX rockets and star...
by mrfusion on Tuesday May 11, 2021 @09:01AM
(#27117538)
Do you have a link to bjarnes writeup? My ask Jeeves skills are failing me.
[ Parent
| on HN ]
Re:Exploring the software that flies SpaceX rockets and star...
by LeifCarrotson on Tuesday May 11, 2021 @09:14AM
(#27117659)
I don't think it was actually written by Bjarne, I think it was K. Carroll and others from Lockheed Martin, but I expect the document is this one:
https://www.stroustrup.com/JSF-AV-rules.pdf
which is linked from the Applications page of Bjarne's website.
Re:Exploring the software that flies SpaceX rockets and star...
by maxlybbert on Tuesday May 11, 2021 @11:36AM
(#27119388)
There are a couple others as well:
https://stroustrup.com/autonomics09.pdf
Re:Exploring the software that flies SpaceX rockets and star...
by jb1991 on Tuesday May 11, 2021 @09:24AM
(#27117788)
Ah, thanks for the link; yes this is the one I was referring to. I had thought it was by Bjarne since it was on his site, but either way, it's an interesting read.
Re:Exploring the software that flies SpaceX rockets and star...
by funklute on Tuesday May 11, 2021 @09:15AM
(#27117681)
This one might also be interesting https://web.cecs.pdx.edu/~kimchris/cs201/handouts/The%20Powe...
It's basically just a quick list of 10 useful rules to follow for safety-critical code.
(I've seen a different format in the past, that wasn't quite as fancy, but this is the only version I can find at the moment)
Re:Exploring the software that flies SpaceX rockets and star...
by TchoBeer on Tuesday May 11, 2021 @10:03AM
(#27118233)
Interesting. I wonder how compiler-dependent rule 10 is. Like, if I'm writing for a compiler that gives really bad and usually unhelpful warnings that make my code worse... but I suppose these are more very strict guidelines than rules.
Re:Exploring the software that flies SpaceX rockets and star...
by pjc50 on Tuesday May 11, 2021 @10:31AM
(#27118539)
That section explicitly addresses that question and says you should rewrite it in a way that avoids the warning, since "usually unhelpful" means "sometimes critical". It's certainly an uncompromising view but that's what you get when failure is disastrous.