|
@slava_pestov | |||||
|
Maybe the real problem is that generics are actually bad
|
||||||
|
||||||
|
|
Patrick Walton
@pcwalton
|
30. sij |
|
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".
|
||
|
|
||
|
Joe Groff
@jckarter
|
30. sij |
|
turning a big dial taht says "bytecode" and "monomorphization" and constantly looking back at the audience for approval like a contestant on the price is right
|
||
|
|
||
|
Slava Pestov
@slava_pestov
|
31. sij |
|
People retweeting this like they think I’m kidding
|
||
|
|
||
|
Sam Tobin-Hochstadt
@samth
|
31. sij |
|
Generics make me mad, as Guy Steele might have said.
|
||
|
|
||
|
|
Patrick Walton
@pcwalton
|
31. sij |
|
Seriously though, not having generics doesn’t make the problem go away—it just makes you choose between monomorphization or vtables manually as a programmer instead of having it be the compiler’s problem
|
||
|
|
||
|
Joe Groff
@jckarter
|
31. sij |
|
Nope
|
||
|
|
||
|
Joe Groff
@jckarter
|
31. sij |
|
Maybe @graydon_pub is right and nonuniform representation is bad though
|
||
|
|
||
|
Cameron Hart
@bitshifternz
|
31. sij |
|
I like Vec<T> but beyond that it's a slippery slope
|
||
|
|
||
|
Rustacean::from("")
@H2CO3_iOS
|
31. sij |
|
OK, Go-er
|
||
|
|
||
|
simple complex Lie algebra
@sl2c
|
31. sij |
|
Rob Pike has a burner?
|
||
|
|
||