TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why I Switched from Rust to Go on the Back End

40 pointsby kristoff_itover 2 years ago

8 comments

zumuover 2 years ago
So out of the 3 points, 1 is not an actual problem, but just learning curve, 2 is a mostly complete, but slightly limited mocking library, and 3 is an unoptimized local dev&#x2F;build process.<p>I actually think those are fair reasons to switch to something more straightforward for a solo dev, but none of these are true showstoppers and the story for each will get better in time. Good feedback on the Rust in general.
mountainriverover 2 years ago
Well written, Go’s sweet spot is definitely APIs and CLIs, Rust just has a bit too much overhead for this stuff unless you really need the performance
PoignardAzurover 2 years ago
&gt; <i>I have two options: either throttle my whole computer by spinning up a massive image for Rust to compile in, or deal with 3+ minute compile times. My dev cycle grinded to a halt, and I felt incredibly unproductive. I tried changing my workflow to write the code and the test before manually testing, or to not use auto-hot reload, but I felt cripped. I just couldn’t do it.</i><p>Can someone explain that part to me like I&#x27;m an idiot?<p>I don&#x27;t get it. Compiling the project is slower on a container because...?
评论 #33597839 未加载
评论 #33598453 未加载
评论 #33601985 未加载
评论 #33596885 未加载
评论 #33599785 未加载
z0n3over 2 years ago
I really do not understand your problems with building in containers.<p>It&#x27;s development, just cache target&#x2F; or COPY binary.
pjmlpover 2 years ago
Yes, compiled managed languages are much better suitable for distributed computing workloads.<p>Leave Rust for use cases where no form of automatic memory management is desired.
rowanG077over 2 years ago
I&#x27;m far from a Rust expert but isn&#x27;t 1. Just solved with traits? And 3 seems more of a bad project structure they have chosen, containers have their place. But it&#x27;s not local dev.
redanddeadover 2 years ago
Can someone outline the benefits vs Node?
评论 #33604620 未加载
laerusover 2 years ago
Why not Zig though?
评论 #33595698 未加载
评论 #33605237 未加载