RustConf 2023 - The standard library is special. Let's change that.

  Рет қаралды 10,765

Rust

Rust

3 ай бұрын

Пікірлер: 37
@jhpratt
@jhpratt 3 ай бұрын
Speaker here! Ask any questions you may have :)
@thedaddyofdaddies
@thedaddyofdaddies 3 ай бұрын
I think I prefer explicitly importing preludes in general. Nice talk.
@wyattherkamp7154
@wyattherkamp7154 3 ай бұрын
I find the lang item for Box extremely weird. Is anything preventing Box from being a normal type?
@foehammer2127
@foehammer2127 3 ай бұрын
What utility would the standard library being part of cargo actually have?
@linusdikomey1611
@linusdikomey1611 3 ай бұрын
Interesting talk! How does all of this affect compilation times?
@ferdynandkiepski5026
@ferdynandkiepski5026 3 ай бұрын
4:23 you said that sqrt of a floating point can be rewritten with inline assembly. Unless I'm misunderstanding how rustc handles inline assembly I believe that this would make it impossible for the compiler to vectorize it. The thing with intrinsics currently is that they're such a mess that it's hard to say where they should go so that users can find them if you want to remove them from the std library.
@TheMCMaster
@TheMCMaster 3 ай бұрын
From your talk, it sounds like making the standard library just a regular crate is the destination, but the journey will only make everything better!
@whatbirdisthat
@whatbirdisthat 3 ай бұрын
Stability attributes feel very Rust-y and if I had a dollar for every time I got a deprecated warning with zero information as to what to use instead!! Like, 30+ years of those! Thank you for the talk and those great ideas🎉
@kelownatechkid
@kelownatechkid 3 ай бұрын
This is really interesting. Thank you for the presentation!
@unalive_me
@unalive_me 3 ай бұрын
I actually really like that idea for adding preludes for crates that automatically get brought into scope. I think as long as the user of the crate has to opt in to use the prelude, I wouldn't have any issues with it. I feel like that is something that I enjoy about Rust's std lib so I think it would be a great addition for any crate to be able to provide that option too.
@aleksanderkrauze9304
@aleksanderkrauze9304 3 ай бұрын
Great talk!
@jocketf3083
@jocketf3083 3 ай бұрын
I suddenly want all these things!
@martinschrodt5797
@martinschrodt5797 3 ай бұрын
@jhpratt: Fantastic talk. Thank you.
@aaronchen3748
@aaronchen3748 3 ай бұрын
What languages treat standard library completely the same as user libraries?
@simonhartley9158
@simonhartley9158 3 ай бұрын
Even if it doesn't get to 100%, there are benefits by aspiring to do so. Additionally by dogfooding, there's an incentive for the authors to make Rust as good as possible.
@JannisAdmek
@JannisAdmek 3 ай бұрын
zig :)
@leodog896
@leodog896 3 ай бұрын
Deno
@RiwenX
@RiwenX 3 ай бұрын
Interesting talk, thank you
@konkitoman
@konkitoman 3 ай бұрын
I really like this, the things i will like to be present in Rust 2024 is std as a crate and opt in prelude.
@jhpratt
@jhpratt 3 ай бұрын
Nothing for preludes would be tied to an edition. Nor will it be happening that quickly :)
@jamesl5149
@jamesl5149 3 ай бұрын
Crate preludes will be awesome. I'd prefer them to be opt-out than opt-in
@jhpratt
@jhpratt 3 ай бұрын
The problem then arises of a dependency adding/extending a prelude, causing your code to break.
@antoniong4380
@antoniong4380 3 ай бұрын
Opt-out preludes are what modpacks are for minecraft. You're bound to get surprising features by using someone else's prelude (modpack), but instead of up to 200 mods, it might be maybe even 800 features
RustConf 2023 - The Art and Science of Teaching Rust
28:01
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 73 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 26 МЛН
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 20 МЛН
Rust Before Main - Ryan Levick - Rust Linz, July 2022
31:34
RustConf 2023 - How Powerful is Const
22:58
Rust
Рет қаралды 13 М.
Joscha at Microsoft
48:46
Simuli
Рет қаралды 1,4 М.
TDD: The Bad Parts - Matt Parker
30:17
VMware Tanzu
Рет қаралды 53 М.
Learning Rust the wrong way - Ólafur Waage - NDC TechTown 2022
51:54
NDC Conferences
Рет қаралды 98 М.
Constructors Are Broken
18:16
Logan Smith
Рет қаралды 99 М.
When to Choose Rust • Tim McNamara • YOW! 2022
56:14
GOTO Conferences
Рет қаралды 16 М.
Makepad: Designing modern UIs with Rust - Rik Arends - RustNL 2023
55:20
Rust Nederland (RustNL)
Рет қаралды 50 М.
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 2,4 МЛН
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,5 МЛН
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,9 МЛН
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 1,2 МЛН