Summary
Kotlin Native is definitely the future and we glimpsed what is possible in this chapter. But the language is still under review and there is a lot of stuff missing from it, such as documentation, better tooling support, and as well as a community, which I feel is the most important factor.Â
Multiplatform Kotlin enables the writing of Kotlin on Android, web, and iOS platforms respectively with the help of Native. It helps us reuse common code and have a single language across platforms.Â
We have successfully built our CSV reader application using the experimental Kotlin Native while leveraging amazing features such as interoperability with the C code, string interpolation, and extension functions. We also looked at how to compile the Kotlin code to a machine executable using the Kotlin Native compiler.
In the next chapter, we will look at how to build desktop applications using TornadoFX, which is based on a JavaFX Framework, with Kotlin features.
Â