Hacker News new | past | comments | ask | show | jobs | submit login

Apple has not abandoned Objective C. It still has first class support on all their platforms, and the vast majority of their OS frameworks and applications are developed in ObjC. Swift is growing as an internal tool, but it’s nowhere near even 50% of the 1st party code on a mac or iphone.

Improvements have slowed on ObjC, as Apple’s focus switched to swift - ObjC 2.0 in 2014 was the last major change.




Also the most popular iOS third-party apps are all Obj-C[++].

The C++ interop is very important for companies like Meta. They have no incentive to rewrite anything in Swift.

If you look at minutes spent by end users on the iOS platform, I’m guessing it’s at least 95% inside Obj-C apps today.


Which is exactly why Apple showed the following at WWDC 2022, just to make it clear that the time for Objective-C is done.

https://developer.apple.com/videos/play/wwdc2022/102/

> The Objective-C language, AppKit & UIKit frameworks, and Interface Builder have empowered generations of developers. These technologies were built for each other, and will continue to serve us well for a long time to come, but over time new abstractions become necessary. For a while now, you've seen us hard at work defining the next generation of integrated language, frameworks, and tools: Swift, SwiftUI, and Xcode Previews.

> Tight integration in a development platform like this requires that all three pieces be designed and evolved together, both driving and driven by one another. Swift result builders were inspired by SwiftUI's compositional structure. SwiftUI's declarative views were enabled by Swift value types. And Xcode Previews was specifically designed for, and enabled by, both. Now, the result is the best development platform that we have ever built. And this year, Swift, SwiftUI, and Xcode all have fantastic updates that take this vision further, and make it even easier for you to build great apps for all of our platforms. And it all starts with Swift.


Nah. I’ll believe it when I see it.

Only when Apple comes out with a flagship app written in Swift (I would require SwiftUI too, but I don’t want to be that cruel…) will I entertain the idea that ObjC can be replaced. If they were eating their own dogfood internally, they should be aware that it is nowhere near ready for AAA app development.


watchOS comes to mind.

On Ventura several systems apps have been rewritten, including the preferences panel.


Those are not exactly the flagship apps I was talking about.


A complete platform used by millions of people, and apparently has saved several lives as per this week's announcement, doesn't count as flagship, got it.


It's like saying Tizen is flagship because it's used in millions of Samsung TVs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: