Hello! I am looking at KMP and found KaMPKit which...
# touchlab-tools
j
Hello! I am looking at KMP and found KaMPKit which has been really helpful coming from an iOS developer’s perspective. I’m a little confused because the readme has the KN concurrency all struck out as outdated. However, I can’t figure out how it’s outdated. Does that mean all blog posts about KN concurrency from ~2019 are outdated? I know that it’s on the roadmap to overhaul the memory management / concurrency model, but it feels a little like limbo period. Could someone point me to some up-to-date resources on KMP concurrency? Thanks!
r
The old model is still the default, but we've shifted all our new work to the new model with the understanding that it will become the default soon and it's the Kotlin team's main focus. So yeah it's a little bit of a limbo period. The source-of-truth doc on the new model is at https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md. You can also watch the roadmap ticket for details https://youtrack.jetbrains.com/issue/KT-49520
j
Fantastic, thank you!
So, essentially, the new model is the same as the old, just with the “freezing” requirement removed?
r
I wouldn't say it quite like that, since removing the freezing requirement is a pretty big thing. But it's a lot closer to the JVM where you don't need any special ceremony to pass things across threads.