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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

From Erlang to Lunatic

54 点作者 bkolobara大约 2 年前

2 条评论

ilovecaching大约 2 年前
As a &quot;systems&quot; programmer I feel strongly that Rust is the wrong fit for most applications, but is suffering from web and application programmers needing that next fix of rewriting the world in a new shiny toy.<p>You could have a garbaged collected language with an actor model, implicit yielding, easy runtime inspection, easy to learn, easy to teach, but instead you&#x27;re picking Rust because it&#x27;s cool. The author could have just used Elixir, or Go, and they&#x27;d spend half of the time they did learning and writing Rust code on the millionth web framework&#x2F;userspace work stealing scheduler. I mean, they know Erlang, so why not Elixir? Why not Phoenix which they&#x27;ve been working on for like 10 years now. It actually astonishes me how often these very well trodden wheels get reinvented for no reason at all because web frameworks are apparently all developers work on these days.<p>Systems programming absolutely needs Rust, but this &quot;it&#x27;s a great fit for everything&quot; has to stop. You don&#x27;t need manual memory management. You don&#x27;t need to think about lifetimes. You don&#x27;t need explicit yielding. If you&#x27;re choosing Rust because you just want to use a complicated language, learn a new toy, feel like your web app needs to go at light speed, maybe stop and consider that you&#x27;re doing yourself and whoever your building your software for a disservice when something like Go is way easier and will cover the 95%. I have seen these garbage collected languages scale to incredible loads with good engineering that focused on good architecture rather than magic tools.<p>If on the other hand you actually need to write software that&#x27;s going to run on a TPM, or in the kernel, interface with a new hardware protocol, ok, use Rust. C is obviously a huge danger and we&#x27;ve known that for a very long time. That&#x27;s what Rust is good at, and trying to use it for everything just leads to code bases that are way more complicated than they ever needed to be. And truly, being as simple as possible is almost always the right way to go.
评论 #34851382 未加载
评论 #34850980 未加载
评论 #34851305 未加载
评论 #34851458 未加载
评论 #34850566 未加载
评论 #34851011 未加载
评论 #34851256 未加载
评论 #34856679 未加载
评论 #34851270 未加载
yellowapple大约 2 年前
Doesn&#x27;t Lunatic support anything that compiles to WASM? Why insist on using Rust when one&#x27;s running into pain points with it?
评论 #34851878 未加载