Iterators in Practice

  Рет қаралды 22,126

Let's Get Rusty

Let's Get Rusty

Күн бұрын

Пікірлер: 33
@letsgetrusty
@letsgetrusty 3 жыл бұрын
📝 Get your *FREE Rust cheat sheet* : www.letsgetrusty.com/cheatsheet
@3masonthree
@3masonthree 3 жыл бұрын
Absolutely loving these videos, watching these make so much more sense then everything else I've seen
@parttimelarry
@parttimelarry 3 жыл бұрын
Thanks, looking to pick up some Rust, glad there is a channel focusing on this. Subscribed!
@minastaros
@minastaros Жыл бұрын
I agree, what the user actually want is not "loop over something, see if it fits, and then stuff it manually into something else" but "just gimme only those that match, and bundle them up, by the way".
@zainjadoon759
@zainjadoon759 3 жыл бұрын
btw when you finish the book, you should make tutorials of ggez the game library because it uses a lot of stuff that you learn in the rust book and it is relatively easy. You could make tutorials on how to make flappy bird or other games for example.
@nyzss
@nyzss 3 жыл бұрын
i'm still watching the videos and learning more about rust and i've been thinking of doing something with ggez, bevy or amethyst (thinking more about going bevy as i've heard that it's more straightforward, but i'm still not exactly sure, some other opinion are welcome), and would love to see some kind of tutorial in any of these or other libraries.
@letsgetrusty
@letsgetrusty 3 жыл бұрын
Will definitely do game dev at some point!
@zainjadoon759
@zainjadoon759 3 жыл бұрын
@@nyzss I have heard that ggez was really easy and straightforward and I am pretty sure it can work with wasm with ggez wasm.
@nyzss
@nyzss 3 жыл бұрын
@@zainjadoon759 thanks for the advice, yea also heard that ggez was quite easy so i'll give it a try first, and also thanks @Let's Get Rusty for these videos!
@exoticcoder5365
@exoticcoder5365 3 жыл бұрын
Yo I catch up all the episode now, Thanks so much so much 🙏🏻
@SilvestreVivo
@SilvestreVivo 3 жыл бұрын
These videos are gold, thank so much for your effort and content. These explanations are much better that what I read in the book.
@hanyanglee9018
@hanyanglee9018 6 ай бұрын
Iter probably has better performance in general because the data locality is always better. This is more true for massive iteration. Very similar to the new pipe operator in c++
@lee45283
@lee45283 3 жыл бұрын
Keep up the good work!
@kurt7020
@kurt7020 Жыл бұрын
If I had a dollar for every time I've seen an exponential time solution unknowingly implemented via iterators+adaptors - Use them like spice. Invididually, they may be zero cost, but this does not mean algorithms don't matter! They do! In the wrong combination they can indeed produce absolute horror shows of extremely slow code. Iterators or not, always be cognizant of what you are writing.
@SJ23982398
@SJ23982398 Жыл бұрын
Can you give an example? Or a link to examples?
@redcrafterlppa303
@redcrafterlppa303 2 жыл бұрын
Can you please make a video about making iterators for collections and the different types of iterators?
@inx1819
@inx1819 3 жыл бұрын
yess
@GolangDojo
@GolangDojo 3 жыл бұрын
Please make a tutorial on how to get that sexy voice
@thoyo
@thoyo 3 жыл бұрын
May I ask, what do you use Rust for in your everyday life? Is it primarily used for your job?
@letsgetrusty
@letsgetrusty 3 жыл бұрын
I have a full-time job that doesn't involve coding in Rust unfortunately. I am learning Rust in my free-time.
@thoyo
@thoyo 3 жыл бұрын
@@letsgetrusty Gotcha, thanks for replying. I only ask because I don't see a lot of jobs for Rust. I'm mainly learning it to code Solana smart contracts.
@jacobhinchliffe6659
@jacobhinchliffe6659 3 жыл бұрын
@@thoyo is solana fun to develop for because I'd like to make a token maybe lol and I have nothing to make in rust atm
@thoyo
@thoyo 3 жыл бұрын
@@jacobhinchliffe6659 that's really cool! I hope you keep us updated on your progress
@hymppex
@hymppex 3 ай бұрын
@@thoyomy guy you still alive ?? (Am learning it for solana as well, if you’d be my mentor i would be very grateful)
@JuanDeSouza7
@JuanDeSouza7 2 жыл бұрын
holy s*** you have office, bedroom and kitchen all in the same room?
@SatumangoTheGreat
@SatumangoTheGreat Жыл бұрын
Might be a digitally inserted backdrop. I think his kitchen looks exceptionally tidy every time. Unlike mine :-)
@unperrier5998
@unperrier5998 8 ай бұрын
If your iterator is in the critical path then you'll feel the cost of the so called "zero cost high level abstraction" as you like to name them. You're telling the viewer there's virtually not cost when there's one and in most cases that's probably fine but in some places where performance matters (remember, Rust touts being as performant as C, if not more performant!!!) then those abstractions will waste cycles calling functions like next().
@zainjadoon759
@zainjadoon759 3 жыл бұрын
first
@TheBabooner
@TheBabooner Жыл бұрын
playlist.iterator().like.collect()
Publishing a Rust Crate!
14:02
Let's Get Rusty
Рет қаралды 21 М.
The genius of Rust constructors
6:08
Let's Get Rusty
Рет қаралды 42 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 130 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 125 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 34 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 90 МЛН
Why do developers hate Rust?
8:20
Let's Get Rusty
Рет қаралды 134 М.
Procedural Macros in Rust
11:33
Let's Get Rusty
Рет қаралды 44 М.
Where is Rust being used?
11:46
Let's Get Rusty
Рет қаралды 106 М.
Object Oriented Programming in Rust
7:10
Let's Get Rusty
Рет қаралды 42 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 262 М.
Intro to async/.await in Rust
13:57
Let's Get Rusty
Рет қаралды 89 М.
Rust for mission critical software
8:48
Let's Get Rusty
Рет қаралды 36 М.
Using Trait Objects in Rust
13:32
Let's Get Rusty
Рет қаралды 40 М.
Rust's Alien Data Types 👽 Box, Rc, Arc
11:54
Code to the Moon
Рет қаралды 148 М.
How Rust rose to dominance (by accident)
11:01
Let's Get Rusty
Рет қаралды 39 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 130 МЛН