Lessons to Scala Native from Kotlin Native
summary
Compares Kotlin Native and Scala Native with concrete tradeoffs: Kotlin Native has a team of >8 backend devs, uses reference counting with cycle collection for iOS interoperability, and produces tiny example binaries (hello world ~4.2 MB after UPX) but compilation + linking and incremental workflows are slow. Kotlin Native shows working IDE/LLDB debugging and a full KotlinConf app implemented in Kotlin Native; debugger stepping works but variable views and stack traces lack line info. Scala Native offers a serializable IR (enabling library distribution) and a Java standard library on native targets.
AI-written summary · about
chapters (20)
- 0:00Intro
- 2:08The sad news
- 3:20Why Scala Native
- 7:20Simple hello world projects
- 9:05Initial compression
- 10:40Incremental compilation
- 15:00Calculator
- 18:25Memory Management
- 25:10Application
- 26:00Wrappers
- 26:45Debugging
- 27:25AdultDB
- 27:50Data
- 28:10IDE
- 29:10Scala
- 31:35Sources
- 34:45Exceptions
- 36:00Breakpoints
- 36:25Variables view
- 37:25Conclusion
related talks
40mScala Goes Native
35mA Deep Dive into Scala Native Internals
30mScala Native: the marriage of performance and functional comfort
45mStarting from Scratch with Scala Native
42mScala goes Native
27mScala and C – tight as brothers
46mKotlin/Native Concurrency Model
37mSharing Code between iOS & Android with Rust
