Partial Linkage of Kotlin Libraries
May 04, 2023
18 min
Free
kotlin
partial-linkage
klib
binary-compatibility
api-evolution
jetbrains
ir-backend
kotlin-jvm
kotlin-native
kotlin-multiplatform
compiler
kotlin-js
Description
Recording brought to you by American Express. This talk by Dmitriy Dolovov, an engineer on the Kotlin/Native compiler team at JetBrains, explores the "partial linkage" mode being developed for the Kotlin compiler. This feature addresses issues with library compatibility in multi-platform applications, particularly when dealing with unstable or experimental API changes. The talk explains how partial linkage helps prevent build crashes and runtime errors by introducing a mechanism to handle missing or incompatible declarations in compiled Kotlin libraries (KLIBs), offering benefits for both library authors and application developers.