Programming language · 2016

Kotlin

General-purpose programming language derived from Java.

Official site ›
Kotlin logo
Java, KotlinWritten in
2016First released
JetBrainsDeveloper
staticTyping
Apache Software License 2.0License
Built from Kotlin JavaKotlinScalaGroovyHaskell
CompilerInfluence
ReplacedJava for Android app development
Being replaced byStill current; the language Google prefers for Android

What is Kotlin written in?

The Kotlin compiler is written in Kotlin and Java. It targets JVM bytecode, JavaScript, and native code (through LLVM). The original compiler was written in Java.

What Kotlin is used for

Kotlin is Google's preferred language for Android development, a concise and safer alternative to Java that interoperates fully with it. It is also used for back-end services and cross-platform mobile.

Notable software: Android apps at Google, Pinterest, and Netflix, plus back-ends using the Ktor and Spring frameworks.

About Kotlin

Kotlin is a general-purpose programming language derived from Java. It is a statically typed and garbage-collected language that compiles to bytecode that runs on a virtual machine. It supports object-oriented and functional programming. Compiling to bytecode for a virtual machine is the same model the JVM and .NET use: the VM, not the CPU, interprets or JIT-compiles the bytecode.

Kotlin first appeared in 2016 and was designed by JetBrains at JetBrains. Kotlin has a large, active user base today.

Kotlin in the language family tree

Kotlin drew on ideas from Java, Scala, Groovy, and Haskell.

Sources: Wikipedia · Wikidata · Official site

Quick Facts

Short answer
Kotlin compiler is written in Kotlin and Java
Created by
JetBrains, 2011
Targets
JVM bytecode, JavaScript, native (LLVM)
Original compiler
Written in Java

Kotlin targets three backends

Kotlin began as a Java program at JetBrains and has progressively moved to being written in Kotlin. The default target is JVM bytecode, so Kotlin interoperates directly with Java. Kotlin/JS emits JavaScript, and Kotlin/Native compiles through LLVM to standalone native binaries with no JVM.

Frequently Asked Questions

What language is Kotlin written in?
The Kotlin compiler is written in Kotlin and Java and is largely self-hosting. It compiles to JVM bytecode, to JavaScript, and to native binaries via LLVM (Kotlin/Native).
What languages influenced Kotlin?
Kotlin was influenced by Java, Scala, Groovy among others. See the influence section above for the full list.
Is Kotlin self-hosting?
Yes, Kotlin is self-hosting, its compiler can compile itself.
When was Kotlin first released?
Kotlin was first released in 2016. It was designed by JetBrains.

Evidence Sources

Discover More

Embed this graph

Paste this iframe into any HTML page to show the Kotlin relationship graph.

<iframe src="https://www.languagelineage.org/embed?lang=kotlin" width="100%" height="500" loading="lazy" style="border:0" title="Kotlin relationship graph"></iframe>

Please attribute the visualization to Language Lineage and link to the Kotlin source record.

Explore Kotlin in Graph →