https://kotlinlang.org logo
j

John O'Reilly

12/10/2021, 9:29 AM
Should it be possible to try out new Kotlin Native memory model on an M1 device? The specific Ktor/Kotlinx Coroutines that seem to be required to use it don't support M1 right now I believe....not sure if there are later versions that do?
👀 2
h

hfhbd

12/10/2021, 9:36 AM
Which target? It should work on iosSimulatorArm64 with 16.0+ and the flag:
kotlin.native.binary.memoryModel=experimental
and coroutines 1.6.0-RC and ktor 2.0 eap
j

John O'Reilly

12/10/2021, 9:37 AM
Thanks, hadn't tried that ktor version
h

hfhbd

12/10/2021, 9:37 AM
Sorry, there is no explicit
2.0
version, but you have to use a eap version 257+
👍 1
j

John O'Reilly

12/10/2021, 9:46 AM
And that version supports new memory model?
https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md right now still mentions for example need to use
Copy code
ktor: 1.6.2-native-mm-eap-196
kotlinx.coroutines: 1.5.1-new-mm-dev2
h

hfhbd

12/10/2021, 9:53 AM
j

John O'Reilly

12/10/2021, 9:57 AM
nice, thanks!
h

hfhbd

12/10/2021, 10:00 AM
Hm, after digging, it looks like you still need the
native-mt
version... Which won't be published until release (not RC). But there is a new RC-2 release soon 😄 Currently, there is wip to support no
native-mt
version: https://github.com/ktorio/ktor/tree/e5l/coroutines