Rust 1.80.0: Top 10 Most Interesting Things & Blog Highlights

preview_player
Показать описание

Links:

0:00 Intro
0:23 In the blog post...
0:26 1. LazyLock & LazyCell
2:08 2. Cargo checks cfg names & values by default
2:23 3. Exclusive ranges in patterns
2:55 Not in the blog...
3:03 4. Support C23's variadics without a named parameter
3:34 5. for_loops_over_fallibles lint now works with references
3:54 6. Four size & alignment functions added to the standard prelude
4:35 7. Correctly lowercase Σ
4:54 8. Bit functionality for IP Addr types
5:25 9. macro_metavars_in_unsafe
5:42 10. doc_lazy_continuation
6:00 11. cargo fix now works with IPv6
6:40 13. Option::take_if
7:21 Sponsors Update!
8:02 Commenter thank you!
8:10 Today's Artwork
9:02 Outro
9:07 ???

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

Awesome, LazyLock and LazyCell was a must have !

RafaelMilewski
Автор

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.

MasterHigure
Автор

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 ( )

petrusion
Автор

Very nice update! Thank you for making Rust videos for us!

RootsterAnon
Автор

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!

happytrash
Автор

2:56 The lack of those lints is actually what was blocking exclusive ranges in match!

KaneYork
Автор

Very nice video and most importantly on the spot analysis, thanks a lot Nathan !!

amanbains
Автор

Small but fine changes in rust 1.80

Nothing too crazy except maybe the lazy static depreciation

Mempler
Автор

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

kirbykilledgod
Автор

Cool, great overview of the new Rust version!

davidmc
Автор

Why are LazyLock and LazyCell not in core, though? Guess I'll keep using static_cell

RiwenX
Автор

didnt really need the take_if - when the same functionality can be achieved in other ways.
Adding too much unnecessary stuff to the language..

xZeeS