News for hackers. Stuff that matters.

gorgeous_france

Re:Ask HN: Is Rust worth it compared to Golang? on Tuesday May 05, 2020 @11:31PM (#23087652)
I have little experience in Golang apart from reading the Tour of Go and writing toy programs, but I have more experience in Rust. In my opinion, Rust is definitely worth it, even if at the end of the day I work with other languages professionaly, its principles (ownership, borrowing, safe concurrency) really helped me to improve myself. I started to be productive with it by actually writing code, I have read the book during 3 weeks but I learned much more quickly by confronting myself directly to the compiler after. I also became productive with the right tools (vscode + rust analyzer, rust cookbook, rust by examples), the right crates (regex, lazy_static, anyhow, actix, reqwest ...) and pragmatic principles (sometimes boxing, cloning or using refcell when necessary, in non critical code). As always, use the right tool for the right job, there is a learning curve and more cognitive overhead but I really appreciate working in Rust.
Because it ticks all the boxes of performance and safety. The community, documentation and tooling are also great.