3 ms·
Can you elaborate more on "In fact, Kotlin/Native is a poster child example of how not to design a language breaking the memory semantics with the rest of the e
by txdv 6y ago
Can you elaborate more on "In fact, Kotlin/Native is a poster child example of how not to design a language breaking the memory semantics with the rest of the eco-system."?
- pjmlp 6y agoSure, when Kotlin/Native was introduced they had the clever idea to force a memory model incompatible with what any JVM written code would be expecting, so you need to explicitly write Kotlin/Native aware code. https://itnext.io/why-the-kotlin-native-memory-model-cannot-hold-ae1631d80cf6 https://itnext.io/why-the-kotlin-native-memory-model-cannot-... Naturally this wasn't going to turn out well, and now they are redoing it with a proper GC. https://blog.jetbrains.com/kotlin/2020/07/kotlin-native-memory-management-roadmap/ https://blog.jetbrains.com/kotlin/2020/07/kotlin-native-memo...