News for hackers. Stuff that matters.
Re:Ask HN: Will Rust ever become a mainstream systems progra... by soulbadguy on Monday April 10, 2017 @05:56PM (#14082910)
Nitpick : > 1. Removing structs and interfaces (in favor of what? Java-style classes and interfaces?) would make Rust more verbose, less of a systems language, and slower at runtime due to the indirect dispatch. Classes and interface can be implemented without indirect dispatch...
Re:Ask HN: Will Rust ever become a mainstream systems progra... by pcwalton on Monday April 10, 2017 @06:05PM (#14082959)
Only if you monomorphize interfaces—which gives you Rust's traits.
Re:Ask HN: Will Rust ever become a mainstream systems progra... by soulbadguy on Monday April 10, 2017 @08:46PM (#14083928)
No. THe fundamental difference is that rust traits cannot convey structural information , classes (java and c++ can)
Re:Ask HN: Will Rust ever become a mainstream systems progra... by steveklabnik on Monday April 10, 2017 @09:04PM (#14084028)
There's an open (and desired) RFC for this. It's not likely to happen soon since it's not a super high priority, but I'd be willing to bet it gets merged in the future.
Re:Ask HN: Will Rust ever become a mainstream systems progra... by soulbadguy on Tuesday April 11, 2017 @12:34PM (#14089725)
Fair enough, as long as we agree that classes/struct in C++/java a quite a different beast than just monomorphic traits.
Re:Ask HN: Will Rust ever become a mainstream systems progra... by steveklabnik on Tuesday April 11, 2017 @12:47PM (#14089871)
Absolutely, you're totally right with regards to today.