News for hackers. Stuff that matters.
Re:Swift Static Linux SDK by heavyset_go on Tuesday June 11, 2024 @05:46PM (#40651960)
Given there is native C++ interop, is exporting a C ABI still a seemingly experimental/niche feature? Same question with interop between C and Swift.

Recently went with using Kotlin Native over Swift on macOS for this reason, the C ABI export and C interop were painless.

Re:Swift Static Linux SDK by MBCook on Tuesday June 11, 2024 @07:02PM (#40652669)
Swift has painless interop with Objective-C, which is just C plus small talk.

C should already be pretty easy, though I haven’t really used it myself. I only use the Objective-C stuff.

I know they’ve been working on C++ but don’t have any experience to comment. Someone else had a nice comment listing resources on that.

Re:Swift Static Linux SDK by mannuch on Wednesday June 12, 2024 @06:48PM (#40664039)
Swift has had first-class C interop for a long time.

It is only C++ interop that is more experimental/in-progress.