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.

Google's Lars Bergstrom: Rust teams are twice as productive as teams using C++

64 pointsby martijnartsabout 1 year ago

6 comments

steveklabnikabout 1 year ago
For everyone asking: in the talk, Lars mentions that they often rely on self-reported anonymous data. But in this case, Google is large enough that teams have developed similar systems and&#x2F;or literally re-written things, and so this claim comes from analyzing projects before and after these re-writes, so you’re comparing like teams and like projects.<p>Timestamped: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;6mZRWFQRvmw?t=27012" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;6mZRWFQRvmw?t=27012</a><p>Some additional context on these two specific claims:<p>Google found that porting Go to Rust &quot;it takes about the same sized team about the same time to build it, so that&#x27;s no loss of productivity&quot; and &quot;we do see some benefits from it, we see reduced memory usage [...] and we also see a decreased defect rate over time&quot;<p>On re-writing C++ into Rust: &quot;in every case, we&#x27;ve seen a decrease by more than 2x in the amount of effort required to both build the services written in Rust, as well as maintain and update those services. [...] C++ is very expensive for us to maintain.&quot;
评论 #39861993 未加载
评论 #39854704 未加载
评论 #39855397 未加载
constantcryingabout 1 year ago
If you ever used Rust I am sure you already are aware of one major reason for the discrepancy, which surprisingly has nothing to do with the language. The tooling around rust is just so much better.<p>CMake, include conflicts, dependency management, etc. either don&#x27;t exist or are all much less painful in rust. There is just so much annoying stuff that you do not have to deal with when using it.<p>There isn&#x27;t really much revolutionary that rust the language does. Explicitly having to describe the behavior of memory takes getting used to, but lifts some weight of your shoulders. Other than that it has a somewhat better, and less verbose, syntax than C++. But that really is it.
评论 #39854849 未加载
评论 #39855357 未加载
RicoElectricoabout 1 year ago
It&#x27;s easy to be 2x productive in a language that&#x27;s bound to be biased toward greenfield projects.
评论 #39852827 未加载
martijnartsabout 1 year ago
Full quote: &quot;Rust teams at Google are as productive as ones using Go, and more than twice as productive as teams using C++.&quot;<p>From his keynote presentation the RustNation UK conference.
评论 #39852334 未加载
评论 #39859677 未加载
Bostonianabout 1 year ago
How was productivity measured? I doubt that teams of Rust and C++ developers were given the same projects to implement.
评论 #39852074 未加载
评论 #39852694 未加载
评论 #39852375 未加载
hardware2winabout 1 year ago
Probably hobbyists were more likely to join rust side after learning about its pros?
评论 #39852793 未加载
评论 #39892915 未加载