4 ms·
> In this article, I'll try to give a brief overview of where I think Go is the ideal choice, and where I think Rust is a better alternative. Ideally, though, y
by st1x7 6y ago
> In this article, I'll try to give a brief overview of where I think Go is the ideal choice, and where I think Rust is a better alternative. Ideally, though, you should have a working familiarity with both languages.
Isn't this pretty difficult with Rust, considering the complexity, different paradigms and the fact that the language is still evolving? I could be wrong but Rust doesn't seem like a part-time every-once-in-a-while kind of language.
- klodolph 6y agoI'm an on-again off-again with Rust who uses Go more often. The Rust language has been stable for a while. It was moving faster a few years ago but is quite stable today. Reminds me of C++, where most of what is added to the language is methods that make things a bit more convenient, like char::from_u32, etc. I would say that the hard thing about Rust programming at the moment is that a number of libraries that you'd want to use are just a bit too clever for their own good, so it can require research to find a library that makes more reasonable / sane tradeoffs.
- dgb23 6y agoYes Go is more mature, both by design and because it is also slightly older. In the other hand the two languages also solve different kinds of problems in very different ways. Substantial things are being written in the Rust language for different fitting use-cases. Rust has quite a lot of reach as you can sneak it into large ecosystems to optimize parts of your application: Browsers, Nodejs and PHP (soon more) via WASM, JVM via JNI. It is also a language that attracts big shops like Amazon and Microsoft, which typically is a good sign for a young language. The reason you typically don't see Rust as a _primary_ (rather than supporting) language for (Web-)application code is that it is better suited to solve hard problems (mainly performance but also internal correctness) than it is to do generic data manipulation and plumbing, which is typical for applications. That said I personally don't subscribe to the idea of the author that the two languages are like a match made in heaven. I'm very attracted to Go and I think it is a fantastic language. But as a freelancer who works alone or in small teams I never find a reason to choose it over the other ones in my tool-belt. For example Clojure plus Rust is a much more fitting duo. They can both target browsers, Nodejs and the JVM and their use-cases are more diverged/distinct. Comming back to your point. It would be rather unpragmatic however to invest in any of the mentioned languages without already being proficient in some of the mainstream languages I think.