Rust in 2018: easier to use
jvns.ca
Rust in 2018: easier to use
1–10 of 305 posts
Re: Rust in 2018: easier to use
#2I must have written around a thousand lines before needing a lifetime annotation, vs. something like 30 lines two years ago.
Re: Rust in 2018: easier to use
#3Re: Rust in 2018: easier to use
#4Anyone has suggestions on learning rust for a python programmer who is also not strong on systems concepts?
Re: Rust in 2018: easier to use
#5Re: Rust in 2018: easier to use
#6The error messages are indeed _mostly_ marvelous (and there's an ongoing effort to make them even more marvelous). Often working with `rustc` feels like pair programming for introverts. But here's a question: `rustc` often gives _actionable_ advice - how far can can you get just following that advice? You can make `rustc` happy by following suggestions, but may end up puzzled as to the reasons for the changes it sugg…
Re: Rust in 2018: easier to use
#7Anyone has suggestions on learning rust for a python programmer who is also not strong on systems concepts?
For example, local variables of a function get destroyed on function exit no matter what and you can't prevent it by adding lifetime annotation to a local variable reference you are trying to return.
That was a stumbling block for me.
Re: Rust in 2018: easier to use
#8Anyone has suggestions on learning rust for a python programmer who is also not strong on systems concepts?
Lastly, I would first advise you to work through https://learnxinyminutes.com/docs/rust/ to get a feel of the language (like dipping your toes into the water). If you like what you see, then continue from the Rust book: https://doc.rust-lang.org/book/second-edition/ .
And most importantly remember to have fun!
Re: Rust in 2018: easier to use
#9Aside from the almost completed features in the pipeline, I only see procedural macros (macros 2.0) and whatever happens to make async code easier to write[1] really impacting day-to-day code for most people.
[1] I'd really like to see F# Computation Expressions instead of async/await. I know the language experts have said Haskell-like do notation doesn't work in Rust but I'm not sure if the F# tweaks would make it work or not.
Re: Rust in 2018: easier to use
#10It is new, it is shiny but lets wait its 10th birthday before it can be taken seriously and pls provide a decent async io / http library before we even get started what else can be done in Rust.