3 ms·
Will Swift ever be able to span all the way down to enable Rust-like performance in places where it’s necessary? Or is it much more that it takes for a languag
by dolguldur 9y ago
Will Swift ever be able to span all the way down to enable Rust-like performance in places where it’s necessary?
Or is it much more that it takes for a language to be a viable choice for starting new C++ type of projects with?
- smitherfield 9y agoTo (potentially) match Rust/C++ performance Swift needs 1. Stack and static-allocated arrays. 2. True pass-by-reference for value types. 3. A sufficiently-smarter compiler that's more often able to elide dynamic allocations, reference counting, bounds checks, vtables etc. (Lifetime semantics will help with this).