Похожие чаты

How can i use Jetpack compose in java ?

21 ответов

20 просмотров

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

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

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

как правильно удалить сддм? прописал в etc/portage.use/plasma-meta -sddm , но при обновлении юзов мне предлагает поставить lightdm (ещё лучше 😡), добавил туда - display-manage...
REDis
25
#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
Except the wealthiest, people that buy crypto want to "cash out" at the end of the day, one way or another. Converting to fiat is craziness, converting to BTC is unwise. Hold ...
Erdelanax
2
Всем привет! Решаю 99 OCaml Problems и столкнулся со следующей проблемой (прошу палками не забивать, я OCaml практически не трогал до этого момента): open OUnit2 let create_...
К|/|pи/\/\ 6е3yглbIи
2
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
возможно ли как-то передать в электрон или таури медиа поток с рендера 2д движка? двиг запускается как dll, а дальше надо как-то отправлять рендер кодировать не подходит, зр...
Kyle Nekto
7
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
Hello!!! Moved nodes to another server, but uptime is not transferred. now both servers are working, last time I did the same, only 2 nodes transferred uptime, can you plea...
Kamil
12
VIP-397 BNBx Oracle implementation upgrade Summary This proposal, if approved, will upgrade the implementation of the BNBx Oracle contract on Venus from version 1 (V1) to v...
Venus Announcements
2
like, question: int b = 99999; is this valid and predictable C?
Ludovic 'Archivist' Lagouardette
15
Карта сайта