by deze333 · 1y ago · 0 comments
Swift helps those who want to build end-user products.
Swift is the language for those who need to deliver end-user products, deliver fast and iterate often with minimal friction. You got to be a practical creator who needs to create and deploy to market fast. It's all about achievability of end result within modern world's time constraints. This is where it shines. Swift may not fit more pure paradigms.
If you're after the pure art of programming then other languages may speak to you better.In other words, Swift is extremely PRACTICAL – meaning create, deploy and earn living – and is squarely focused on people who need that. Naturally, not everybody will resonate with its core mission statement.
For instance, last week, I was working on bit manipulation and realized that Swift has methods to count 1 and 0 bits:
let value: UInt8 = 0b11010101
let count = value.nonzeroBitCount
One can say it achieves maximum user interaction speed.
For most critical calculations, one can easily integrate C++/C libraries – at the source code level – which Swift can compile, link and call directly.
Or drop down to unsafe features of Swift and achieve speeds comparable to C++. But that's not really needed in most of real life use cases. Convenience is what really matters when it comes to Swift.
But I gotcha now, mistook "I wonder" as "I suspect it's not"