TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JPL C Coding Standard [pdf]

79 点作者 c0rtex超过 9 年前

9 条评论

narsil超过 9 年前
&gt; There shall be no direct or indirect use of recursive function calls.<p>&gt; [The] absence of recursion prevents runaway code, and helps to secure predictable performance for all tasks.<p>I can see the reasoning here, but wow, banning recursion..
评论 #10157529 未加载
评论 #10157404 未加载
alayne超过 9 年前
<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4339999" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4339999</a>
c0rtex超过 9 年前
Here&#x27;s a great video with a bit more background about why you&#x27;d want to adopt such a standard.<p><a href="https:&#x2F;&#x2F;www.usenix.org&#x2F;conference&#x2F;hotdep12&#x2F;workshop-program&#x2F;presentation&#x2F;holzmann" rel="nofollow">https:&#x2F;&#x2F;www.usenix.org&#x2F;conference&#x2F;hotdep12&#x2F;workshop-program&#x2F;...</a>
nwmcsween超过 9 年前
&gt; The goto statement shall not be used...<p>&gt; ...often results in improved code clarity<p>Um not really, if goto is used _right_ it clarifies code immensely.
评论 #10157455 未加载
technion超过 9 年前
&gt;The JPL recommended static analyzers are fast, and produce sparse and accurate messages.<p>I&#x27;m interested in what analyzers they may be recommending. I think this is a field that&#x27;s come a long way since 2009.<p>A lot of these standards could actually be implemented as rules in modern products, which would assist with using them.
评论 #10160115 未加载
dahart超过 9 年前
It&#x27;s lovely reading a coding standards document that is 100% focused on code safety, and has zero stylistic argument.<p>These rules are a good reminder for me, too. A lot of them were habit when I was doing C&#x2F;C++ on game consoles. Using more dynamic scripting languages on machines with more and more memory over the years has helped me forget. But most, if not all, of these rules have valid analogues in any language that can be aspired to.
Nickersf超过 9 年前
Why were parts of the standard omitted? Money, national security, or both?
评论 #10163931 未加载
评论 #10157736 未加载
ilogik超过 9 年前
I was hoping there would be a mention of always using metric units.
pisipisipisi超过 9 年前
Anyone happens to have a link to MISRA-C PDF ? :)
评论 #10163946 未加载
评论 #10157901 未加载