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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Have you migrated from Go to Rust?

1 点作者 TXV将近 5 年前
Our current codebase is written in Go, mostly web servers, middleware and queue workers. Some of Rust strengths (memory safety, concurrency, absence of GC) look well suited for our problem domain. We currently have the opportunity to overhaul part of our system to reduce some legacy technical debt, so I'm wondering if it makes sense to rewrite in Rust. I'm not looking to solve a specific technical challenge. Just curious. So, if you migrated from Go to Rust, I would love to hear about your experience.

2 条评论

karmakaze将近 5 年前
[I use Go and love Rust]<p>Go has all those things except &quot;absence of GC.&quot; It you&#x27;re more careful you can eliminate a lot of reallocations (e.g. make sure to use capacity param whenever known).<p>What is the nature of &quot;legacy technical debt&quot; and how would it be better&#x2F;different with Rust?
mytailorisrich将近 5 年前
Isn&#x27;t concurrency a strength of Go? Does your current implementation perform well?<p>You do not put forward any good reason to make the huge effort that rewriting a production system in another language entails.