this post was submitted on 27 Apr 2024
107 points (96.5% liked)
Rust
6030 readers
1 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It is a general purpose language for me. I wrote lots of little (or not so little) scripts in Rust. I wrote high performance GPU kernels in Rust. I wrote web services in Rust. It's less hard to read and write Rust than is often claimed. Imo.
You can, of course. And if you're good enough at it, and focus on keeping it simple, you can keep the complexity down to a minimum, at least with most straightforward programs.
Buut you can say the same about other complicated languages like c++. And things like writing quick "shell script" type things are going to be pretty simple in almost every decent language. Even if the result is slightly more verbose it won't really matter.
For me the biggest difference between Rust and C++, for things like scripting, is
cargo
. Being able to just add an awesome parser, or support for a particular file-format, to my "script" with a single line in cargo.toml is awesome. In this particular way cargo is better than Python even. The amount of time spent on acquiring, setting up, and linking libraries in other languages cannot be understated.yeah rust along other new languages takes package management (and some other "hard learned lessons") seriously, which gives it an advantage over most older languages (and it's ahead other newer languages in that there is a serious amount of adoption for rust.. a package manager that has no packages to manage is not very useful)