4 ms·
I do really like Swift, but isn't it usually significantly slower than Rust? Swift seems more in the Go or Java class, rather than being competitive with C/C++
by iainmerrick 4y ago
I do really like Swift, but isn't it usually significantly slower than Rust?
Swift seems more in the Go or Java class, rather than being competitive with C/C++ like Rust is. If that's so, Swift is still appealing as a pretty-fast, safe language with a much more sophisticated type system than Go or Java. But... TypeScript is too!
I have a feeling in terms of raw performance, JS is probably closer to Swift than Swift is to Rust. The important difference between Swift and JS isn't performance as much as which platforms/APIs/languages they can integrate with.
(Maybe I'm underestimating Swift's performance, though, or overestimating JS -- corrections welcome)