by darkFunction · 11y ago · 0 comments
> When the binary interface stabilizes in a year or two, the Swift runtime will become part of the host OS and this limitation will no longer exist.
The current ~10Mb overhead is a hard sell to your manager when it will double your application size and slow down the development team in the short-term.
Look at all the work so me like John Carmack puts into correctness, for instance.
http://www.gamasutra.com/view/news/128836/InDepth_Static_Cod...
"NULL pointers are the biggest problem in C/C++, at least in our code"
Having said that, I think it is about time to move to Swift and it's going to be in the spotlight for us soon.
Adding 10MB to the size of an app is actually a really big deal, especially in countries where 4G has not reached the majority of people yet.
It is not hard to deal with null pointers, and the way Obj-C handles them is particularly friendly (returning nil on any message to a nil pointer).
http://www.macrumors.com/2013/09/18/apple-increases-over-the...
You paid a small Swift binary size penalty for a year in exchange for safer code that you'll support for the next several years.
Now, having said that, maybe Swift is better for the use case, but it's not a reflection upon ObjC IMO.
I think Swift is interesting and might be really great-- too early to tell for me.
But Objective-C has done well, and especially when paired with Apple frameworks has delivered the best platform for building mobile apps ever seen.
That's interesting. I remember the days of counting every byte, but I've never experienced it on iOS, just cause my apps were naturally pretty small even when being extravagant.