I am pretty certain that most of high level use cases for Rust could be replaced with Swift, with increased developer velocity, if Swift was actually cross platform. And that's coming from a Rust fan. It will be interesting to see how effective this rewrite is.
I don't know if you can write high-throughput systems with 100% reference counted GC. Swift is targeted at UI work pretty hard.
Apple announces full Swift rewrite of the Foundation framework (2022)
71–80 of 402 posts
Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#72Earlier quoted context omitted.
In practice would be what the resulting apps turn out like. In my experience, old-school ObjC iOS and Mac apps generally tended to be quite snappy. On the other hand, the new Swift hotness of Messages and Settings on macOS are noticably slower than what they're replacing. Of course I haven't done a comprehensive inventory, but I certainly don't have the general impression of things getting faster with Swift. (Are the…
Messages is largely an Objective-C codebase.
Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#73Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#74How prospective it is to jump on the iOS bandwagon in 2023?
Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#75Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#769 years after the created this language they’re only now beginning to do this?
Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#77I am pretty certain that most of high level use cases for Rust could be replaced with Swift, with increased developer velocity, if Swift was actually cross platform. And that's coming from a Rust fan. It will be interesting to see how effective this rewrite is.
How would you compare Swift with Kotlin in terms of being a good stand-in for high-level Rust? I've not paid attention to Kotlin in a while, but it seems like there's more progress at supporting Kotlin across more platforms (Kotlin native, web?, etc). I'm curious if people feel that the language features and design are at about parity, or if one is significantly stronger/weaker.
Nowadays it runs everywhere and supports a variety of deployment targets (relying on local runtime, packaging it together into a single somewhat compact binary, natively compiling the code (NativeAOT, it's good but has some limitations) or mixing and matching all of the above).
It is also one of the best high-level languages to write performance-oriented code with, especially so with .NET 7 which allows writing cross-platform SIMD code in a similar fashion to Rust's 'portable-simd' crate.
Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#78Could someone please explain what exactly is the “Foundation”?
Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#79Re: Apple announces full Swift rewrite of the Foundation framework (2022)
#80Earlier quoted context omitted.
> my impression is that the support on Linux within the Foundation is not complete It is not, but it's like 95% of the way there in my experience - most things that are missing are relatively recent additions that have some complex OS interactions, like filesystem I/O with language-level concurrency features. > Does this change imply better (eventual) support on non-Darwin systems? Yes. The non-Darwin Foundation vers…
It feels off to call things like Array part of any library when you have array literal syntax `let oddNumbers = [1, 3, 5, 7, 9, 11, 13, 15]` I'd call that a language feature. Or maybe with Swift there is a blurry line between the two?
https://github.com/apple/swift/blob/main/stdlib/public/core/...