Live data from Hacker News

Kotlin Multiplatform for Android and iOS Apps

rockandnull.com

1–10 of 82 posts

Re: Kotlin Multiplatform for Android and iOS Apps

#3
From my admittedly limited experience KMM is a complete mess. There doesn't seem to be a reasonable feature set across platforms. Even the standard library has massive holes, forcing you to littler your code with expect/actuals everywhere. This might be manageable for my own code, but completely destroys the ecosystem. A very large number of important libraries only works the JVM. Jetpack Compose and Compose Multiplatform are also not the same. I typically can't use libs written for Jetpack Compose in Compose Multiplatform.

Re: Kotlin Multiplatform for Android and iOS Apps

#4
With significant advancements in AI technologies, including solutions like ChatGPT/Bard, I am considering this issue of multi-platform from a standpoint of AI. If an application has been developed for a major platform, adapting the same applications for other platforms could potentially be managed by Co-Pilot. For instance, I can already create applications with the assistance of ChatGPT.

Re: Kotlin Multiplatform for Android and iOS Apps

#5
I don't see what the difference is between using React Native vs Flutter vs Compose Multiplatform. You will still be basically putting all of your eggs in a corp's basket.

What if Jetbrains decides overnight "you know what? this whole Compose Multiplatform is taking up too many of our resources, we're going to retire it at the end of this quarter"?

Re: Kotlin Multiplatform for Android and iOS Apps

#6

I've been curious about Kotlin Multiplatform for cross platform desktop apps (as an alternative to Electron). If anyone here has used it for that, care to share your experience?

Tools, language and performance are great.

Ecosystem is no good. Almost all Kotlin libraries assume Android and don’t work on multi platform. Common things just don’t exist.

Re: Kotlin Multiplatform for Android and iOS Apps

#9
I've mostly stayed away from mobile development because Android projects look too complicated to get started on even NDK projects. The value of learning those APIs to me isn't even close to what you get by learning Web APIs. So if I invested my time to learning it I don't feel Is get as much out of it.

Maybe something like Kotlin/Compose Multiplatform can help. But, really if they made Android APIs (or React-native/Flutter/Compose) into a ISO/ECMA/ANSI whatever standard it would feel like I'm not just throwing away my time on some proprietary API that may change in a way that I have to update my app or loose my investment.

Re: Kotlin Multiplatform for Android and iOS Apps

#10

I've been curious about Kotlin Multiplatform for cross platform desktop apps (as an alternative to Electron). If anyone here has used it for that, care to share your experience?

- Flutter is reliable and simple to build with

- React Native is easy to find workers for but slow

- Kotlin is somewhat in the middle of both but has better performance

- Tauri is coming out of left field with webview2 apps but it's very early days for their mobile plans and completely unproven

Kotlin does a good job with all the compromises you have to make with cross platform but it's quite application dependent?

Post reply on HN