TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

F-35 Joint Strike Fighter Coding Standard Documentation

133 pointsby neilwillgettoitabout 13 years ago

11 comments

sehuggabout 13 years ago
OH: "Any sufficiently complex DoD coding standard is indistinguishable from Ada"
评论 #3967563 未加载
评论 #3968226 未加载
评论 #3968831 未加载
评论 #3969339 未加载
mseebachabout 13 years ago
This made me laugh:<p>AV Rule 6 Each deviation from a “shall” rule shall be documented in the file that contains the deviation. Deviations from this rule shall not be allowed, AV Rule 5 [specifying the process to deviate from a "shall" rule] notwithstanding.
评论 #3967891 未加载
nn2about 13 years ago
AV Rule 25 (MISRA Rule 127) The time handling functions of library &#60;time.h&#62; shall not be used.<p>Yes everyone reinventing their own broken flat tire date routines is the way go. If they used the same silly rule on the F22 that explains <a href="http://blog.utest.com/international-date-line-bug-caused-fighter-aircraft-systems-crash/2010/02/" rel="nofollow">http://blog.utest.com/international-date-line-bug-caused-fig...</a><p>Time related code is really hard to write.
评论 #3967827 未加载
评论 #3967737 未加载
pmr_about 13 years ago
The rules seem quite reasonable and less strict than what I had expected. The libraries section mentions "Only DO-178B Level A certifiable" libraries. Are any common open source libraries among those and is there a list available somewhere? Another HN thread mentioned that there are certified C++ standard libraries but I couldn't find any vendor of such.
评论 #3967505 未加载
评论 #3967995 未加载
评论 #3968163 未加载
DanBCabout 13 years ago
The buses used on aircraft are interesting. ARINC 429 is used for commercial aircraft. MIL-STD-1553 is used for military aircraft. STANAG3838 is the EU equivalent.<p>(<a href="http://en.wikipedia.org/wiki/ARINC_429" rel="nofollow">http://en.wikipedia.org/wiki/ARINC_429</a>)<p>(<a href="http://en.wikipedia.org/wiki/MIL-STD-1553" rel="nofollow">http://en.wikipedia.org/wiki/MIL-STD-1553</a>)<p>Wikipedia suggests a logic analyser for development. That's handy, but you'd be best starting with good continuity buzzing; I've seen some of the cables being made and it's a bit of a bodge.
评论 #3967830 未加载
评论 #3968011 未加载
greenyodaabout 13 years ago
Interesting that this document is stored on Bjarne Stroustrup's (creator of C++) web site at AT&#38;T Labs. I wonder whether he had any part in writing it?
评论 #3968560 未加载
raverbashingabout 13 years ago
I remember reading this some years ago (unless this is a new version)<p>Dear C++ programmers: follow this! (with exceptions accordingly)
评论 #3968156 未加载
rmATinnovafyabout 13 years ago
My brother works for Lockheed writing technical manuals. He is the guy who writes those things. I mean, I can't even read them without runing away screaming.<p>He studied IT, but never got a job in it. I keep bugging him to get a job coding, but he thinks he can't.<p>Anyone got a job coding for someone who writes those amazingly complex manuals?
kfuryabout 13 years ago
There's an error in Rule 52. They specifically say variables shouldnt have any capital letters but their example does.
评论 #3967380 未加载
评论 #3967437 未加载
评论 #3967381 未加载
评论 #3968184 未加载
评论 #3968067 未加载
iRobotabout 13 years ago
if(enemy=true) FireWeapons(); // (sic)
评论 #3971025 未加载
xer0xabout 13 years ago
With rules like that, this plane is going to be vapourware for a long time!
评论 #3969307 未加载