Swift vs Rust

Discussions compare Swift and Rust programming languages, debating their safety, performance, syntax, features, and suitability as C/C++ alternatives for systems programming.

➡️ Stable 0.7x Programming Languages
4,607
Comments
14
Years Active
5
Top Authors
#9767
Topic ID

Activity Over Time

2012
2
2014
438
2015
331
2016
495
2017
363
2018
314
2019
389
2020
464
2021
336
2022
290
2023
371
2024
383
2025
397
2026
36

Keywords

language.md IRL JS UTF OOP ABI github.com ycombinator.com UI swift rust language objective code apple syntax functional programming codecs

Sample Comments

adastra22 • Oct 10, 2023 • View on HN

Swift is a different class than rust though.

heavyset_go • Jun 7, 2023 • View on HN

Swift is not a C or C++ replacement, so there is no indication that would happen.

kibwen • Jun 16, 2015 • View on HN

What makes you suspect that Swift is less safe than Rust?

zyang • Jan 31, 2020 • View on HN

Compare to swift it does look pretty reasonable.

ikrenji • May 4, 2024 • View on HN

why is Swift crappy? I thought its a nice language

eptcyka • Dec 19, 2016 • View on HN

Is there a reason to use Swift over Rust?

taharvey • Dec 18, 2019 • View on HN

What part of Swift being as fast as C++, as safe as Rust, and with the functional type system of Haskell (but actually useful in the real word) is unappealing?

29athrowaway • Jun 11, 2024 • View on HN

Why should I use Swift instead of Rust?

feverzsj • May 6, 2024 • View on HN

I know swift has poor performance, but not expect they did it purposely.

oleganza • Feb 9, 2015 • View on HN

Swift borrowed "if let" from Rust, not the other way around.