Guillermo Rauch:DHH 在 Rust 上的观点在根本上是正确的。补充一点背景,Vercel 已经有一段时间在进行 Rust 化(严格来说…
DHH 在 Rust 上的观点在根本上是正确的。补充一点背景,Vercel 已经有一段时间在进行 Rust 化(严格来说是蟹化 🦀)。
我们迁移的首批项目之一是 Turborepo,从 Go 迁移到 Rust¹。迁移完成了,但内部对投资回报率其实颇有争议。
虽然在我们看来,Rust 在低级操作系统访问方面更好,这是像 Turbo 这样的构建系统至关重要的一点,但人类迁移成本却非常高昂。
Go 非常快。它设计得美妙绝伦。它易于迭代。我们对这次迁移感到非常矛盾,因为写代码的是人类,即使我们知道 Rust 是更好的选择。
如今,权衡因素已经改变了。“对人类最好”的东西不再一定是“对业务最好”的。
顺便说一句,Rust 也不太可能是终极工具链。我相当确信前方有更绿的草地,因为 Rust 本身就是在“代理的超音速海啸”到来之前设计的。
¹ https://vercel.com/blog/how-turborepo-is-porting-from-go-to-rust
对照原文
DHH is fundamentally right about Rust. For context, Vercel has been undergoing a Rust-ification (carcinization, technically 🦀) for a while. One of the first projects we migrated was Turborepo, from Go to Rust¹. The migration completed, but the RoI was actually quite controversial internally. While Rust was in our eyes better for low-level OS access, something crucial for a build system like Turbo, the human migration costs were very sustantive. Go is very fast. It's beautifully designed. It's easy to iterate on. We were very conflicted about the migration, because it was *humans* writing the code, *even if we knew Rust was a better choice*. The calculus has now changed. What's "best for humans" is no longer necessarily "best for business". FWIW, it's also quite unlikely that Rust is the end-all-be-all toolchain. I'm quite certain there's greener pasture ahead, because Rust itself was designed before the 'supersonic tsunami' of agents hit. ¹ https://vercel.com/blog/how-turborepo-is-porting-from-go-to-rust