Kotlin/Native is a technology for compiling Kotlin to native binaries that run without any VM. It comprises a LLVM-based backend for the Kotlin compiler and a native implementation of the Kotlin runtime library. Kotlin/Native is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible (such as iOS, embedded targets), or where a developer needs to produce a reasonably-sized self-contained program that does not require an additional runtime.
Kotlin/Native fully supports interoperability with native code. For platform libraries, the corresponding interop libraries are available out of the box. For other libraries, we provide a tool to generate an interop library from a C header file, with full support for all C language features. On macOS and iOS, interoperability with Objective/C code is also supported.
Kotlin/Native is currently in development; preview releases are available for you to try. IDE support for Kotlin/Native is available as plugins for CLion.
Kotlin/Native currently supports the following platforms:
We've built a number of sample projects to showcase the possibilities of Kotlin/Native:
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/docs/reference/native-overview.html