Kotlin – Android
Kotlin (programming language)
Jump to navigationJump to search
Paradigm | Multi-paradigm: object-oriented, functional, imperative, block structured, declarative, generic, reflective, concurrent |
---|---|
Designed by | JetBrains |
Developer | JetBrains |
First appeared | July 22, 2011 |
Stable release |
1.6.10[1] / 14 December 2021
|
Preview release |
build-1.6.20-dev-107 / August 26, 2021
|
Typing discipline | Inferred, static, strong |
Platform |
|
OS | Cross-platform |
License | Apache License 2.0 |
Filename extensions | .kt, .kts, .ktm |
Website | kotlinlang |
Influenced by | |
Kotlin (/ˈkɒtlɪn/)[2] is a cross-platform, statically typed, general-purpose programming language with type inference. Kotlin is designed to interoperate fully with Java, and the JVM version of Kotlin’s standard library depends on the Java Class Library,[3] but type inference allows its syntax to be more concise. Kotlin mainly targets the JVM, but also compiles to JavaScript (e.g., for frontend web applications using React[4]) or native code via LLVM (e.g., for native iOS apps sharing business logic with Android apps).[5] Language development costs are borne by JetBrains, while the Kotlin Foundation protects the Kotlin trademark.[6]
On 7 May 2019, Google announced that the Kotlin programming language is now its preferred language for Android app developers.[7] Since the release of Android Studio 3.0 in October 2017, Kotlin has been included as an alternative to the standard Java compiler. The Android Kotlin compiler produces Java 8 bytecode by default (which runs in any later JVM), but lets the programmer choose to target Java 9 up to 17, for optimization,[8] or allows for more features; has bidirectional record class interoperability support for JVM, introduced in Java 16, considered stable as of Kotlin 1.5.
Kotlin support for compilation directly to JavaScript (i.e., the classic back-end) is considered stable since version 1.3, while the new Kotlin/JS(IR) is in beta as of version 1.5.30. The new optimized implementations of Kotlin/JVM(IR) and Kotlin/JS (IR-based) were introduced in version 1.4. Kotlin/JVM(IR) is considered stable and enabled by default since version 1.5. Kotlin/Native (for e.g. Apple silicon support) is considered beta since version 1.3.[9][10]
References:
https://kotlinlang.org/
https://en.wikipedia.org/wiki/Kotlin_(programming_language)