by snekops · 9y ago · 0 comments
How do you find Rust for this code base compared to Go?
Rust has been a challenge but now that I'm fairly proficient it's very well suited to implementing the game data structures. Parsers are much more pleasant to implement in Rust too; I've written a custom parser combinator for game input and it's much easier to handle input in Rust than it is in Go.
Pretty, pretty please!
The rationale and idea is described on https://blog.golang.org/toward-go2#TOC_5.3. and https://blog.golang.org/toward-go2#TOC_8. , with an important note to later "publish it" (i.e. just link) on https://golang.org/wiki/ExperienceReports.
Yours seems to be an awesomely perfect case — a real-world situation, with additional case study of how a new language helps you solve the pain points!
I would like to hear the negative side of switching from go to rust.
Personally, the things I really missed after moving to Rust are quick compile times and very high quality editor plugins. These are areas which the Rust community are putting a lot of effort into at the moment though so I'm hopeful they'll continue to improve.