Is this a ground up rewrite or just varnish over CoreData.
SwiftData
11–20 of 109 posts
Seems like varnish.
Re: SwiftData
#12I’m actually really looking forward to this. I tried building a few apps in 100% SwiftUI coming from React/Node.js and it was a pretty major pain. I also don’t know UIKit so I couldn't easily fallback.
The typing of NSPredicate seems like a big upgrade as well. I went through all the old outdated docs for core data but still things aren’t very clear in my mind. Hoping the typing helps
Re: SwiftData
#13It’d be interesting to see a performance comparison of SwiftData vs. (objc?) CoreData vs. plain XML for large datasets. I recall plain XMLs being faster than CoreData a few years ago in certain scenarios.
“Combining Core Data’s proven persistence technology and Swift’s modern concurrency features, SwiftData enables you to add persistence to your app quickly”
Re: SwiftData
#14Re: SwiftData
#15Looks like a wrapper over core data - was wondering if they made it thread safe.
Re: SwiftData
#16Noob here, how does SwiftData compare to Redux (as a paradigm)?
Looks pretty different. Much closer to more modern state management approaches such as Recoil and Jotai.
What part makes you think of Recoil? CoreData (and now SwiftData over it) are more like ActiveRecord in my experience.
Re: SwiftData
#17I didn't know that Swift had a macro system...
Re: SwiftData
#18I didn't know that Swift had a macro system...
They were just introduced in Swift 5.9, released w/ the Xcode 15 beta:
Re: SwiftData
#19I was waiting for this to come out. Hope to have sometime this weekend to play with it.
Re: SwiftData
#20Is this a ground up rewrite or just varnish over CoreData.
Models still have to be classes, so it seems more like varnish.