11
I have read in some articles that Kotlin is faster than Java, but none of them exemplifies why.
- [...] As fast as Java". Kotlin - Evolve your Java Code (TDC-2016) Alex Magalhaes
- [...] Kotlin should compile quickly, coexist with Java, and fix some of the worst time-consuming problems for Java developers - Nine programming languages worth keeping on radar.
- [...] a Kotlin application is as fast as a Java equivalent - Kotlin: The new official language for Android development
What can be seen at first would be the question of the number of lines of code to perform such procedure or action. The Kotlin apparently reduces these lines (visually) compared to Java.
It would even be the reduction of bytecodes or would you have something special to make it faster? What makes it Kotlin a language faster than Java? If you have Java code inside the Kotlin, because of interoperability, or vice versa, this means that it uses the middle ground in relation to time?
There’s no right answer to the subject. Kotlin is a different language from java, more modern and simplified, in terms of comparison we can compare Objective-C (Used for IOS) and Swift, both languages reach a specific result but Swift is the future, for being more simplified, expressive in terms of code and thus increases productivity. Java is a language that few like it on android so far was the only option but surely this should change just as it happened on IOS. At the moment the ideal is to study both but certainly Kotlin is the future of android.
– Wesley Brito
Quote where you say that 'cause it’s news to me.
– Maniero
@bigown just for that. I even went so far as to mention this the question of being faster, which I remember that even you questioned yourself. Then I wondered myself by such a definition. What I would like to know is if it really is faster and why?! If it really is?.
– viana
I don’t think I have to answer because the answer would be the question part of a wrong premise.
– Maniero
As received several positive and no one thought it should close I resolved to answer, the answer is not good, but the weak question with so little sense receiving several votes should indicate something.
– Maniero
Interesting because none of the articles you cited says it’s faster. They say
tão rápido quanto
– Bruno Costa
@Brunocosta hmmmmmm... got it.
– viana