Hi all, I am pretty new to Kotlin native. Is it po...
# kotlin-native
i
Hi all, I am pretty new to Kotlin native. Is it possible to write hardware software with Kotlin native?
a
What is “hardware”? What target OS?
i
which target is it able to work with. Let’s say I need to program a telecommunication device which runs on Linux.
k
K/N can generate libraries that can be used as a dependency in native projects on standard platforms.
i
I can not decipher exactly those sentences. What does that mean?
k
you tell me whether your hardware & toolchain can utilize those dependencies
i
Thanks @Kris Wong. May I ask this, because I am super new in this field: Let’s say I want to build a library that will eventual run on aircraft systems or automobile. Is there an example or library that show cases that in K/N. And if not what would be the library process to set up one. You can use a different example, if you want to. Any hardware other than in phones, laptop, pc.
k
i don't have an example for you. i suggest you start digging in here https://kotlinlang.org/docs/reference/native-overview.html
i
Thanks @Kris Wong! 🙂
🍻 1
n
Kotlin Native wouldn't be suitable for developing software that runs on aircraft/automobile systems, especially if it is system software. Many of these systems require hard real-time performance guarantees ( https://stackoverflow.com/questions/17308956/differences-between-hard-real-time-soft-real-time-and-firm-real-time ) which Kotlin Native can't provide. Currently Kotlin Native isn't heavily optimised, and lacks the option to turn off the cyclic collector (a partial GC) which would be needed to provide soft real-time performance guarantees.
Some low level hardware access can be done with Kotlin Native through some C libraries, especially with SBC's (Single Board Computers). There is a interesting project 😎 where Kotlin Native is used to control colours used on a PC fan: https://github.com/serebit/wraith-master