<Why is a Kotlin native executable larger than the...
# stackoverflow
u
Why is a Kotlin native executable larger than the equivalent Rust executable? I created 2 simple "Hello World!" programs, one with Kotlin and one with Rust: Kotlin: fun main() { println("Hello, world!") } Rust: fn main() { println!("Hello, world!"); } I generated the executable files for both using: kotlinc-native main.kt for Kotlin and cargo build for Rust, then checked the binary sizes using ls -S -lh | awk '{print $5, $9}'. I found that the file generated by Kotlin native is 1.48X the size of the file generated by Rust. Why does this variance...