Rustaceans at the border
Rustaceans at the border
Posted Apr 17, 2022 10:35 UTC (Sun) by khim (subscriber, #9252)In reply to: Rustaceans at the border by nix
Parent article: Rustaceans at the border
> If Rust grew the same amazing system Swift has to allow generic types with a stable ABI without heaps of monomorphization code bloat, that would be fabulous
It's not just Swift. Ada uses similar system, too. And it supported it for much, much, MUCH longer.
> it certainly can't be used unchanged but would need some redesign, and I'm not even sure this is possibleRust-the-language is certainly strict enough to support it. Rustc-the-compiler… nope.
This would be a multi-year effort and someone has to fund it. But it's definitely possible and I really wish someone would fund it.
Sadly Google is not one who needs or wants such a thing (they use static linking, mostly), Apple already has Swift… who can fund it, I wonder? Maybe Microsoft?
But yeah, it would be a nice and elegant solution for the stable ABI. Rust developers are thinking about small, very limited subset, but I really wish someone would fund development of real, polymorphic traits instead.
