5. Swift interop
Kotlin Swift
class class
interface protocol
String String
List Array
Map Dictionary
Function type Function type
∅ Struct
Sealed classes, inline classes ∅
https://kotlinlang.org/docs/reference/native/objc_interop.html
● JVM: GC
● Objective-C: ARC
● K/N: Reference Counting + Cycle detector
● Variables must be frozen when accessed from
multiple threads …
● This is all going to change...
10. The memory model
Elephant by Josh McGinn