Easy to say "monomorphization is awful and Rust should never have done it", harder to say "I want all generic functions to be compiled to bytecode and to embed a Rust interpreter in every binary".
-
-
You can’t just treat generics and impl Traits as dyn. That leads to intensional type analysis which is just not worth it.
-
Why can't you do dictionary passing?
- Još 4 druga odgovora
Novi razgovor -
-
-
I don't think having an all-or-nothing switch would be super helpful. I wish it was. There are specific situations where monomorphization isn't bad for code size because it enables the kind of inlining that reduces binary size and vtables aren't free.
-
Yeah sure, but a `-s` option to signal a preference for smaller code size over better performance would be nice.
- Još 7 drugih odgovora
Novi razgovor -
-
-
The fact that object safety is a thing means you can't just do this trivially.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.