Partial linkage of Kotlin libraries
summary
Partial linkage claims to avoid build crashes by letting the compiler drop unresolved IR expressions and replace them with runtime-throwing stubs so broken binary links between KLIBs surface as runtime errors rather than compile failures. It targets IR backends for JS and Native, integrates with the Kotlin/Native compiler and KLIBs, logs warnings with adjustable levels, and provides a toggle with CLI flag to disable it. The feature arrives around 1.9 and applies to IR backends except JVM.
AI-written summary · about
chapters (8)
- 0:00Kotlin Native improvements
- 0:46Library upgrade issues
- 3:16Experimental library problems
- 6:51Compiler incompatibility behaviors
- 7:55Partial linkage in Kotlin
- 11:12Demo: partial linkage
- 12:15Enabling in Kotlin 1.9
- 13:17Q&A
related talks
39mDependencies and Kotlin/Native
42mDiving into Kotlin Multiplatform
33mAdvanced Kotlin Native Integration
40mKMP with non-Kotlin languages
17mMaking Existing Native Code Available in Kotlin
42mIdiomatic Interop with Kotlin
17mKotlin Library API Design and Compatibility Challenges
36mBest practices for evolving Kotlin libraries
