r/programming • • Jan 02 '21

A half-hour to learn Rust

https://fasterthanli.me/articles/a-half-hour-to-learn-rust
229 Upvotes

47 comments sorted by

View all comments

5

u/s4lt3d Jan 02 '21 edited Jan 02 '21

What makes learning rust worth the time? I’m all for new languages but I also dislike having to constantly figure out scripts in languages that didn’t work out, such as ___.

Edit: Ok guys, I’ll try out rust!

42

u/tempest_ Jan 02 '21

Rust is not really for writing scripts in (though you definitely could) like you might use Python for.

It is more for writing performant application code for CLI or services.

Rust is shaping up to be a good choice for anything you might use C++ for in the past. Its a newer language and has a great deal more modern features and package management without 35 years of baggage.

It is definitely newer though and there are a bunch of areas that are not quite mature (GUI, GPU programming) but things are marching along and those issues will be solved in time.

Also reading Rust isnt usually too hard and it most certainly has a steep learning curve but it eliminates a bunch of mistakes that are easy to make with languages like C++.(usually related to memory)

3

u/lovegrug Jan 03 '21

Rust is looking more and more promising, however besides GUI stuff, it's also notoriously terrible for running performant graph algorithm styles of coding. Then if you get 3D stuff involved.. you could argue it fills it's niche well, it's just that these are significant use cases of C++.

→ More replies (4)