automatic reference counting with a cycle collector on top
e
evanchooly
09/29/2017, 2:09 AM
isn't courtesy of LLVM?
g
gildor
09/29/2017, 2:10 AM
No, Kotlin-native has own memory management. LLVM as I know provides some tooling for GC, but don’t know does k/n use it or not
a
agrosner
09/29/2017, 2:22 AM
Garbage collector for memory cycles so you don't have the same problems as iOS developers and reference counting
s
spierce7
09/29/2017, 8:04 PM
@gildor What is a cycle collector? Would that solve the cyclic dependencies problem? i.e. A has a ref to B, which has a ref to A, so none of them can be released from memory causing a leak?
a
agrosner
09/29/2017, 8:55 PM
Yes. It tracks those and when both objects are not referenced outside the cycle it knows to dispose them apparently