What is the current status of writing Desktop Appl...
# gui
f
What is the current status of writing Desktop Applications with Kotlin Native?
m
@fkrauthan You can actually take any Library which has a C binding (or its written in C directly; for example GTK) and use it thanks to cinterop. The trap can be the pointers - this try to solve for example the libui with the native kotlin bind which hides this behind the DSL. From my point of view: yes, it works, but at now it's more likely an alpha or beta (see my example in the previous post)
f
Yeah I know that. I was wondering if that has changed. Some maintained cross platform solution. A dream would be having a UI lib that can run JVM (for fast development) and native (for easy sharing with other people without them having to install JVM etc)
👍 1
m
kotlin-native-gtk is the closest thing I've found so far. It is not being maintained however and is not quite cross platform (but could be). Without JVM, you will have to wait on more native libraries to be built to get the ease of development you would expect. kotlinx-datetime and kotlinx-serialization are ready to go but kotlinx-io still has a long way
If kotlin-native-gtk was being maintained, was updated to support other desktops, and kotlinx-io was ready, I would be jumping on it to write some desktop apps
👍 1
for now I'm using tornadofx