Rust 1.80.0: Top 10 Most Interesting Things & Blog Highlights

  Рет қаралды 11,109

Nathan Stocks

Nathan Stocks

Күн бұрын

Пікірлер: 28
@MasterHigure
@MasterHigure Ай бұрын
The capital letter sigma is used for summation because that's the first letter of the Greek spelling of the word "sum". The capital letter pi is used in exactly the same way for products for exactly the same reason. Heck, Leibniz morphed the capital sigma into an elongated S when he invented integrals to signify how closely related sums and integrals are.
@RafaelMilewski
@RafaelMilewski Ай бұрын
Awesome, LazyLock and LazyCell was a must have !
@petrusion2827
@petrusion2827 Ай бұрын
LazyLock kind of breaks my mind. Is there a special case in the compiler for it, or is there some neat trick to make it lazy even though it looks like it is just getting assigned right away? It seems to me you'd need a lambda to implement it in a lazy manner. EDIT: nevermind, Instant::now is actually a lambda, Instant::now() would be an actual call do the now function. I've been writing a lot of C# lately so I've kind of gotten used to properties not having ( )
@josephsmith5110
@josephsmith5110 Ай бұрын
I was confused about exactly the same thing as well when I read the release notes.
@clarkm
@clarkm Ай бұрын
I think OP mis-spoke when he said the expression to the right of the equals sign is lazily evaluated. It’s not, the expression to the right is evaluated at runtime just like anything else. The key as you noted is that you’re passing a function that will be lazily called and produce your value.
@CodyNeiman
@CodyNeiman Ай бұрын
For satisfying any curosities I highly, highly recommend a 2020 blog post by the creator of the series of PRs, matklad. It's called "Spinlocks Considered Harmful" and I feel is super beneficial to anyone learning advanced rust concepts.
@RootsterAnon
@RootsterAnon Ай бұрын
Very nice update! Thank you for making Rust videos for us!
@t3chrs
@t3chrs Ай бұрын
Thank you Nathan! Keep it going.
@samaelhelel
@samaelhelel Ай бұрын
Love your outro....
@amanbains5474
@amanbains5474 Ай бұрын
Very nice video and most importantly on the spot analysis , thanks a lot Nathan !!
@happytrash
@happytrash Ай бұрын
I can’t believe you used Some(42) when a Sum-41 joke was just right there waiting for you smdh Thanks for the great update overview!
@Mempler
@Mempler Ай бұрын
Small but fine changes in rust 1.80 Nothing too crazy except maybe the lazy static depreciation
@KaneYork
@KaneYork Ай бұрын
2:56 The lack of those lints is actually what was blocking exclusive ranges in match!
@kirbykilledgod
@kirbykilledgod Ай бұрын
I’ve started learning rust and to push my learning I was building an encrypted messaging app from scratch, at some point I wanted to get the bytes of a connected ip addr from the tcp connection and I thought I was insane for not being able to find out how to do it, good to see I wasn’t the only one though stupid it wasn’t a thing earlier
@davidmc971
@davidmc971 Ай бұрын
Cool, great overview of the new Rust version!
@qbasic16
@qbasic16 Ай бұрын
Wonderful presentation, thank you!
@RiwenX
@RiwenX Ай бұрын
Why are LazyLock and LazyCell not in core, though? Guess I'll keep using static_cell
@MichaFita
@MichaFita Ай бұрын
LazyCell is in core::cell, but LazyLock in std::sync, what makes sense as there's no locking in no_std.
@AbdulfatahMohammedSheikhMohamm
@AbdulfatahMohammedSheikhMohamm Ай бұрын
Thank you so much
@meka4996
@meka4996 Ай бұрын
Thank you!
@0xZeeS
@0xZeeS Ай бұрын
didnt really need the take_if - when the same functionality can be achieved in other ways. Adding too much unnecessary stuff to the language..
@thingsiplay
@thingsiplay Ай бұрын
I don't get the need for an addition like take_if either. Usually the Rust devs have very good reasoning for inclusions like this. So I wonder what the actual reasoning was. It looks unnecessary to me too.
@yondaime500
@yondaime500 Ай бұрын
It's for people who don't like seeing the "else" keyword in their code. The implementation is literally just this: if self.as_mut().map_or(false, predicate) { self.take() } else { None } But to be fair, writing just take_if is more readable if that's what you are doing. I bet clippy is going to add a manual_take_if lint to annoy people as well :)
@denizsincar29
@denizsincar29 14 күн бұрын
1.81 released. Wake up))))
@doggydoggy578
@doggydoggy578 Ай бұрын
no one cares
@judef
@judef Ай бұрын
and who asked you?
@doggydoggy578
@doggydoggy578 Ай бұрын
@@judef your mum
@RustIsWinning
@RustIsWinning Ай бұрын
​@@doggydoggy578cr1nge
8 deadly mistakes beginner Rust developers make
14:14
Let's Get Rusty
Рет қаралды 168 М.
Rust 1.78.0: Last Rust News Video...ever?
16:21
Nathan Stocks
Рет қаралды 9 М.
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 19 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 100 МЛН
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 146 М.
The US has planned their move to Rust (it's wild)
16:31
Theo - t3․gg
Рет қаралды 114 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 269 М.
Where is Rust being used?
11:46
Let's Get Rusty
Рет қаралды 81 М.
Rust 1.73.0: Everything Revealed in 16 Minutes
16:32
Nathan Stocks
Рет қаралды 7 М.
Rust: When C Code Isn't Enough
8:26
CodeAhead
Рет қаралды 162 М.
Interview with Esoteric Language Academic 2024
8:49
Programmers are also human
Рет қаралды 188 М.
Rust makes you feel like a GENIUS
10:48
No Boilerplate
Рет қаралды 406 М.
Rust's next major update is coming...
4:47
Let's Get Rusty
Рет қаралды 50 М.
The Rust Standard Library is SO Confusing...Until Now!
11:45
Travis Media
Рет қаралды 28 М.