DEV Community

Discussion on: Have you learned Rust?

Collapse
 
faraazahmad profile image
Syed Faraaz Ahmad • Edited

I've been trying to learn it by building projects with for quite a while and built a tiny programming language with it (not feature complete by any means) and its been pretty fun so far.

The learning curve is definitely pretty high and seems daunting at first but the benefits of being able to write safe Rust code outweigh any doubts you might have.

I think one of the most important thing (at least for me) was realising that using Rust was overkill for a lot of the common projects I had in mind. Like you certainly do not need to use Rust to build a web server, a game or maybe even a GUI desktop app unless you are handing more than a million concurrent connections like in DIscord's case. IMO what Rust is right for is low level systems code like kernels, device drivers, CLI tools, and close to the metal stuff like that.

I've seen people complain that Rust has really slow compile times but so far I haven't encountered any issues with the compile times, maybe its just because I've gotten used to node_modules and Webpack taking forever :)

I'm not a big fan of the macros having separate syntax and I definitely prefer Zig's comptime keyword which functions same as macros but has the same syntax as the language.