Hi, I have a question, does Kotlin has better performances than Java at execution ?
a
ArcticLampyrid
05/16/2021, 12:49 AM
No, almost same.
n
nfrankel
05/16/2021, 5:22 AM
java and kotlin both compiles to bytecode
this bytecode gets executed by the jvm at runtime
while there might be differences in the bytecode pattern for each language, i know of no study that claims that one has better “performance” than the other
plus, if there are, they would be dwarfed by jvm compilation-to-native-code optimization process
i’m curious, though, as where your question comes from?
v
Vitaliy Zarubin
05/16/2021, 6:43 AM
I don't think java boycode == kotlin boycode, even though they have one jvm
l
louiscad
05/16/2021, 8:54 AM
Usually the same, but some efficient constructs like inline lambdas, inline classes and coroutines don't exist in the Java programming language ™