~/talk

Effective Kotlin-Swift Interoperability

Talkat KotlinConf 2019 · 2019-12-04..12-06· [kotlin, swift]
links:none on file
slides:none on file

Kotlin/Native produces a Kotlin/Native framework consumed by Xcode via an exported Objective‑C API and a Gradle task that copies artifacts into the Xcode build; linking dominates local builds (profiling shows ~60% of time, tens to hundreds of seconds). Language compromises surface: enums lose exhaustiveness unless a Swift bridge (RawRepresentable + unknown case) is written, generics require an upper‑bound (Any) to avoid nullable signatures, and Kotlin native runs CPU‑heavy code ~2x slower than native Swift. Also note a build cache bug caused by absolute paths in the Kotlin Gradle task.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15TLDR
  3. 2:48Setup
  4. 3:15Android Studio
  5. 3:56Source Sets
  6. 5:20Xcode
  7. 8:57ObjectiveC
  8. 16:37Common Library Support
  9. 27:54Generics
  10. 30:43Value Types
  11. 36:40Build Performance
  12. 39:44Runtime Performance
  13. 43:07Sequel Delight
  14. 44:48Protobufs
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.