I'm increasingly convinced that the interpreter solution is the only reasonable alternative for Rust.
-
-
Show this thread
-
*I'm* actually OK with this as an opt-in compilation mode, at least for cold functions. But are the people complaining about compilation time OK with it?
Show this thread
End of conversation
New conversation -
-
-
I just want the flag to say "I'll write all my code the monomorphizable way but I'll take smaller code at the cost of worse performance so please treat all my generics and impl Traits like they're dyn". ...because
@rustembedded -
You can’t just treat generics and impl Traits as dyn. That leads to intensional type analysis which is just not worth it.
- 5 more replies
New conversation -
-
-
I don’t think you’d need a full bytecode interpreter to support runtime polymorphism, but just a bunch of RTTI mojo for boxing and unboxing values, and looking up traits by type via dictionary. Haskell type classes are implemented this way.
-
Haskell has a uniform type representation. If you go down that road with a language like Rust you end up with Swift-like intensional type analysis, which gets hairy really fast.
- 3 more replies
New conversation -
-
-
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
-
Maybe the real problem is that generics are actually bad
- 6 more replies
New conversation -
-
-
I dunno, "monomorphization" is pretty hard to say. While "I want all generic functions to be compiled to bytecode and to embed a Rust interpreter in every binary" is longer, I found it easier to say.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
wait, do people say this? monomorphization is absolutely one of my top 10 favorite things about Rust
-
Same! I'd love to know more about why people don't like it. Compile time?
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.