Roughly how big in size (KB) is the Kotlin Native ...
# kotlin-native
n
Roughly how big in size (KB) is the Kotlin Native runtime and standard lib? Will there be room to put the runtime and standard lib on a diet 📏 if they are too big to fit into a Uc's flash (ROM)?
o
Shalln't be big, and due to LTO (link time optimizations) only actually used parts are included. We believe it usually <100k, and maybe simplifying memory management by removing cycles GC (see https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/cpp/Memory.cpp) is one of the easiest ways of decreasing runtime footprint
n
Is 100 KB the avg size when the Kotlin Native runtime and standard lib are combined? Is the < 100 KB a typo? If the avg size is around 100 KB that is impressive when looking at Lua, which is around 150 KB in size (just the runtime with the desktop ver). 😄. Lua has been ported to some uCs for example (http://www.eluaproject.net/) however Micro Python (https://micropython.org/) is quickly taking over, which would seem to be Kotlin's main competitor in the embedded space.