Re:Apple’s Use of Swift in iOS 13
by greggman2 on Thursday September 26, 2019 @10:28PM
(#21087875)
And that unlike Rust Swift is often much slower if you aren't extremely careful how you use it
[ Parent
| on HN ]
Swift has a different niche than Rust. They both offer safety, but Rust prioritizes performance, where Swift prioritized ergonomics.
For me personally, Swift is often fast enough for my needs as a compiled language, but it's so much easier to be productive in since it obviates many of the more tedious concerns of Rust.
Both languages play nicely with the C FFI so it's also possible to write high-level code in Swift and drop down into C or Rust for the performance sensitive parts.