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.

Experimenting with Rust in Chromium

221 pointsby navigaidalmost 3 years ago

7 comments

riwskyalmost 3 years ago
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 未加载
bluejekyllalmost 3 years ago
&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 未加载
ntoskrnlalmost 3 years ago
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 未加载
nikeeealmost 3 years ago
&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 未加载
gitgudalmost 3 years ago
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>
staticassertionalmost 3 years ago
I hope this works out. A memory safe browser would be a huge win for security.
评论 #31832600 未加载
blubalmost 3 years ago
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 未加载