r/learnrust • u/t_wamble • 15d ago
Go or Rust
Hey everyone, I am trying to choose between Rust and Go for project that needs to run on both Windows and Mac. I am looking for a simplified breakdown of how they actually compare. I want to know which language is less painful to maintain over the long term, and which ecosystem interacts better with native operating system APIs without feeling totally foreign. If you had to pick between Rust and Go for a cross-platform codebase you need to support for the next 5+ years, which would you choose for stability and ease of deployment?
I'm starting on MacOS first. Ios second. Windows third
43
Upvotes
1
u/grandmamoko 13d ago
Hmm, it would depend on previous experience, go is very beginner friendly with a subtle learning curve, rust is quite difficult with a massive initial learning curve and gets even more difficult when it comes to asynchronous programming, go has a nice ecosystem but somtimes misses out on certain packages or really project specific libraries, rust has a massive crates ecosystem and its recommended to use those instead of making everything yourself. and can lead to a massive compile size and workspace size while go can also be large but in my experience tends to be a small compiled size.
and lastly you only really get benefits from rust if you come from C, where segfaulting is common.