News for hackers. Stuff that matters.
Re:Apple’s use of Swift and SwiftUI in iOS 15 by Redoubts on Sunday December 19, 2021 @09:47PM (#29621041)
It does have c interop so you could just use libarchive. Though writing c in swift is a bit less magical.
Re:Apple’s use of Swift and SwiftUI in iOS 15 by randomNumber7 on Monday December 20, 2021 @05:07AM (#29623044)
While technically true you then have to use pointers in swift and they made it hard by design to do that.
Re:Apple’s use of Swift and SwiftUI in iOS 15 by heavyset_go on Monday December 20, 2021 @02:30AM (#29622293)
Last time I looked, Swift didn't have a stable way to export C-compatible ABIs.
Re:Apple’s use of Swift and SwiftUI in iOS 15 by saagarjha on Monday December 20, 2021 @07:31AM (#29624135)
@_cdecl exists, although it's underscored.
Re:Apple’s use of Swift and SwiftUI in iOS 15 by heavyset_go on Monday December 20, 2021 @03:27PM (#29629863)
I was under the impression that this feature wasn't stable, but it's been years since I've thought about it.