Quick question: does kotlin/native still allocate ...
# kotlin-native
s
Quick question: does kotlin/native still allocate all objects on the heap or does it take more of a stack based approach like in languages such as Go and only escape to the heap if necessary?
d
At the moment all objects go on the heap. Once they improve static analysis, some objects will go on the stack if possible.
s
Okay, hope they get to that stage. And the JVM version will stay with keeping all objects on the heap, right?
d
Yes