Live data from Hacker News

A half-hour to learn Rust (2020)

fasterthanli.me

11–20 of 86 posts

Re: A half-hour to learn Rust (2020)

#11
post #2

I know this is not going to make me an expert in Rust. That'll probably take 10 years. But this is just the kind of thing I was looking for to get started with Rust. Thanks for sharing it here.

If becoming an expert in Rust had to take 10 years, that would mean there are currently not a single Rust expert in the world

I cannot disagree with that.

Re: A half-hour to learn Rust (2020)

#15
post #9

This is, more or less, how I learned Rust circa 2015 (might have been a couple years later). I quickly started to write programs like I would have in C but got completely thwarted by the borrow checker because I wanted pointers everywhere. This made me throw my hands up and leave for other languages. However, 8 years later I did eventually come to love rust after learning the One Weird Trick of using indices instead…

Isn't that one weird trick more or less defeating the whole purpose of rust's ownership/borrowing model by moving the problems one level up the ladder?

Having seen that kind of opinion stated elsewhere, it seems what most people would like is rust minus borrowing, and I feel I would get behind that too.

Re: A half-hour to learn Rust (2020)

#18

(2020)

Thanks for pointing that out. As an utter newbie to Rust, I can't guess whether or not the tutorial has become dated.

By far the biggest changes to Rust in recent times are non-lexical lifetimes (IIRC, introduced in the 2018 edition), and async functions (introduced in Nov. 2019). So if you're reading any introductory material after Nov. 2019, or anything after 2018 that isn't related to asynchronicity/futures/etc., it'll be reasonably similar to modern code.

Re: A half-hour to learn Rust (2020)

#19
post #5

Earlier quoted context omitted.

Thanks for pointing that out. As an utter newbie to Rust, I can't guess whether or not the tutorial has become dated.

And has it?

That's perhaps the most pressing problem of Rust: not providing a concrete specification that can be targeted by projects and implementations.
Post reply on HN