Hacker News new | ask | show | jobs
by greggman2 2460 days ago
And that unlike Rust Swift is often much slower if you aren't extremely careful how you use it
1 comments

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.