News for hackers. Stuff that matters.
Re:How Swift Achieved Dynamic Linking Where Rust Couldn't by zozbot234 on Saturday November 09, 2019 @04:12AM (#21490486)
A key point of this article is exactly that Swift abstractions aren't nearly as "high level" as they could be. That "ABI-resilience by default at dylib boundaries" choice, while understandable, is also quite costly in terms of added complexity to the language and implementation. We already saw this happen to a different extent with C++; I think that Rust developers just saw the writing on the wall and that's why they ultimately chose to stick with a very C-like approach, where the user needs to deal with all ABI-resilience concerns herself.
Re:How Swift Achieved Dynamic Linking Where Rust Couldn't by jchb on Saturday November 09, 2019 @06:56AM (#21490993)
> ABI-resilience by default at dylib boundaries

Actually ABI-resilience is not the default, it is enabled by a compiler flag.

In addition to that, there are some current compiler limitations when it comes to cross-module usage of generics and inlining that affect performance. But those are not by design and can be improved in future compiler versions.