Тёмный

Rust 1.79.0: Top 10 Most Interesting Things 

Nathan Stocks
Подписаться 3,4 тыс.
Просмотров 7 тыс.
50% 1

New changes Rust 1.79.0! Sponsor me on GitHub for more videos: github.com/sponsors/CleanCut/
Links:
Rust 1.79.0 Blog Post - blog.rust-lang.org/2024/06/13...
Artwork - foundation.rust-lang.org/img/...
0:00 TL;DR on sponsorship status
0:17 Rust 1.79.0
0:37 1. Stabilize 5 WASM target features
1:05 WASM 1. Non-trapping float-to-int conversions
1:36 WASM 2. Import/Export of Mutable Globals
1:47 WASM 3. Sign-extension operators
1:56 WASM 4. Bulk memory operations
2:10 WASM 5. Extended Constant Expressions
2:26 2. Prevent dashes in Cargo's lib.name
2:43 3. readonly_write_lock
3:08 4. manual_clamp
3:30 5. Stabilize importing main from other modules or crates
4:03 6. cargo add is now MSRV-aware
4:30 7. manual_unwrap_or_default
4:40 8. const_is_empty
4:51 9. Tier 3 VisionOS targets
5:10 10. Implement FromIterator for (impl Default + Extend, impl Default + Extend)
5:57 Sponsors
6:49 Today's Artwork
7:24 Outro
Sponsor me on GitHub for more videos like this: github.com/sponsors/CleanCut/

Наука

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@jackkendall6420
@jackkendall6420 4 дня назад
Hey Nathan, thanks for still making this video with all the sponsor stuff in mind. I would completely understand if you declined to continue this series (too many people who burn out dedicating their lives to something like this for nothing in return), but it is highly enjoyable content.
@JamesHarrisonHaribo
@JamesHarrisonHaribo 15 дней назад
I really did like the more in-depth walkthrough of all changes version-to-version, it was hugely informative.
@NathanStocks
@NathanStocks 15 дней назад
So did I! As I get more sponsors, I will increase the length of my videos. With enough sponsors I would love to start making more frequent videos about other Rust news and topics as well.
@seriousmasterful
@seriousmasterful 15 дней назад
Just finished, Ultimate Rust Crash Course on udemy. Keep up the good work.
@NathanStocks
@NathanStocks 15 дней назад
That’s wonderful to hear! Thank you for your kind words!
@lsp0
@lsp0 11 дней назад
@@NathanStocks hey you really ought to put links to that in your description
@pyprem
@pyprem 15 дней назад
Clear and concise, thanks a lot for this overview.
@NathanStocks
@NathanStocks 15 дней назад
You’re welcome! Thank you for your kind words.
@shadamethyst1258
@shadamethyst1258 15 дней назад
Does the tuple collect() means that one can collect into nested tuples? That's quite cool
@NathanStocks
@NathanStocks 15 дней назад
I tried it...and YES! fn main() { let input = vec![1, 2, 3, 4, 5]; let ((doubled, tripled), squared): ((Vec, Vec), Vec) = input.iter().map(|x| ((x * 2, x * 3), x * x)).collect(); assert_eq!(doubled, [2, 4, 6, 8, 10]); assert_eq!(tripled, [3, 6, 9, 12, 15]); assert_eq!(squared, [1, 4, 9, 16, 25]); }
@JonDisnard
@JonDisnard 15 дней назад
These are great. Good job.
@NathanStocks
@NathanStocks 15 дней назад
Thank you!
@jorgeosorio1613
@jorgeosorio1613 15 дней назад
Great video
@NathanStocks
@NathanStocks 15 дней назад
Thank you!
@irlshrek
@irlshrek 15 дней назад
i had a good laugh at number 8 haha
@NathanStocks
@NathanStocks 15 дней назад
😄
@pfeilspitze
@pfeilspitze 15 дней назад
Hopefully 8 is smart enough to not warn on constants from other crates, where no, I don't know if it's empty.
@NathanStocks
@NathanStocks 15 дней назад
I have so many questions about your comment! 😂 First, why did the library author export an empty constant? I have never seen that! Second, why do you need to check if the library’s constant is empty? Third, you imply that you would rather call is_empty at runtime than peek at the value of the constant after a lint tells you about it-why?
@pfeilspitze
@pfeilspitze 15 дней назад
@@NathanStocks Because if it's a constant in another crate it can change, so checking once doesn't work. Maybe it's a constant from a build-time environment variable, or something. It's like how `char::UNICODE_VERSION < (16, 0, 0)` is true right now, but probably soon won't be, and clippy would be very wrong to tell me not to check it and just remove the else.
@NathanStocks
@NathanStocks 15 дней назад
Huh, interesting.
@t3chrs
@t3chrs 15 дней назад
First! So happy to find this video today.
@NathanStocks
@NathanStocks 15 дней назад
Congrats on the first post! I’m also glad you found this video today! And apparently before everyone else! 😂
@olsuhvlad
@olsuhvlad 10 часов назад
13 And no man hath ascended up to heaven, but he that came down from heaven, even the Son of man which is in heaven. 14 And as Moses lifted up the serpent in the wilderness, even so must the Son of man be lifted up: 15 That whosoever believeth in him should not perish, but have eternal life. 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved. 18 He that believeth on him is not condemned: but he that believeth not is condemned already, because he hath not believed in the name of the only begotten Son of God. 19 And this is the condemnation, that light is come into the world, and men loved darkness rather than light, because their deeds were evil. 20 For every one that doeth evil hateth the light, neither cometh to the light, lest his deeds should be reproved. 21 But he that doeth truth cometh to the light, that his deeds may be made manifest, that they are wrought in God. (Jn.3:13-21)
Далее
You Should Really Know These Traits in Rust
18:36
Просмотров 10 тыс.
Rust 1.78.0: Last Rust News Video...ever?
16:21
Просмотров 8 тыс.
Became invisible for one day!  #funny #wednesday #memes
00:25
КУДА БОЛЬНЕЕ УПАСТЬ С ВЫСОТЫ?
25:11
5 Strong Opinions On Everyday Rust
7:16
Просмотров 59 тыс.
Interview with Esoteric Language Academic 2024
8:49
Просмотров 92 тыс.
What Makes Rust Different?
12:38
Просмотров 198 тыс.
I can’t believe they built this in React
16:08
Просмотров 57 тыс.
Choose the Right Option
18:14
Просмотров 66 тыс.
Rust 1.77.0: 70 highlights in 30 minutes
30:46
Просмотров 8 тыс.
Tonic makes gRPC in Rust stupidly simple
19:08
Просмотров 41 тыс.
Best mobile of all time💥🗿 [Troll Face]
0:24
Просмотров 530 тыс.