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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rust vs. Go 2025

3 点作者 mafro17 天前

2 条评论

rstuart413316 天前
I grimaced when I read this headline in the article:<p>&gt; Fast, compact executables<p>They may be fast, but since both languages push you towards static linking neither yield compact executables.<p><pre><code> $ ls -l c-hello nm-hello -rwxr-xr-x 1 akips wheel 5000 May 9 10:19 c-hello -rwxr-xr-x 1 root wheel 526296 May 2 11:15 nm-hello $ </code></pre> With Go (I think) this is just a tool chain choice. In Rust, monomorphization means the language is more of less wedded to large executables.
skwee35717 天前
I really tried to love Go. But I guess it’s too verbose for my liking. Not having modern paradigms like iterators, or basic data structures — is a bummer, especially in web related development.<p>On top of that, the pollution of ‘if err != nil’ everything, makes the code unreadable.<p>Rust, on the other hand, is adorable, and I enjoy it every time I get a chance to write in it.
评论 #43935113 未加载
评论 #43934740 未加载
评论 #43926464 未加载