Kris Wong

10/15/2019, 1:47 PM
interesting commentary from Roman on multi-threaded coroutines: "To give you some more detail on what's holding us back. kotlinx.coroutines is a multiplatform library. Currently all the "multithreading-capable" data structures are part of JVM compilation only while Native and JS contains simple stubs. In order to support multi-threading on Native we need to share this code between JVM and Native, while leaving stubs for JS. Unfortunately, our current MPP model in Kotlin (which is still experimental) does not support this. We are working on its next version code-named "Hierarchical MPP" (HMPP) which enable this kind of fine-grained sharing."
👍 1
K 16


10/15/2019, 4:59 PM
Yep. There's a Gradle property that enables the new HMPP model, but it's a bit buggy with the 1.3.50 Kotlin plugin in IntelliJ.