Introduction to Rust Part 1

  Рет қаралды 138,460

Ryan Levick

Ryan Levick

Күн бұрын

Пікірлер: 184
@ilia2178
@ilia2178 4 жыл бұрын
Thank you KZbin algorithm for suggesting this video after I watched a few rust game videos.
@mimosveta
@mimosveta 3 жыл бұрын
not gonna get me thanking, I was looking for this type of video, but youtube suggests game videos to me. I like, never watch game videos, barely play any games too, not that I think it's bad if you do, it's just that games make me anxious beyond belief, like "why am I playing this game, with my limited time on this earth, I should be doing something useful, I might as well apply for my old job at sbb if I want to spend my life this unproductive", so I can't. I even feel anxious wasting time typing this comment, goodbye
@HowDoYouUseSpaceBar
@HowDoYouUseSpaceBar 3 жыл бұрын
@@mimosveta What.
@slopeydopey3108
@slopeydopey3108 3 жыл бұрын
@@mimosveta wasting your life is not enjoying it - liberal humanist.
@stefaneduard8169
@stefaneduard8169 3 жыл бұрын
@@mimosveta it's not a waste of time as long as you enjoy it
@matikb.6733
@matikb.6733 2 жыл бұрын
@@mimosveta It's healthy to have a break from time to time. Also We are just humans: There is nothing wrong in "wasting" time sometimes. The thing is We should keep on comming back to doing stuff after the breaks. - Do good stuff DX
@theartist8835
@theartist8835 4 жыл бұрын
I would argue that this is the best way to teach a programming language; learning by building things. please continue to upload such videos.
@ESPPsycho
@ESPPsycho 2 жыл бұрын
Dude you are a natural teacher, I felt like I was sitting front row in a quality workshop. More!
@blackbriarmead1966
@blackbriarmead1966 2 жыл бұрын
As someone who has explored plenty of other languages but found writing rust intimidating, such a direct walkthrough really helps out
@heidtmare
@heidtmare 4 жыл бұрын
I'm well aware of all this information but still found myself enjoying the entire video. Well done sir!
@vgsuresh
@vgsuresh Жыл бұрын
really good stuff Ryan... love the patience while explaining concepts and starting very small with very basic stuff. Thanks a lot for this.
@cryptopatrick
@cryptopatrick 4 жыл бұрын
THIS WAS GREAT!! Loved the pacing and patient elaboration of details. Looking forward to part 2.
@alexarnesen4036
@alexarnesen4036 3 жыл бұрын
This video is by far the best intro I've found in several weeks looking. At 150% speed, this is a great, well-paced overview for professional programmers with some fp background.
@fa9913
@fa9913 2 жыл бұрын
I started watching this video after finding myself struggling mid way through "The Book". Great content and well explained, keep up the good work !
@Matteinko
@Matteinko 4 жыл бұрын
I have not listened anything yet...but I have been watching Microsoft Flight Simulator series and you are great there. I bet this will make the list of the top Rust video for Beginner. I am going to enjoy now.
@lucaivaldi4520
@lucaivaldi4520 4 жыл бұрын
Thank you Ryan! Putting together a program, even a simple one, touches so many different topics and gives the opportunity to have a taste of how to tackle problems.
@AmitErandole
@AmitErandole 2 жыл бұрын
this is much better than introducing people to standard data structures in the language. We can always learn those on the way
@kevinpruett
@kevinpruett 4 жыл бұрын
This was...EXTREMELY well done! Thanks for putting this together Ryan! For a complete Rust beginner, this was a really useful resource. Looking forward to Part 2.
@guns4liberty
@guns4liberty 2 жыл бұрын
This tutorial is one of the best there is for Rust. Take your time and dig in. Having a chat while the class is in progress is a tremendous plus.
@justaspeedrunner
@justaspeedrunner 2 жыл бұрын
May be nearly two years late to this video but I am really enjoying it and you help me understand what I'm writing very well. I appreciate you for making these videos and you've most certainly gained a sub from me
@this.channel
@this.channel 4 жыл бұрын
Hey, just wanted to say, this is the best beginners series I found on rust. Thanks for making it.
@nitinrajyadav14
@nitinrajyadav14 4 жыл бұрын
Thanks Ryan!!, this's nicely detailed introduction to the Language, very beginner friendly.
@SarcTiann
@SarcTiann 3 жыл бұрын
This is the better tutorial that I seen to date. Thanks from Argentina Ryan
@wagiewojak
@wagiewojak 2 жыл бұрын
Thank you, this is the best rust tutorial on youtube! Finally somebody that explains the language features rather then how to do a if, for loop or any other boring stuff that can be learned in like few minutes.
@petacardi
@petacardi 2 жыл бұрын
1:31:48 best disapointment expression ever! Great introduction to Rust, thank you!
@pog_champ
@pog_champ 2 жыл бұрын
Very engaging video, watched the whole thing while coding alongside. Going to the second part now!
@Yassinebridii
@Yassinebridii 4 жыл бұрын
One of the best learning materials i have watched, not just about rust, patient and explains well. Really looking forward to this series.
@andydataguy
@andydataguy 3 жыл бұрын
Glad your video got suggested!! I've been looking for Rust streamers 🙌🏾
@jhduan382
@jhduan382 3 жыл бұрын
You are the BEST teacher I have ever seen, THANKS!
@neilclay5835
@neilclay5835 2 жыл бұрын
I thought your explanation in the last quarter of this video was excellent, it's the best explanation I've come across for borrowing, ownership and references in Rust. Sorry to see that you're not producing videos any more (from what I can see anyway)
@saravanansaibaba8374
@saravanansaibaba8374 2 жыл бұрын
Wow!. Fantastic session. I loved every minute of it. Learned a lot on of the very important things on getting started with Rust.
@vunpac5
@vunpac5 3 жыл бұрын
I appriciate the depth you go into on each symbol, and the inner workings of the language. A lot of people mention parts but exclude enough to keep you confused.
@NuLuumo
@NuLuumo 3 жыл бұрын
Rust-lang feels like a hybrid of javascript and C, at least syntax-wise. I like it :)
@FaithOlusegun
@FaithOlusegun 2 жыл бұрын
Yes Thanks Ryan! This was timely man! I've been worrying and asking everywhere does this 'match' expression in Rust mean like umm 'Switch' statement in my other languages - C#, Java. Thank you very much and I've just subscribed to your channel! You and Bogdan from Let's get Rusty are my two favourites on Rust! 😀
@colin1389
@colin1389 4 жыл бұрын
This was awesome, can't wait for part two!
@vpsingh3475
@vpsingh3475 2 жыл бұрын
Thanks, very nicely explained Rust concept with VS code IDE and helpful available tools.😊
@AmiranBokhua
@AmiranBokhua 2 жыл бұрын
Much appreciated Ryan, using this to learn Rust as first programming language
@sokhuong-uon
@sokhuong-uon 2 жыл бұрын
The best I could find on KZbin
@angelbythewings
@angelbythewings 2 жыл бұрын
You cleared almost all doubts i had regarding programming in rust
@chsblue2
@chsblue2 3 жыл бұрын
This is an incredible introduction with many details that really brings it to the point. Loved every second and hope to soon find the time + project to get my hands dirty with Rust myself. Awesome work! Thank you, Ryan.
@user-sw1wq8lh2w
@user-sw1wq8lh2w 3 жыл бұрын
Simply an amazing first video, loved this, thanks.
@davidrappo8148
@davidrappo8148 4 жыл бұрын
Hi Ryan, Great presentation! It was very easy to understand and follow. I am looking forward to watching part two. I am interested in Rust because of it's focus on safety without compromising performance (no garbage collector). Thanks,
@alexandersemionov5790
@alexandersemionov5790 3 жыл бұрын
The way you teach is so satisfying. I am mentally getting doctors degree in CS. Thanks
@huntersimmons7878
@huntersimmons7878 3 жыл бұрын
I hope you see this Ryan, but regardless, thank you! This is one of the best coding tutorials I have ever seen/done.
@andriesvanwyk3226
@andriesvanwyk3226 2 жыл бұрын
Really enjoyed this, Ryan. Thank you! Please keep going
@darkarie
@darkarie 3 жыл бұрын
I am learning a ton with your videos Ryan, thank you and keep it up!!
@eduardogomesheleno9812
@eduardogomesheleno9812 2 жыл бұрын
I loved your explanation about the difference between String and &str
@anupjadhav
@anupjadhav 2 жыл бұрын
This was great, Ryan. I learned a lot
@MrSparc
@MrSparc 4 жыл бұрын
GREAT IDEA this video series! Thank you so much for your excellent explanations and your commitment to share your knowledge with the community!
@WorstDeveloper
@WorstDeveloper 4 жыл бұрын
Very nice tutorial. Looking forward to part 2. If you don't mind me giving you a tip, then I would love if you changed to a dark mouse pointer in Windows. This will give it a white border and make it a million times easier to see while you're pointing at things in VS Code. :) Recording and uploading in at least 1080p would also help quite a bit to make it less blurry.
@anonanon5295
@anonanon5295 4 жыл бұрын
Hey Ryan, just wanted to say I really enjoyed this. I'm on break from University at the moment and plan to deep dive in on Rust during my time off. This was a very good introduction and it would be great if you continued the series!
@mariogutierrez4989
@mariogutierrez4989 2 жыл бұрын
Wow, you have some patience. Just wish some of the viewers had the same patience. They slowed it down a lot. It's OK to ask questions but please ask good questions.
@tylerhanson133
@tylerhanson133 2 жыл бұрын
Great introduction! Very patient and I need my hand held with something like rust.
@amerispunk
@amerispunk 3 жыл бұрын
Yes, this is a bit of a tedious treatment but actually just what Rust calls for. Thank you so much. Highly recommended!
@ADITYAKUMARking
@ADITYAKUMARking 3 жыл бұрын
got to know about you on microsoft rust series. this is awesome content.
@oscarromeu2129
@oscarromeu2129 3 жыл бұрын
Thank u Ryan, this was an amazing master class, definetely awesome!
@amidfallen
@amidfallen 2 жыл бұрын
I like that idea of "view"... I don't know why, but it makes more sense rather than "reference". I guess it is less abstract, thus easier to imagine.
@adi_trades99
@adi_trades99 2 жыл бұрын
Excellent tutorial. I understand rust a little bit better now
@andydataguy
@andydataguy 2 жыл бұрын
Love your videos. Hope you start making videos again! 🙏🏾🙏🏾🙏🏾
@zurvey
@zurvey 4 жыл бұрын
Have you considered doing a series for Rust as a *first* language? An entire generation of programmers learned C as their first programming language. I would *LOVE* to see a series of Rust classes for absolute beginners to programming. After all, it's somewhat ridiculous to demand that all newbies learn an entire different language to start, throw it away, THEN learn Rust. If Rust is where they'll be, then we should stop taking shortcuts with training and do Rust training right: from fundamentals to the top level. Thanks for listening.
@abessesmahi4888
@abessesmahi4888 4 жыл бұрын
Awesome, This is what I was waiting for. Thank you so much sir 🙏
@pedroluzio
@pedroluzio 2 жыл бұрын
Dont know but I was happy that you mention, running on refrigerator before running on windows :)
@OOJokerOO1991
@OOJokerOO1991 2 жыл бұрын
Thanks for this great tutorial! Learned a lot from this :)
@awilliamwest
@awilliamwest 2 жыл бұрын
A little slow for someone not *totally* new to Rust, but I enjoyed it. One thing I learned is that semicolon is a statement *separator*, not a terminator. For example, I had an extra semicolon at the end of a function, and that changed its return type to unit () (empty tuple). Deleting the extra semicolon fixed the function, to return the value from the expression before the semicolon.
@riazbacchus3962
@riazbacchus3962 3 жыл бұрын
enjoyed this. Thanks for the video Ryan
@acebesmonte
@acebesmonte 2 жыл бұрын
This is a very good help since Im a C#/NodeJS dev.
@robertkottelin4970
@robertkottelin4970 3 жыл бұрын
Best tutorial that I've senn, thank you!
@alex.b.h
@alex.b.h 2 жыл бұрын
43:57 the most used phrase by devs 🤣🤣🤣 *"something isn't quite right... but will run... it will run fine"*
@muuubiee
@muuubiee 3 жыл бұрын
28:42 why is arugments being named as mutable? It's not changing any data, it's just holding it. Copying data should not require the data to be mutable, that makes no sense. There should not be a requirement for anything being mutable here, until there's an assignment after the initialization... Never mind, now I understand. It's because of the keyword next. I suppose it's a pop type of thing, rather than moving a pointer. I'll leave comment here in case somebody else is confused.
@Vagelis_Prokopiou
@Vagelis_Prokopiou 4 жыл бұрын
Excellent video/resource. Thanks a lot Ryan for you efforts.
@rad1m
@rad1m 2 жыл бұрын
Great video! Thanks a lot. I've learned a lot today.
@TheStringBreaker
@TheStringBreaker 2 жыл бұрын
*Amazing serious! THANK YOU so much for this! Subbed!
@calebp1211
@calebp1211 2 жыл бұрын
Fantastic video, v insightful!
@guy6311
@guy6311 4 жыл бұрын
Thanks Ryan!! One more extension for VSCode is CoreLLDB to debug Rust.
@beewyka819
@beewyka819 3 жыл бұрын
1:16:30 actually it wouldn't just be a warning, as then `contents` would be of type `Result`, so if other parts of your code are expecting it to be a String then you'll get some errors.
@pavelperina7629
@pavelperina7629 3 жыл бұрын
Thanks a lot! Even the first 20 minutes are interesting. Not yet sure how to build or run release in VS Code, but I've already found a tip with cargo build --release, cargo run --release useful. The program that reads 80MB of data in tiles and combines them into 8400x4800 array is significantly faster. I'm trying to rewrite one project from Julia. Julia did this in maybe two seconds or 0.6s in parallel version (which is weird considering I/O, but data are likely cached). In Rust it took like 15s and out of sudden it's instant in the release so I don't need to bother with writing parallel code. And Julia is interesting, it's super-fast, but an immature Python alternative with quite good profiling and benchmarking. But I don't need 200 times faster Python as much as I need C++ alternative for programs that are quite simple, should be fast and have several external dependencies. These are a major pain. Ten years ago I learned Java for this reason.
@pavelperina7629
@pavelperina7629 3 жыл бұрын
Ok after 16 hours from zero knowledge, I rewrote 400 lines of code rendering Voxel terrain (distance map) from the height map. To my surprise, loading of data from disc is 0.12s vs 0.25s but without clamping data that make no sense and that are rare. Rendering is 2.4s vs 3.2s. So Rust wins over Julia, but not by much. Except when I write @Threads.thread before for loop in Julia. It's quite surprising that speed is comparable, despite Julia has some extra checks in type conversions.
@techvision8639
@techvision8639 4 жыл бұрын
Please keep the series going with some learning plan; Will help us to stick to the learning
@swaystar1235
@swaystar1235 3 жыл бұрын
1:18:35 So here shouldnt the contents variable be of type Result ? Why does it show as string
@herr6239
@herr6239 4 жыл бұрын
you are very talented with teaching others, thanks
@liptherapy
@liptherapy 4 жыл бұрын
It would be really nice if the videos could be higher resolution and less blurry. It is not very nice looking at it for hours but the content is so good!!
@heater5979
@heater5979 4 жыл бұрын
Nothing blurry here. Resolution is just fine. Looks great.
@albedobond3827
@albedobond3827 3 жыл бұрын
Really Thanksful!! Thank you so much Mr. Levick!
@omolluska
@omolluska 3 жыл бұрын
This is really excellent content. Thank you for doing this!
@chrishanthacosta4093
@chrishanthacosta4093 3 жыл бұрын
excellent Ryan!!. Please do a vide on on writing web servers - actix-web ... etc
@rainerwahnsinn3262
@rainerwahnsinn3262 3 жыл бұрын
1:10:55 Does the return keyword always refer to the function? I’m confused because one could also think about returning early from within the match arm…
@johngiraltbedford
@johngiraltbedford 2 жыл бұрын
I'm using the command prompt to follow along and I get this message after cargo.tomly "cat is not recognized as an internal or external command, operable program or batch file.
@delaskarcaicedo5778
@delaskarcaicedo5778 Жыл бұрын
Thank you so much!!! This was awesome!!!!
@pshar2931
@pshar2931 4 жыл бұрын
Thanks for the effort. I really liked it.
@Darkev77
@Darkev77 Жыл бұрын
Hey Ryan, where did you go :( I tried to reach out via email but I couldn't find any, I see you haven't been active for a while, is everything okay?
@SibzelChebst
@SibzelChebst 3 жыл бұрын
Thank you for the fantastic introduction!
@JohnPywtorak
@JohnPywtorak 2 жыл бұрын
Thanks, great intro. Personally I’d rather see the “if let …” syntax instead of unwrap() along with expect(). As new comer to Rust to many tutorials bail out and use unwrap() and I had no idea what it is doing. You end up having to explain Result and Option enums, so to me unwrap is unfortunate in tutorials. I understand and appreciate it in the language. PS: aren’t macros Rust code anyways so format! ultimately is Rust code, it is just a compile time action instead of runtime which is an awesome feature. Maybe I have that wrong.
@liveonphoenix5045
@liveonphoenix5045 Жыл бұрын
looks like the exception handling in RUST is a little bit similar to the API Optional of Java or any other languages that had it?
@LokeshBalla
@LokeshBalla 3 жыл бұрын
Thank you for this series.
@jessicabarrington8473
@jessicabarrington8473 3 жыл бұрын
How do I go back and find an existing cargo package in rust ?
@luispe84
@luispe84 4 жыл бұрын
Thanks Ryan for sharing your knowledge 🙌🏽
@mateusoliveira2776
@mateusoliveira2776 2 жыл бұрын
The main thing that gets me when trying out rust is that some things are hidden in a weird way (to what I'm used to, at least). For instance, I've written a function to convert a string into a boolean because, frankly, I didn't think rust would have that in the std lib, also I didn't find it by typing `bool::` and `bool::from()` or those magical `.into()` didn't seem to work. But then I figured if you import `FromStr` you can do `bool::from_str("blah")`. Why is it "hidden" like that? How do I find this stuff? Why doesn't it come along with `bool`, or `str`?
@yrvinescorihuela6689
@yrvinescorihuela6689 2 жыл бұрын
I like your headphones! What is the model/brand?
@abhikjain
@abhikjain 4 жыл бұрын
Nice video!! Just some suggestions, as a viewer: can we have full screen coding, with a bit greater font size ? thanks!!
@mikesmith853
@mikesmith853 3 жыл бұрын
Excellent material. Thank you!!
@Kondensatorr
@Kondensatorr 3 жыл бұрын
Amazing introduction! Thank you
@parthikpatel6108
@parthikpatel6108 4 жыл бұрын
This is amazing and super useful, thanks!
@catharsis222
@catharsis222 4 жыл бұрын
Low-level in the physical level.... high-level in rewards and flexibility & control
@calderarox
@calderarox 3 жыл бұрын
THIS WAS GREAT!
@DevinBidwell
@DevinBidwell 3 жыл бұрын
My man, why are your videos not more popular??
@johngiraltbedford
@johngiraltbedford 2 жыл бұрын
I'm also missing the main.rs when I do tree...
@repzo5551
@repzo5551 2 жыл бұрын
Just came across this video, it would be cool if you added chapters to it
Introduction to Rust Part 2
1:56:03
Ryan Levick
Рет қаралды 32 М.
When Zig Outshines Rust | Prime Reacts
23:31
ThePrimeTime
Рет қаралды 148 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 66 М.
Async Rust Is The Bane Of My Existence | Prime Reacts
35:36
ThePrimeTime
Рет қаралды 111 М.
Implementing Rust's Vec From Scratch
2:04:03
Ryan Levick
Рет қаралды 29 М.
What Makes Rust Different?
12:38
No Boilerplate
Рет қаралды 209 М.
I spent six months rewriting everything in Rust
15:11
chris biscardi
Рет қаралды 455 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 342 М.
Rust for the impatient
10:43
No Boilerplate
Рет қаралды 780 М.
Rust: Generics, Traits, Lifetimes
35:34
The Dev Method
Рет қаралды 52 М.
Considering Rust
1:03:57
Jon Gjengset
Рет қаралды 193 М.
Keynote: Advent of Code, Behind the Scenes - Eric Wastl
46:01