No way to use.
Why Google doesn't release for java ?
Because java is shit. Kotlin is officially #1 in android developing
Google doesn't officially support java for android
Only Kotlin! You're suppose to learn Kotlin asap because it's reported as the official Android development language. New libraries are being written only in Kotlin.
I agree with this, in interviews I'm being asked only Kotlin questions
But Kotlin is interoperable with Java.
So libraries written in Kotlin are interoperable with Java
Yep, but you absolutely lose in performance by using that inter. At least it's what I've read on many books about Kotlin. Writing 100% Kotlin code you'll unleash the maximum potential of the Kotlin language.
In which way? It's gonna be the same bytecode as if Java sources were compiled. I know that Java-C interop could kill some performance. But I never heard that about Kotlin-Java interop. Can you send a proof-links?
https://www.amazon.com/Mastering-Kotlin-advanced-programming-techniques-ebook/dp/B07R8M9RGL/ref=sr_1_1?dchild=1&keywords=mastering+kotlin&qid=1631812748&sr=8-1
Okay let's just think about it. Android SDK is fully written in Java. And we write apps in kotlin which rely on Java code. We use many Java libraries to solve different problems. Any performance drops?
Please, read the book inside it there're several examples which describe what I've mentioned.
Could you please specify which chapter?
Interop chapter is small and contains syntactic basics as far as I see
Would just appreciate more exact reference
Chapter "General impact of integration"
Cool, thank you
Okay so there is info about possibly poor build time and increased artifact size if you add kotlin to existing project. I agree, kotlin has it's flaws and those claims are plain truth. But is it about runtime performance?
You could agree with me there are other obvious advantages in using 100% Kotlin code, for instance, you could use all benefits of the language itself. Is that not enough to you or any other dev?
Sure. It's just that word 'perfeormance' mean different things in different contexts. And I thought you were talking about runtime performance drops
Обсуждают сегодня