Multiplatform Kotlin in 42 minutes
summary
Kotlin code implements a Mandelbrot renderer once in a common module and compiles it to a JVM backend, a JavaScript React frontend and a console app, reusing the same renderer and tests via expect/actual abstractions. Build uses Gradle and Kotlin/JS with HTML/CSS wrappers and coroutines for async server/client work. The repo is ~2k LOC, JS bundle ~4MB and the native binary ~800KB. Output images match across platforms and live-reload + shared tests prove the approach works.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 5:53Mixing languages problem
- 11:51Kotlin as solution
- 16:30Practical example
- 21:28HTML/CSS in Kotlin
- 27:48Fractal implementation
- 34:08App launch
- 39:12Code reuse
- 42:45Q&A
related talks
49mLet's Build a Cross-Platform 3D Engine with Kotlin/Multiplatform
48mEffective Multiplatform Kotlin Development
48mEffective Multiplatform Kotlin Development
01h 07mDevelop Multiplatform Projects in Kotlin
06m3 platforms in 5 minutes with Kotlin
33mUsing Kotlin for JS Client and JVM Server
38mA Kotlink between worlds
41mKotlin for the JVM and beyond
