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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Experimenting with Rust in Chromium

221 点作者 navigaid将近 3 年前

7 条评论

riwsky将近 3 年前
Even though it&#x27;d be a while before this really affects the Chrome codebase, it&#x27;s a real testament to how well Rust nails the safe-but-low-level niche. Google does not lack resources to tool (or staff!) a C++ codebase correctly, nor does it lack resources to build languages[1] targeting these specific problems; that they&#x27;d consider Rust isn&#x27;t just because &quot;it&#x27;s there&quot;.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;wuffs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;wuffs</a>
评论 #31831571 未加载
评论 #31832201 未加载
bluejekyll将近 3 年前
&gt; Rust is not yet available on all Chromium platforms (just Linux and Android for now)<p>The beginning of this sentence didn’t surprise me, but the fact that it’s just Linux and Android did. Rust supports macOS and Windows really well, so I wonder what the gap is here?<p>&gt; Facilities and tooling in Rust are not as rich as other languages yet.<p>Is this meant in the context of Chromium?
评论 #31834021 未加载
评论 #31832668 未加载
ntoskrnl将近 3 年前
It was bound to happen eventually. Big projects like Chromium tend to move slowly so it will probably be a few years before any Rust code ends up in a shipped release. But this is a great start!
评论 #31831192 未加载
评论 #31831158 未加载
nikeee将近 3 年前
&gt; The language, at least for now, is Rust.<p>What are the alternatives in the context of Chromium development as a replacement for C++?
评论 #31832834 未加载
gitgud将近 3 年前
It&#x27;s funny that it was created in Mozzila and first used in the [1] servo browser, and now is getting adopted by Mozzila&#x27;s rival Chromium<p>[1] <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Rust_(programming_language)" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Rust_(programming_language)</a>
staticassertion将近 3 年前
I hope this works out. A memory safe browser would be a huge win for security.
评论 #31832600 未加载
blub将近 3 年前
I have a hard time imagining a more accidentally complex piece of software than a web browser written in C++ <i>and</i> in Rust.<p>All the chaos of the so-called web standards, decades of accumulated C++ complexity and the eccentricity and burgeoning complexity of Rust on top. Getting assigned to such a project must be akin to punishment.
评论 #31835887 未加载
评论 #31833785 未加载