Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Kotlin Multiplatform

Kotlin Multiplatform

Avatar for Adam Dunai

Adam Dunai

March 24, 2022
Tweet

Other Decks in Programming

Transcript

  1. Kotlin A modern programming language that makes developers happier •

    July 2011 JetBrains unveiled Project Kotlin, new language for JVM • Goals New language features, quick compilation • February 2012 Open Source • February 2016 Kotlin 1.0 released • Google I/O 2017 Google announced fi rst-class support for Kotlin on Android • 2019 Android become Kotlin fi rst • Current stable release 1.6
  2. Netflix case study • Prodicle is a tool to manage

    all your production contacts and distributions in one place • Android and iOS apps have a shared architecture with similar or identical business logic • 50% of production code is decoupled from the underlying platform • Possible Javascript transpilation
  3. Quizlet case study • Originally they reused the web codebase

    by sharing JS code • JavaScriptCore on iOS • J2V8 on Android • Performance issues and memory leaks • Debuggability • APK size almost double
  4. Quizlet case study • Do not require bridge layer and

    external runtime • iOS 25x faster performance than using JavaScriptCore • Android 1.5s o f of J2V8 init time • 50x faster data marshalling • 5x faster runtime of shared code itself • Web bundle size increased by 30Kb