https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
b

brabo-hi

11/02/2023, 1:52 AM
Any plan for swift interop support instead of objective C?
b

brabo-hi

11/02/2023, 3:13 AM
@russhwolf thanks for sharing that
j

Jon Bailey

11/02/2023, 9:20 AM
A vague sense of hope can be found in the “KMP is now stable” blogpost from the other day, where it’s mentioned as a future update: https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-stable/#explore-the-future-of-kotlin-multiplatform
🎉 3
e

Edoardo Luppi

11/02/2023, 3:23 PM
I think the Kotlin team is busy with K2. Once K2 is delivered, other major enhancements will be unlocked
2
l

Landry Norris

11/02/2023, 6:19 PM
Swift also just recently stabilized the ABI enough for interop to work. Hence why C++ is the only language (right now) with pure-Swift interop (some claim Swift interop, but if you look closely, they require objc annotation), and even the C++ version is experimental.
j

Jon Bailey

11/02/2023, 8:01 PM
Swift’s stable ABI was in 2019/iOS 12.2 which seems quite a while ago? Though I don’t know too much how interoperability would work so maybe that’s recent to the amount of work required.
l

Landry Norris

11/02/2023, 8:05 PM
Looking at their docs again, it looks like I meant the section labeled 'Module stability (and ABI stability)', not ABI stability. Swift 5 brought ABI stability that allowed to switch standard libraries. Stability across Swift compilers (what you'd want to have to enable interop) is still in progress. https://www.swift.org/blog/abi-stability-and-more/
I'd argue what they have is just part of ABI stability, since compiler and library stability are still in progress, but I guess those are the terms they use.
e

Edoardo Luppi

11/06/2023, 8:44 PM
Just seen this.
K 1
Should answer your question.
Ah well, it was already written in the blog post lol, had forgotten about it
b

brabo-hi

11/06/2023, 9:07 PM
@Edoardo Luppi thanks for sharing
2 Views