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".
Yeah, presumably a modified Miri that would use real memory instead of an abstract heap.
-
-
Another option would be a Cranelift IR interpreter.
-
I've been thinking for a while that this could just be a lint: "changing this generic bound to `dyn` will cause X% compilation speedup and Y% reduction in binary size with ~Z% performance impact". There's no reason for every Swift implicit change cannot be an explicit Rust lint.
- 3 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.