frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

F-35 Fighter Jet's C++ Coding Standards [pdf]

https://www.stroustrup.com/JSF-AV-rules.pdf
37•birdculture•1h ago

Comments

sema4hacker•1h ago
Before you read this, read "The Elements of Programming Style" by Brian Kernighan and P. J. Plauger.
jcims•1h ago
CTRL+F security
jandrewrogers•1h ago
Why would this be relevant?
fcpk•1h ago
And yet the F-35 is known for having extremely problematic software with many failures that have caused it to cause crashes/ejections.
lukan•1h ago
It has 9 million lines of code. The coding standards alone are 135 pages. Even with smart people, that sounds challenging to maintain that much C++ (I am surprised no one offered the "rust" advice yet)
laweijfmvo•1h ago
that’s why it’s important to codify as many of those 135 pages into linters, static analysis tools, and units tests as possible.
cft•1h ago
Rust did not exist back then. I hope they are now using it in drone codebases.
JohnLocke4•1h ago
It is often that seemingly irrelevant factors play a big role. In this case, a 141 page highly dense (and frankly boring to read) document is in its essence a liability. Engineers get bored too and it is obviously more fun to just code rather than to read a document that might aswell have been written by a lawyer.

This is also why car makers name their cars things like "Jeep Expedition" or "Ford Escape". The name doesn't change the car, but it does make it more exciting.

snapdeficit•1h ago
Did we all watch the same video of that sexy coder YouTuber chick today?
d3m0t3p•1h ago
Is that really the only thing you managed to remember ?
Celeo•1h ago
If you prefer a video format with some of the highlights, see https://www.youtube.com/watch?v=Gv4sDL9Ljww.
spapas82•1h ago
This is insteresting to me especially since this is a 2005 document. Is there a reason why C++ was chosen instead of Ada which to my knowledge was the gold standard for such software ?
bri3d•1h ago
https://web.archive.org/web/20111219004314/http://journal.th...

A large segment in this article (which is great overall) focuses on this decision. The short summary is "hiring Ada developers was hard and middleware and tooling were difficult to acquire."

While I've moved through a lot of parts of the software industry and may just be out of touch, I actually feel that this may be less the case today. I've seen a lot of school programs focus less on specific languages and frameworks and more on fundamental concepts, and with more "esoteric" languages becoming popular in the mainstream, I actually think hiring Ada developers would be a lot easier today (plus, big industry players like NVIDIA are back to using Ada since AdaCore have been so effective at pushing SPARK, which probably helps too).

jandrewrogers•1h ago
My recollection is that it came down to two factors. Pragmatically, the pool of highly skilled C++ programmers was vastly larger and the ecosystem was much more vibrant, so development scaled more easily and had a lower maintenance risk. By 2005 they had empirical evidence that it was possible, albeit more difficult, to build high-reliability software in C++ as the language and tooling matured.

These days they are even more comfortable using C++ than they were back then due to improvements in process, tooling, and language.

cm2187•1h ago
140 pages on coding style. This looks straight out of the CIA handbook for sabotage [1]. I am sure China or Russia have a version of that.

> (12) Multiply paper work in plausible ways. Start duplicate files.

> (13) Multiply the procedures and clearances involved in issuing instructions, pay checks, and so on. See that three people have to approve everything where one would do..

> (14) Apply all regulations to the last letter.

[1] https://www.cia.gov/static/5c875f3ec660e092cf893f60b4a288df/...

conception•1h ago
Also see corporate grift.
eastbound•1h ago
Funnily enough, when I look at my codebase, I often think about this handbook. I try intendedly to ascribe it to incompetence but I always have a doubt. If I only listen to my inner voice, I’d fire everyone all the time.
chrisfosterelli•1h ago
What's the right amount of standards to have when you're writing 9 million lines of code that controls a 30,000lb machine moving through the sky at mach 1 with a human life inside?
cm2187•54m ago
It is whatever they used for ALIS [1]

[1] https://en.wikipedia.org/wiki/Lockheed_Martin_F-35_Lightning...

eastbound•1h ago
> 4.10.9 Inheritance Class hierarchies are appropriate when run-time selection of implementation is required. If run-time resolution is not required, template parameterization should be considered (templates are better-behaved and faster than virtual functions). Finally, simple independent concepts should be expressed as concrete types. The method selected to express the solution should be commensurate with the complexity of the problem.

I’m a TS + Java person. Is this specific to C++ or is it just due to control freaks with low abstraction skills?

ChrisArchitect•1h ago
[dupe] https://news.ycombinator.com/item?id=46183657
moffkalast•1h ago
This is over 200 convoluted rules with multiple subpoints on 140 pages, who the hell checks compliance with this without it taking over a decade?
Quothling•51m ago
You should see some of the manuals I go through for our some of IoT devices. As far as how Lockheed Martin does it, this quote from the article linked by bri3d answers it:

> MISRA-C was used as the basis for the C applications and a coding standards was developed with the assistance of Bjarne Stroustrup, original author of the C++ language. For both C and C++ Static Code Analysis (SCA) tools are used to ensure that restricted features are not utilized. Arguments about the lack of reliability in either C or C++ are addressed by programming standards restrictions and SCA checks. In truth, this approach is probably more consistent and robust than the manual checks used for previous development efforts including Ada.

