It's really trendy to argue against single inheritance on philosophical grounds but when it comes to performance it's unbeatable.
@reillyeon Static construction of vtables. The compiler can see all virtual calls.
-
-
@pcwalton I'd love to see documentation on the in-memory layout of Rust objects. I can imagine how this works but not in 140 characters. -
@reillyeon@pcwalton afaik rusts object are C-layout structs; type-erasurey virtual-dispatch trait-type wrappers are objptr+vptr tuples?
End of conversation
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.