Full GTK3 Wrap K/N is going well. Took 54 ms to bu...
# kotlin-native
c
Full GTK3 Wrap K/N is going well. Took 54 ms to build this entire UI. Not sure if that is good or not, or how it compares to other applications
👍🏼 1
K 6
👏 2
👍 4
s
As someone else writing Kotlin code to interface with GTK (not a lib, just an app) how are you handling callbacks? That's been my largest annoyance with GTK C interop so far.
c
@serebit Flows! Its a bit annoying to setup, but after getting it to work with callbackFlows, and it's snappy Also, I created a CoroutineDispatcher that runs on the main thread, Allowing you to do launchUI and then run UI specific activities The thread runs directly on the GTK Main Loop
n
Flow (part of KotlinX Coroutines) is available for the linuxX64 target but not for the other linux targets (eg linuxArm64). This will restrict the GTK lib to working only on the linuxX64 target, which is a big problem if someone wants to use the library on one of the Linux ARM targets (linuxArm64 or linuxArm32Hfp) for example.
c
🤔 why would kotlin code only be available for x64 and not arm?
@napperley forgot to ping
n
It heavily depends on what platforms are supported rather than the CPUs themselves. With CPU support it often comes down to having suitable hardware available with the CPU to be supported for doing proper testing. I'm assuming that the Kotlin team already has access to ARM based hardware running Linux, but isn't making the Linux ARM targets a high priority even though these targets are just as important as the iOS ones.
The Kotlin team's excessive focus on iOS development with Kotlin Native is causing huge issues with other areas of software development that require much more focus like Linux development for example. One of the huge issues caused by the excessive iOS focus is with the KotlinX Coroutines library not supporting the Linux ARM targets. Note that KotlinX Serialization already supports the Linux ARM targets, which makes the issue all the more puzzling.
💯 1
c
linuxArm64 can be ignored for now, since the percentage of Linux desktop users on ARM should be microscopic
n
The number of Linux ARM users isn't that small. With many of the industrial markets the number of Linux ARM users is very large. Linux ARM dominates many of the IoT markets where Windows is a minnow (a mere spek on the radar) 😁.