https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Jack W

06/18/2021, 1:40 PM
Hey everyone! This is my first time using Slack and I am also a beginner with Kotlin, so let me know if this question should go somewhere else. My question is: is Kotlin/Native for iOS “safe” to get started with given the memory management redesign? I am confused about whether or not code will have to be rewritten for Kotlin Multiplatform Libraries/modules once the iOS memory management redesign is released. Thanks!
r

russhwolf

06/18/2021, 2:00 PM
The plan as I understand it is that the new model will still be compatible with existing code.
k

kpgalligan

06/18/2021, 4:22 PM
My thoughts from a year ago. Still relevant. Summary, if you're not writing library code to manage concurrency, and most devs aren't, whatever code you write now will work fine: https://dev.to/touchlab/kotlin-native-concurrency-changes-p3e
j

Jack W

06/18/2021, 5:20 PM
Thanks! @kpgalligan that is exactly what I was looking for and hoping to hear. Just to clarify, would I write cross platform code (iOS, Windows, Android) with the current “frozen” system or just the iOS code? I am thinking about trying to use the D-KMP architecture using SwiftUI and Jetpack Compose if that helps for context
14 Views