News for hackers. Stuff that matters.
Re:Functional Reactive Programming by zionic on Tuesday August 16, 2022 @10:47AM (#32483470)
https://github.com/apple/swift-async-algorithms

Requires Xcode 14, which is still in beta and cannot push to the App Store.

Also, Apple fucked their back port badly. It’s supposedly fixed now, but if you built an app that used async/await anywhere in Xcode 13.X and a user installed running iOS 12/13/up to 14.5 they’d crash on launch.

So I personally wouldn’t trust it, and instead just push to raise your iOS minimum. I’ve had no problems requiring iOS15 in my projects over 1M installs

Re:Functional Reactive Programming by jshier on Tuesday August 16, 2022 @11:15AM (#32483918)
swift-async-algorithms can be used in earlier versions of Xcode if you checkout an earlier tag. They just moved forward more quickly.

Async / await's backport no longer causes crashes in Xcode 13.4, but it does have the downside of being the Swift 5.5 runtime, which has several unfixed issues, unfortunately.

Re:Functional Reactive Programming by andrekandre on Tuesday August 16, 2022 @07:07PM (#32490198)
> it does have the downside of being the Swift 5.5 runtime, which has several unfixed issues, unfortunately.

any links for this? im curious as im using async/await on xcode 13.4 currently.

Re:Functional Reactive Programming by jshier on Tuesday August 16, 2022 @10:42PM (#32491685)
Can't find them at the moment (check the Swift forums), but the two big issues I've seen reported are both in TaskGroup. One is a runtime crash under certain conditions, the other a major performance bottleneck when adding thousands of child tasks to a group. Both have workarounds, but they can hit you when using back deployment or any OS that has the 5.5 runtime (iOS 15 - 15.3 for instance). Wouldn't be showstoppers for me, just something to be aware of.
Re:Functional Reactive Programming by andrekandre on Wednesday August 17, 2022 @08:11PM (#32503542)
got it, thanks, i'll check the forums again!