Rust for the impatient

preview_player
Показать описание
A 10-minute lightning talk taking you from zero to Rust!

Do check out all of Amos's other excellent Rust!
(used with permission)

CREDITS & PROMO
My name is Tris Oaten and I produce fast, technical videos.

Рекомендации по теме
Комментарии
Автор

ERRATA
- The borrow checker is explained in my previous video "Rust makes you feel like a genius" (many people missed it)

- Void functions actual return an empty tuple `()` which is pronounced "unit".
- Reading a variable before it is initialised in C doesn't crash, it's undefined behaviour WHICH IS WORSE OMG
- (1..) to my great disappointment isn't infinite, it's bound by the iterators internal i32, which is up to std::i32::MAX (2, 147, 483, 647)
- Missing semicolon on line 5!
- i32 is difficult to liken to C's long, it's architecture-dependent.
- 2:35 - `assert!` should be `assert_eq!`
- 9:31 `flat_map` or `map` both work in this example
- 7:13 Error says `OErr` where it should be `Err`

NoBoilerplate
Автор

This is exactly what I want to see in a tutorial! No 30 minute talk about every function a string has, but straight to the point while respecting my intelligence. Thank you!

LucasOe
Автор

I'm only here to get a gist of what Rust is about, but I gotta say, "it panics when it unwraps and finds an error" is a wonderfully vivid image

ayior
Автор

Reading from undefined memory doesn't always crash at runtime. It's Undefined Behavior. Most commonly it either crashes or gives garbage data, but its allowed to do literally anything, including make demons fly out of your nose

chair
Автор

walked in thinking this was about the videogame rust, walked out being able to hack the pentagon.

KeinName
Автор

This was incredibly helpful is what has helped me the most so far. I'm 'fluent' in several languages so I have a solid understanding of what to expect from languages. So many videos start from the ground up, and spend 10+ minutes explaining just a single concept or two. Skipping through video after video (or article after article) just to learn the basics is exhausting. That's why I appreciate this video so much. It's not to intended to be fully comprehensive but to provide people (like myself) a bridge between their existing knowledge and how to use Rust. I came away from this video feeling like I could write a nice simple 'hello world' type of application without having to look up 'how to write a function in rust'.

Dense videos like these take a lot of time and energy to create, so just wanted to say a huge 'thank you' and share how much it's helped me. The resources that you've linked are just as helpful. Thank you!

DavebotBeepBoop
Автор

0:56 variable binding
1:23 choose integer type
2:14 tuple
4:43 struct
5:42 funtion
8:20 question mark operator
8:36 Iterator

nhanNguyen-wofy
Автор

You explained (atleast to an experienced programmer) everything necessary about Rust in 10 minutes, that's something that others do for 2 hours!

maksiksq
Автор

This is that video which assumes I am well versed in C, and now I want a quick crash course on getting up to speed with rust syntax. I rarely find tutorials like this. Every body starts a hello world program and spends 30 minutes there.

nafisahmed
Автор

As a math major in Uni, Rust notably reads a lot like advanced mathematics. Especially with the "let" keyword and infinite iterations

pknepps
Автор

Coming from several back-end languages, this video was exactly what I needed to get me started with Rust. Thank you!

supercasterjacy
Автор

Terrific: for someone new to compiling to web assembly using rust, I really appreciate how much you pack in. Agree that borrow-checker and lifetimes best separated out to another video. Rust is such a welcome evolution to programmers, improving the reliability of the programs we write!😀

uquantum
Автор

This video is truly awesome. Nowadays is very hard to find concise and good selected content about a language in only 10 minutes. We all know we won't learn the whole language in 10 minutes, but as someone who also just dives in the languages and takes its time to learn, this video cleared a lot of concepts about rust syntax (like reading and understanding the generics for functions and structs, or the '?' operator, or simply the '!' character that represents macros), it helps so much to understand what is written.

gabrieldornelles
Автор

This video is amazing, the amount of information condensed in a little time is awesome and helps a lot to learn

alfredomenezes
Автор

I have been programming in different languages for 20 years+ and no language has ever made me fall in love again with creating software as much as Rust. If you code, you owe it to your heart and soul to check out Rust.

Thanks for the amazing content in this channel by the way!

Viureify
Автор

Until now, I only had a casual interest in Rush, but your short introduction was exactly what I needed to become more interested. Well done!

EricKolotyluk
Автор

3:04 void is very C-ish. Verbally "void" is... acceptable, but the top function here does not return "void". The type is actually called "unit" and written with the empty parens (). Just writing the notation correctly would be fine imo, but this should've had a short note that the top function is equivalent to -> () and explain that "unit" is just the empty tuple and has one value, and not some special type without any values used to denote no return value

sodiboo
Автор

I'd heard of Rust, but didn't know what it was like. I didn't want to go through an hours long video describing every detail. I just wanted to get a sense of what it is like. This video gave me what I wanted. Thanks for doing the work.

brianschuetz
Автор

This video is amazing, I wish there were more resources like this with programming

theowenmccarthy
Автор

I started on this video and had to go back and watch the previous 3 videos of the Rust Talks playlist. Excelant information throughout and very worth while the time it took to watch them, certainly no second wasted, I like that.

I need more of this straight to the point, no BS technical talk that also explains everything you're seeing in code snippets. I've tried other videos before finding these, but they always gloss over small things like the difference between the tail expression of a function lacking a semicolon and explicitly returning a value from it, in which I now know there is no difference. I always get sidetracked by the little things which hampers my learning and causes frustration because I don't understand a bit that wasn't clear to me and therefore can't move on, yet the video is usually miles away from that topic by that point.

I've learned more in this 10 mins than I did in a couple of days of watching various videos, reading the Docs (which seem great once you understand half of what you're reading 😂) and experimenting with code. I now know to make great use of struts and matching, and that iterators exist which is something I'm already quite familiar with in other higher level languages. This is my first deep dive into a low level language and you've certainly made it a much more pleasant start than I could have asked for. I look forward to more videos, thank you!

PurplProto