3 ms·
> The only modern macOS framework that is still written in Objective-C is Metal This is inaccurate. Extremely inaccurate, nearly 100% mistaken. Almost every ma
by lapcat 4y ago
> The only modern macOS framework that is still written in Objective-C is Metal
This is inaccurate. Extremely inaccurate, nearly 100% mistaken. Almost every macOS framework is still written in Objective-C, including AppKit and Foundation.
And the Swift rewrite of Foundation is only beginning: (from December 2022) https://www.swift.org/blog/future-of-foundation/ https://www.swift.org/blog/future-of-foundation/
See also: https://blog.timac.org/2022/0818-state-of-appkit-catalyst-swiftui-mac/ https://blog.timac.org/2022/0818-state-of-appkit-catalyst-sw... and https://blog.timac.org/2022/1005-state-of-swift-and-swiftui-ios16/ https://blog.timac.org/2022/1005-state-of-swift-and-swiftui-...
- interactivecode 4y agoThe repo for anyone interested: https://github.com/apple/swift-corelibs-foundation https://github.com/apple/swift-corelibs-foundation
- lapcat 4y agoIt's not clear that's the repo, or that there is a repo yet: https://forums.swift.org/t/what-s-next-for-foundation/61939 https://forums.swift.org/t/what-s-next-for-foundation/61939 > We hope this is just the start of discussions about this exciting new project. In future posts, we want to discuss plans for the existing swift-corelibs-foundation project and figure out how we transition the ecosystem to the new unified implementation.
- pjmlp 4y agoNot at all, I explicily mentioned "only modern" on purpose. Most Objective-C stuff that is around, with exception of Metal, traces back to OS X and iOS early days, and carry with them the weight of maintenaince, and development costs of a rewrite. Metal is the only post-Swift framework that was written in Objective-C.
- lapcat 4y ago> Metal is the only post-Swift framework that was written in Objective-C. Still untrue. Again, see the referenced blog posts. Indeed, aside from SwiftUI, which is still half-baked on macOS, I'm not aware of many Swift frameworks in the OS. After all, the frameworks still need to provide API to Objective-C apps, including Apple's own apps, not to mention 3rd party apps. The requirements to ship a Swift framework in the system, such as ABI stability and others, are a relatively recent addition to the language: https://www.swift.org/blog/abi-stability-and-more/ https://www.swift.org/blog/abi-stability-and-more/
- pjmlp 4y agoNone of the related post mentions any other Objective-C framework written from scratch, XCode File=>New without dependencies on older technology, after Swift came to be. > 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. Now Ben from the Swift team is gonna tell you all about what's next. -- https://developer.apple.com/videos/play/wwdc2022/102/ https://developer.apple.com/videos/play/wwdc2022/102/
- lapcat 4y ago> None of the related post mentions any other Objective-C framework written from scratch It doesn't mention Swift frameworks written from scratch either, but the numbers pretty much speak for themselves. By all means, though, please list the many new Swift frameworks. > -- https://developer.apple.com/videos/play/wwdc2022/102/ https://developer.apple.com/videos/play/wwdc2022/102/ I have no idea why you're quoting that at me.