Похожие чаты

How can i use Jetpack compose in java ?

21 ответов

14 просмотров

No way to use.

Ali-Ghasemi Автор вопроса
Vadym Yaroshchuk
No way to use.

Why Google doesn't release for java ?

Ali Ghasemi
Why Google doesn't release for java ?

Because java is shit. Kotlin is officially #1 in android developing

Ali Ghasemi
Why Google doesn't release for java ?

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.

Jorge Luiz
Only Kotlin! You're suppose to learn Kotlin asap b...

I agree with this, in interviews I'm being asked only Kotlin questions

Sreekanth K
But Kotlin is interoperable with Java.

So libraries written in Kotlin are interoperable with Java

Sreekanth K
So libraries written in Kotlin are interoperable w...

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.

Jorge Luiz
Yep, but you absolutely lose in performance by usi...

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?

Roman Chumachenko
In which way? It's gonna be the same bytecode as i...

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

Jorge Luiz
https://www.amazon.com/Mastering-Kotlin-advanced-p...

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.

Jorge Luiz
Please, read the book inside it there're several e...

Interop chapter is small and contains syntactic basics as far as I see

Jorge Luiz
Yep, but you absolutely lose in performance by usi...

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?

Roman Chumachenko
screenshot Okay so there is info about possibly poor build ti...

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?

Jorge Luiz
You could agree with me there are other obvious ad...

Sure. It's just that word 'perfeormance' mean different things in different contexts. And I thought you were talking about runtime performance drops

Похожие вопросы

Обсуждают сегодня

Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
А чем вам питонисты не угодили?😂
.
79
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Привет, запускаю werf в dind в k8s, получаю ошибку на этапе build/beforeSetup: /.werf/stapel/embedded/bin/bash: /.werf/scripts/5898bdfe5214357d3706b879cc8d3d78460fb379607cbd...
florius0
7
пацаны, как-нибудь можно панель задач заблюрить, что она была похожа на kde или винду 7, 11?
В
16
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Dim Dim, [02.07.2024 11:07] DB 0x62 Dim Dim, [02.07.2024 11:07] DB 0x66 Dim Dim, [02.07.2024 11:07] кто пояснит что это?
Dim Dim
14
So total 101m burned Today?
Simu
18
Ошибка: segmentation fault (core dumped) Код: pastebin.com/BEsNNSSV Сообщение от компилятора: отсутствует ОС: Arch Linux Ядро: x86_64 Linux 6.9.7-arch1-1 Процессор: Intel Cele...
sec
4
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Карта сайта