Thread
#multiplatform
    John O'Reilly

    John O'Reilly

    9 months ago
    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?
    hfhbd

    hfhbd

    9 months ago
    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
    John O'Reilly

    John O'Reilly

    9 months ago
    Thanks, hadn't tried that ktor version
    hfhbd

    hfhbd

    9 months ago
    Sorry, there is no explicit
    2.0
    version, but you have to use a eap version 257+
    John O'Reilly

    John O'Reilly

    9 months ago
    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
    ktor: 1.6.2-native-mm-eap-196
    kotlinx.coroutines: 1.5.1-new-mm-dev2
    hfhbd

    hfhbd

    9 months ago
    John O'Reilly

    John O'Reilly

    9 months ago
    nice, thanks!
    hfhbd

    hfhbd

    9 months ago
    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