DEV Community

Discussion on: Why Rust is a great language to learn

Collapse
 
thefluxapex profile image
Ian Pride

Learning Rust right now and I'm enjoying it! I don't like the file sizes, but it's not that bad; I'm a so-called hobbyist and write most of my software for myself (with some exceptions); usally cli tools, so I like as small of an application as I can (💕Fortran💕 ).

I just wrote the same program in Fortran and Rust and my Fortran bin without dependencies is 24k while the Rust one is 2.4MB. Admittedly, the Fortran AppImage with dependencies is 2.1MB, but it's still smaller and an average of 50ms faster (after a 1000 test loop) than the Rust one. And admittedly, Fortran isn't necessarily the best option for everything, but I usually find ways to do most everything I need in it and I also admit that I've been writing Fortran for many years, while I just started Rust so I'm sure my refactor for Fortran is probably better than what I wrote in Rust.

I learn for fun and personal use so none of the other reasons for using it matter to me.

I do like what they claim to accomplish, trying to get rid of lots of issues with other languages, but I'm not experienced with any of that enough to say much about it.

Nice article though and thanks for sharing!