3 ms·
Amazing effort. And by that I refer to the feat of writing a huge article without bothering to explain what Kotlin Multiplaform is. "After several years of ha
by coldtea 3y ago
Amazing effort.
And by that I refer to the feat of writing a huge article without bothering to explain what Kotlin Multiplaform is.
"After several years of hard work by the JetBrains team, Kotlin Multiplatform reaches stable with the 1.9.20 release. This is a critical milestone for the platform and ecosystem. Kotlin Multiplatform was first announced at KotlinConf in 2017. Today, after years of work and amazing progress, Kotlin Multiplatform is stable! Along with progress on the tooling and library ecosystem, designating KMP to be stable will significantly increase adoption of the technology. Touchlab has been contributing to the KMP platform since the beginning, and some of our best work is still to come."
And so on.
From past reading, if I recall correctly it's a native version of Koltin (?) or a version targeted to mobile development for multiple mobile OSes, but can't be sure, nor about what kind of libs work with it (perhaps any?).
This helps a little:
https://www.jetbrains.com/kotlin-multiplatform/ https://www.jetbrains.com/kotlin-multiplatform/
Still, this page too could do a much better job, instead of selling "what it can do" to manager types:
"Open-source technology by JetBrains for flexible multiplatform development" / "The Kotlin Multiplatform technology is designed to simplify the development of cross-platform projects." / "Reuse code across Android, iOS, web, desktop, and server-side while keeping native code if needed"),
to plainly tell "what it is" to tech types. So, something like:
"The shared business logic code for Android gets converted to Java bytecode that can be executed in JVM and Android has the virtual machine, so it can easily run it. But in the case of iOS, there is no virtual machine, so the code is converted to the native code that can be executed on iOS. Now in the Kotlin compiler, there is a frontend that converts the code into an intermediate representation known as IR, and the backend converts that intermediate representation to machine-executable code. So in the case of android, it converts it into java bytecode, and for iOS, it converts it into iOS native machine code."
Had to go to a third party website to find this description.
- ahmedfromtunis 3y agoThanks for the explanation. Unfortunately, this is far from being an isolated case. Very far. I used to play a game on Product Hunt where I'd open multiple links without reading the description on PH, and use the homepages to try to guess what each app does. Most of the time, it simply isn't possible. It was so frustrating that I stopped playing after awhile.
- nine_k 3y agoUsually people who know the word "Kotlin" at all (in a non-geographical sense) have an idea that it's a programming language and that it's normally run on JVM. They also are unlikely to miss the idea the JVM is a virtual machine, and that Android runs a kind of JVM, too. Kotlin is highly prominent in Android development, endorsed by Google for many years. Now, I open the OP link and read: "an open-source technology built by JetBrains that allows developers to share code across platforms". I think in the context this reads pretty obviously: now you can run Kotlin code on multiple platforms. The post dives into technicalities that are geared towards people who already know enough about Kotlin, and about efforts to run it natively on different platforms. But if you don't have that knowledge, you click https://www.jetbrains.com/kotlin-multiplatform/ https://www.jetbrains.com/kotlin-multiplatform/ (as you correctly did), and it reads, right above the fold: "Kotlin Multiplatform allows you to create applications for various platforms and efficiently reuse code across them while retaining the benefits of native programming. Your multiplatform applications will work on different operating systems, such as iOS, Android, macOS, Windows, Linux, and others." Maybe if you're completely alien to programming you will need more explanations. But then you're not a target audience of a blog post about a new release of Kotlin Multiplatform, much like you won't be the target audience of release notes about new features in Logic Pro if you're not a musician using it, and need explaining what "MIDI" is. And, to my mind, it's completely fine to go and find such explanations and expand your knowledge.
- coldtea 3y ago>I think in the context this reads pretty obviously: now you can run Kotlin code on multiple platforms. We always could run it "on multiple platforms", it runs on the JVM. So that's not interesting or new information that's specific to Kotlin Multiplatform. >Maybe if you're completely alien to programming you will need more explanations. To return your condescending tone, maybe if you're completely alien to technical information below corporate brochure level you don't need anything more specific. (I've been doing programming for decades, so that's not it) "Kotlin Multiplatform allows you to create applications for various platforms and efficiently reuse code across them while retaining the benefits of native programming. Your multiplatform applications will work on different operating systems, such as iOS, Android, macOS, Windows, Linux, and others." If you're happy with that, sure. So, yeah, if you don't intend to do any programming in the domain it's supposedly aimed at, and have absolutely no use for it, then the information is plenty ("Kotlin for cross-platform iOS, Android, macOS, Windows, Linux programming"). For precisely the people that might be interested in it, it falls flat. Like: Do they compile your code to native? Do they just give you some native libs you can call and the ability to hook up native stuff? Can I call Swift or Android libs? Does it work with any Java library you might want to use, or are you limited to using a smaller number of Kotlin Multiplatform compatible libs? Do they have support for calling into platform APIs? If so, is it smallest common subset support, or is there support for stuff like iOS only APIs? Are perhaps some features like reflection not supported?
- smokel 3y agoEither the post has been updated, or the URL has changed, because I see this in the opening paragraph: "Kotlin Multiplatform (is) an open-source technology built by JetBrains that allows developers to share code across platforms while retaining the benefits of native programming"