KMP with non-Kotlin languages
summary
Shows concrete patterns for using Kotlin Multiplatform with existing native libraries: how Skia binding via C++ glue uses external functions and JNI name quirks that break at runtime, how C interop with header-driven stubs makes QuickJS/Zipline type-safe on native, and how using jextract (Java 22) + generated bindings yields safer JVM JNI at the cost of extra build variants. Demonstrates a Zig-based fast C/C++ build (sub-500 ms), trade-offs between runtime fragility and build complexity, and a tiny multi-language demo (C, C++, Rust, Swift, Zig) exposing a C ABI.
AI-written summary · about
chapters (7)
- 0:00Kotlin multiplatform intro
- 3:12Multiplatform library reuse
- 7:23Skia for Kotlin multiplatform
- 13:42Safety with Zipline
- 23:14Mosaic and native libraries
- 36:35Native library wrapper
- 39:51Summary
related talks
29mKMP for Mobile Developers
36mUsing Kotlin/JS and Kotlin/Native on Android
38mMultiplatfom projects with Kotlin
37mKotlin Multiplatform Library Development
41mKotlin-Native for Android developers
35mIntro to Kotlin Multiplatform
41mLevel up Your SDKs With KMP - no rewrite required!
39mAn Overview of Multiplatform Kotlin
