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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How Rust can facilitate new contributors while decreasing vulnerabilities [pdf]

93 点作者 coffeeaddict1超过 1 年前

12 条评论

zevv超过 1 年前
I wanted to use Rust on embedded. I probably gave up way to early. But I really could not do it.<p>This is how to set a GPIO bit, from the official &quot;Embedded Rust&quot; book:<p><pre><code> MY_GPIO.borrow(cs).borrow().as_ref().unwrap().odr.modify(|_, w| w.odr1().set_bit()); </code></pre> I tried. I really tried.
评论 #38161976 未加载
评论 #38162004 未加载
评论 #38162008 未加载
评论 #38163950 未加载
评论 #38162101 未加载
评论 #38162092 未加载
评论 #38178707 未加载
评论 #38161952 未加载
评论 #38161913 未加载
评论 #38163157 未加载
评论 #38163717 未加载
评论 #38162032 未加载
评论 #38162293 未加载
评论 #38161991 未加载
评论 #38161949 未加载
评论 #38161909 未加载
评论 #38162030 未加载
EspressoGPT超过 1 年前
Rust newcomers are 70x more likely to mention what language they use than C++ newcomers.
评论 #38161785 未加载
jjgreen超过 1 年前
Because they&#x27;re 70x less likely to create an executable?<p>[ducks for cover]
评论 #38161646 未加载
评论 #38161880 未加载
评论 #38161620 未加载
评论 #38161650 未加载
jhoechtl超过 1 年前
There are many funny comments in here but I think they are all valid in a tragic-comic way. Rust is actually that hard that only a small share of developers will ever master it and those who master will be certainly the more intelligent one.
评论 #38161748 未加载
评论 #38161765 未加载
评论 #38161750 未加载
评论 #38161878 未加载
评论 #38161746 未加载
评论 #38161777 未加载
评论 #38161950 未加载
评论 #38161916 未加载
评论 #38161712 未加载
评论 #38163117 未加载
评论 #38161870 未加载
sundarurfriend超过 1 年前
&gt; We also found that the rate of new contributors increased overall after switching to Rust, implying that this decrease in vulnerabilities from new contributors does not result from a smaller pool of more skilled developers<p>That seems like a dubious line of reasoning. People learning the shiny new thing are going to be itching to use those skills in a (non-local, non-hobby) project, and that seems a much more likely explanation for why contributors increase during the stage where Rust is still shiny and new. An old codebase in an old language doesn&#x27;t have nearly the same appeal, where contributions are going to come mainly because people want to scratch their own itches. It&#x27;s a false comparison that doesn&#x27;t contraindicate the self-selection effect at all.
keepamovin超过 1 年前
Can anyone suggest a good rust tutorial? I think I finally should learn this.
评论 #38161680 未加载
评论 #38162009 未加载
评论 #38162071 未加载
评论 #38162366 未加载
评论 #38161776 未加载
评论 #38161938 未加载
评论 #38161977 未加载
评论 #38161684 未加载
pulse7超过 1 年前
C&#x2F;C++: You spend 45% of development time fixing memory bugs.<p>Rust: You spend 45% of development time fighting with borrow checker&#x2F;Rust syntax.<p>GC-based languages: You spend those 45% for anything else you like...
评论 #38162513 未加载
评论 #38162776 未加载
评论 #38162310 未加载
评论 #38162239 未加载
anuraaga超过 1 年前
I guess because only the 1&#x2F;70x configure their c++ toolchain with sanitizers.<p>Assuming the paper is actually relevant given anyone can post any PDF to hacker news and make it semitruth.
esjeon超过 1 年前
Rust is just doing its job here, but it&#x27;s PITA that Rust is extremely bad at letting people to write inefficiently secure code concisely (i.e. scripting languages like Python). It wants you to go all-in from the day 1.
评论 #38162952 未加载
bluetomcat超过 1 年前
Aren’t C++ newcomers embracing “modern C++”? Touching new and delete is a feature for advanced users. Most newcomers can exist happily solely with STL containers, RAII and smart pointers.
评论 #38161926 未加载
评论 #38161915 未加载
secondcoming超过 1 年前
I&#x27;m surprised that some of the Rust ports still had security issues, especially in things seemingly trivial like audio and colour management.
评论 #38162233 未加载
boxed超过 1 年前
Seems low to me...