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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is Rust stable enough for use in Production?

2 点作者 distsysdude将近 5 年前
The motto behind the nightly releases is &quot;Stability Without Stagnation&quot;, but is Rust really stable for use in building Production systems?<p>If yes, why aren&#x27;t we seeing more Open Source Project being built using Rust as compared to Golang? Is it just because of the development time?<p>I&#x27;m particularly curious about why new Open Source DB&#x27;s are choosing Golang as opposed to Rust or even C&#x2F;C++.<p>YugaByteDB had gone with C++, which IMO is a safe and tested choice. CockroachDB however seem to be investing time working around GC pauses and FFI overhead of Golang.<p>I would love to hear HN&#x27;s opinion on this topic, given that there is so much talk about Rust over here(mostly positive).<p>I&#x27;ve also come to understand through reading HN that : All that Google builds is not Gold.<p>So I&#x27;m skeptical about Golang..

2 条评论

pdimitar将近 5 年前
&gt; <i>If yes, why aren&#x27;t we seeing more Open Source Project being built using Rust as compared to Golang?</i><p>That might be your bubble. I&#x27;m seeing a ton of new Rust projects almost every other day here on HN, some of them quite serious.<p>&gt; <i>CockroachDB however seem to be investing time working around GC pauses and FFI overhead of Golang.</i><p>Twitch.TV I heard are struggling with the GC pauses as well. Golang is far from the safe choice in any situation where you need high performance. Its advantages come with some drawbacks.<p>&gt; <i>I&#x27;m particularly curious about why new Open Source DB&#x27;s are choosing Golang as opposed to Rust or even C&#x2F;C++.</i><p>I spoke with several Golang devs the last several months and the answer is quite prosaic and you might not like it: Go is easy. Rust, Haskell, OCaml are hard. People almost always opt for what allows them instant productivity and never stop to consider if that doesn&#x27;t mean problems down the road.<p>---<p>IMO Rust still has stuff to sort out -- I am particularly not fond of the many ways to do the same thing for example, and the compilation speed. Also the async&#x2F;await thing might need some more polishing still.<p>But everything I&#x27;ve written in Rust is extremely stable and performant so far and I am sticking with it. The core team has proven themselves extremely capable, many times, and they deserve a vote of confidence.
oconnor663将近 5 年前
&gt; is Rust really stable for use in building Production systems?<p>Of course. Rust code has been shipping in Firefox for years now, and most of FAANG uses Rust in production to some degree. The bigger question is whether Rust has the features you need. Async IO, for example, is still quite new. And some C++-like features like const generics are still in development.