moffkalast•44m ago
Alright that makes far more sense than doing it the "bureaucratic" way. Non-compliant doesn't compile. Must be really annoying working on this codebase hah.
amelius•41m ago
Did this come with a linter?

My Mother-in-Law Is Torturing the Family with Her Beloved "Hobby."

https://slate.com/advice/2025/12/family-advice-mother-in-law-hobby-cooking.html
1•mooreds•15s ago•0 comments

What Is A2P 10DLC?

https://help.twilio.com/articles/1260800720410-What-is-A2P-10DLC-
1•mooreds•3m ago•0 comments

JHipster Online

https://start.jhipster.tech/
1•mooreds•3m ago•0 comments

Using – JavaScript

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using
1•andrewaylett•3m ago•0 comments

Atlas Obscura founders removed from board

https://www.semafor.com/article/12/04/2025/staff-cuts-and-strategy-squabbles-split-atlas-obscura-...
2•colinprince•4m ago•0 comments

Effects of low-level pre-midday lighting on markers of depression

https://www.sciencedirect.com/science/article/pii/S0022395625007034?via%3Dihub
1•wjb3•6m ago•0 comments

Coffee intake is associated with telomere length in mental disorders

https://mentalhealth.bmj.com/content/28/1/e301700
1•wjb3•6m ago•1 comments

Show HN: I turned Naval Ravikant into an AI agent

https://www.naval-nia.com/
1•arlanrakh•13m ago•0 comments

Bookish London: Photos of the Capital's Love Affair with Books

https://londonist.com/london/books-and-poetry/bookish-london
1•zeristor•13m ago•0 comments

React2shell: CVE-2025-55182 Technical Breakdown

https://www.miggo.io/post/react2shell-cve-2025-55182-technical-breakdown
1•zirak•14m ago•0 comments

"Indino" the Indigo flight cancellation tracker

https://indino.app/
2•WiseHare•14m ago•0 comments

Think First, AI Second

https://every.to/p/think-first-ai-second
1•ChrisArchitect•14m ago•0 comments

Steering the Vibe: Commits

https://staffordwilliams.com/blog/2025/12/07/steering-the-vibe-commits/
1•staff0rd•17m ago•1 comments

Tensor 1.5 is out and it's matching Claude 4.5 Opus

https://movementlabs.ai
3•movementlabs-AI•22m ago•2 comments

Gh PR-review: LLM-friendly PR review workflows in your CLI

https://agyn.io/blog/gh-pr-review-cli-agent-workflows
1•handfuloflight•28m ago•0 comments

What is digital sovereignty and how are countries approaching it?

https://www.weforum.org/stories/2025/01/europe-digital-sovereignty/
2•andsoitis•30m ago•0 comments

Spain probes whether swine fever outbreak was caused by lab leak

https://www.reuters.com/business/healthcare-pharmaceuticals/spain-investigating-whether-swine-fev...
1•geox•31m ago•0 comments

Git Worktree Manager: Worktrunk

https://worktrunk.dev/
2•maximilianroos•39m ago•0 comments

Show HN: Art-2D – A physics-based model for financial collapse prediction

https://zenodo.org/records/17805937
2•asmyros•39m ago•0 comments

Dinit – service manager and "init" system

https://davmac.org/projects/dinit/
2•doener•40m ago•0 comments

Show HN: Vibe Code WP Plugins

https://steem.dev/
1•fasthightimess•41m ago•0 comments

When is Gods Timing

https://thinke.org/blog/gods-timing-is-always-right-on-time
2•marysminefnuf•42m ago•0 comments

Chimera Linux

https://chimera-linux.org/
2•doener•42m ago•0 comments

Imperial 'Good Companion' Model T typewriter manual (1938) [pdf]

https://www.londontypewriters.co.uk/wp-content/uploads/2022/01/London-Typewriters-Imperial-Good-C...
1•camtarn•43m ago•0 comments

Bag of words, have mercy on us

https://www.experimental-history.com/p/bag-of-words-have-mercy-on-us
3•ntnbr•43m ago•1 comments

"SFH: A Minimal Semantic Layer for the Web (One File, Zero Dependencies)"

https://github.com/colts70/The-Sematic-Stack
1•sematicstackdfh•44m ago•1 comments

Does Pittsburgh Have More Bridges Than Any Other City?

https://www.pittsburghmagazine.com/does-pittsburgh-really-have-more-bridges-than-any-other-city/
3•eatonphil•45m ago•1 comments

Water leak in the Louvre damages works, museum says

https://www.theguardian.com/world/2025/dec/07/water-leak-in-the-louvre-damages-hundreds-of-works-...
1•ljf•47m ago•0 comments

Handmade Manifesto

https://handmade.network/manifesto
4•kristianp•47m ago•1 comments

University of Utah team discovers rare computer relic

https://www.youtube.com/watch?v=IR-f07LN0-Y
2•emigre•48m ago•1 comments