0% found this document useful (0 votes)
19 views26 pages

Kotlin Build Your Own App

Kotlin is a cross-platform, statically typed programming language designed for full interoperability with Java, targeting the JVM, JavaScript, and native code via LLVM. It was announced as Google's preferred language for Android development in 2019 and has undergone several stable releases since its inception in 2011. The language supports various programming paradigms and features such as type inference, extension functions, and coroutines, making it a modern alternative to Java.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views26 pages

Kotlin Build Your Own App

Kotlin is a cross-platform, statically typed programming language designed for full interoperability with Java, targeting the JVM, JavaScript, and native code via LLVM. It was announced as Google's preferred language for Android development in 2019 and has undergone several stable releases since its inception in 2011. The language supports various programming paradigms and features such as type inference, extension functions, and coroutines, making it a modern alternative to Java.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Kotlin (programming language)

Kotlin (/ˈkɒtlɪn/)[2] is a cross-platform, statically typed, general-purpose high-level 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, 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)[3] or native code via LLVM (e.g., for native iOS apps sharing business
logic with Android apps).[4] Language development costs are borne by JetBrains, while the Kotlin
Foundation protects the Kotlin trademark.[5]

On 7 May 2019, Google announced that the Kotlin programming language had become its preferred
language for Android app developers.[6] 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
emits Java 8 bytecode by default (which runs in any later JVM), but allows targeting Java 9 up to 20,
for optimizing,[7] 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 has support for the web with Kotlin/JS, through an intermediate representation-based backend
which has been declared stable since version 1.8, released December 2022. Kotlin/Native (for e.g.
Apple silicon support) has been declared stable since version 1.9.20, released November 2023.[8][9]

History

A 2D picture of the
Kotlin mascot

A 3D picture of the
Kotlin mascot
Name Kotlin

The name is derived from Kotlin Island, a Russian


island in the Gulf of Finland, near Saint Petersburg.
Andrey Breslav, Kotlin's former lead designer, Paradigm Multi-paradigm:
mentioned that the team decided to name it after object-oriented,
an island, in imitation of the Java programming functional, imperative,

language which shares a name with the block structured,

Indonesian island of Java.[10] declarative, generic,


reflective, concurrent

Designed by JetBrains
Development
Developer JetBrains
The first commit to the Kotlin Git repository was
First appeared July 22, 2011
on November 8, 2010.[11]

In July 2011, JetBrains unveiled Project Kotlin, a Stable release 2.1.10[1] / 27


new language for the JVM, which had been under January 2025
[12]
development for a year. JetBrains lead Dmitry
Typing discipline Inferred, static, strong
Jemerov said that most languages did not have
the features they were looking for, with the Platform Android

exception of Scala. However, he cited the slow JVM


[12]
compilation time of Scala as a deficiency. One
JavaScript
of the stated goals of Kotlin is to compile as
(Kotlin/JS ([Link]
quickly as Java. In February 2012, JetBrains open
[Link]/docs/j
sourced the project under the Apache 2 license.[13] [Link]) )

JetBrains expected Kotlin to drive IntelliJ IDEA macOS (incl. Apple

sales.[14] silicon support)

iOS, tvOS, watchOS


Kotlin 1.0 was released on February 15, 2016.[15]
Linux
This is considered to be the first officially stable
release and JetBrains has committed to long-term Windows
backwards compatibility starting with this version.
WebAssembly

At Google I/O 2017, Google announced first-class LLVM


[16] (Kotlin/Native (http
support for Kotlin on Android.
s://[Link]/d
[17]
Kotlin 1.1 was released on March 1, 2017.
Kotlin 1.2 was released on November 28, 2017.[18] ocs/native-overvie

Sharing code between JVM and JavaScript [Link]) )

platforms feature was newly added to this release


OS Cross-platform
(multiplatform programming is by now a beta
feature[19] upgraded from "experimental"). A full- License Apache 2.0

stack demo has been made with the new Filename extensions .kt, .kts, .kexe, .klib
[20][21]
Kotlin/JS Gradle Plugin.
Website [Link] (http
Kotlin 1.3 was released on 29 October 2018, s://[Link]/)

adding support for coroutines for use with


Influenced by
asynchronous programming.[22]
C# · Eiffel · Gosu · Groovy · Java · JavaScript ·
On 7 May 2019, Google announced that the Kotlin ML · Python · Scala
programming language is now its preferred
Influenced
language for Android app developers.[6]

V (Vlang)
Kotlin 1.4 was released in August 2020, with e.g.
some slight changes to the support for Apple's
platforms, i.e. to the Objective-C/Swift interop.[23]

Kotlin 1.5 was released in May 2021.

Kotlin 1.6 was released in November 2021.

Kotlin 1.7 was released in June 2022, including the alpha version of the new Kotlin K2 compiler.[24]

Kotlin 1.8 was released in December 2022, 1.8.0 was released on January 11, 2023.[25]

Kotlin 1.9 was released in July 2023, 1.9.0 was released on July 6, 2023.[26]

Kotlin 2.0 was released in May 2024, 2.0.0 was released on May 21, 2024.[27]

Kotlin 2.1 was released in November 2024, 2.1.0 was released on November 27, 2024.[28]

Design

Development lead Andrey Breslav has said that Kotlin is designed to be an industrial-strength object-
oriented language, and a "better language" than Java, but still be fully interoperable with Java code,
allowing companies to make a gradual migration from Java to Kotlin.[29]
Semicolons are optional as a statement terminator; in most cases a newline is sufficient for the
compiler to deduce that the statement has ended.[30]

Kotlin variable declarations and parameter lists have the data type come after the variable name (and
with a colon separator), similar to Ada, BASIC, Pascal, TypeScript and Rust. This, according to an
article from Roman Elizarov, current project lead, results in alignment of variable names and is more
pleasing to eyes, especially when there are a few variable declarations in succession, and one or
more of the types is too complex for type inference, or needs to be declared explicitly for human
readers to understand.[31][32]

The influence of Scala in Kotlin can be seen in the extensive support for both object-oriented and
functional programming[33] and in a number of specific features:

there is a distinction between mutable and immutable variables (var vs val keyword)

all classes are public and final (non-inheritable) by default

functions and methods support default arguments, variable-length argument lists and named
arguments

Kotlin 1.3 added support for contracts,[34] which are stable for the standard library declarations, but
still experimental for user-defined declarations. Contracts are inspired by Eiffel's design by
contract[35] programming paradigm.

Following ScalaJS ([Link] , Kotlin code may be transpiled to JavaScript,


allowing for interoperability between code written in the two languages. This can be used either to
write full web applications in Kotlin, or to share code between a Kotlin backend and a JavaScript
frontend.[36]

Syntax

Procedural programming style

Kotlin relaxes Java's restriction of allowing static methods and variables to exist only within a class
body. Static objects and functions can be defined at the top level of the package without needing a
redundant class level. For compatibility with Java, Kotlin provides a JvmName annotation which
specifies a class name used when the package is viewed from a Java project. For example,
@file:JvmName("JavaClassName") .
Main entry point

As in C, C++, C#, Java, and Go, the entry point to a Kotlin program is a function named "main", which
may be passed an array containing any command-line arguments. This is optional since Kotlin 1.3.[37]
Perl, PHP, and Unix shell–style string interpolation is supported. Type inference is also supported.

1 // Hello, World! example


2 fun main() {
3 val scope = "World"
4 println("Hello, $scope!")
5 }

1 fun main(args: Array<String>) {


2 for (arg in args)
3 println(arg)
4 }

Extension functions

Similar to C#, Kotlin allows adding an extension function to any class without the formalities of
creating a derived class with new functions. An extension function has access to all the public
interface of a class, which it can use to create a new function interface to a target class. An extension
function will appear exactly like a function of the class and will be shown in code completion
inspection of class functions. For example:

1 package [Link]
2
3 fun [Link](): Char = get(length - 1)
4
5 >>> println("Kotlin".lastChar())

By placing the preceding code in the top-level of a package, the String class is extended to include a
lastChar function that was not included in the original definition of the String class.

1 // Overloading '+' operator using an extension function


2 operator fun [Link](other: Point): Point {
3 return Point(x + other.x, y + other.y)
4 }
5
6 >>> val p1 = Point(10, 20)
7 >>> val p2 = Point(30, 40)
8 >>> println(p1 + p2)
9 Point(x=40, y=60)

Scope functions

Kotlin has five scope functions, which allow the changing of scope within the context of an object.
The scope functions are let , run , with , apply , and also .[38]

Unpack arguments with spread operator

Similar to Python, the spread operator asterisk (*) unpacks an array's contents as individual
arguments to a function, e.g.:

1 fun main(args: Array<String>) {


2 val list = listOf("args: ", *args)
3 println(list)
4 }

Destructuring declarations

Destructuring declarations decompose an object into multiple variables at once, e.g. a 2D coordinate
object might be destructured into two integers, x and y .

For example, the [Link] object supports destructuring to simplify access to its key and value
fields:

1 for ((key, value) in map)


2 println("$key: $value")

Nested functions

Kotlin allows local functions to be declared inside of other functions or methods.


1 class User(val id: Int, val name: String, val address: String)
2
3 fun saveUserToDb(user: User) {
4 fun validate(user: User, value: String, fieldName: String) {
5 require([Link]()) { "Can't save user
${[Link]}: empty $fieldName" }
6 }
7
8 validate(user, [Link], "Name")
9 validate(user, [Link], "Address")
10 // Save user to the database
11 ...
12 }

Classes are final by default

In Kotlin, to derive a new class from a base class type, the base class needs to be explicitly marked
as "open". This is in contrast to most object-oriented languages such as Java where classes are open
by default.

Example of a base class that is open to deriving a new subclass from it:

1 // open on the class means this class will allow derived classes
2 open class MegaButton {
3
4 // no-open on a function means that
5 // polymorphic behavior disabled if function overridden in
derived class
6 fun disable() { ... }
7
8 // open on a function means that
9 // polymorphic behavior allowed if function is overridden
in derived class
10 open fun animate() { ... }
11 }
12
13 class GigaButton: MegaButton() {
14
15 // Explicit use of override keyword required to override a
function in derived class
16 override fun animate() { println("Giga Click!") }
17 }
Abstract classes are open by default

Abstract classes define abstract or "pure virtual" placeholder functions that will be defined in a
derived class. Abstract classes are open by default.

1 // No need for the open keyword here, it’s already open by


default
2 abstract class Animated {
3
4 // This virtual function is already open by default as well
5 abstract fun animate()
6
7 open fun stopAnimating() { }
8
9 fun animateTwice() { }
10 }

Classes are public by default

Kotlin provides the following keywords to restrict visibility for top-level declaration, such as classes,
and for class members: public , internal , protected , and private .

When applied to a class member:

Keyword Visibility

public (default) Everywhere

internal Within a module

protected Within subclasses

private Within a class

When applied to a top-level declaration:

Keyword Visibility

public (default) Everywhere

internal Within a module

private Within a file

Example:
1 // Class is visible only to current module
2 internal open class TalkativeButton {
3 // method is only visible to current class
4 private fun yell() = println("Hey!")
5 // method is visible to current class and derived classes
6 protected fun whisper() = println("Let's talk!")
7 }
8 internal class MyTalkativeButton: TalkativeButton() {
9 fun utter() = [Link]()
10 }
11 MyTalkativeButton().utter()

Primary constructor vs. secondary constructors

Kotlin supports the specification of a "primary constructor" as part of the class definition itself,
consisting of an argument list following the class name. This argument list supports an expanded
syntax on Kotlin's standard function argument lists that enables declaration of class properties in the
primary constructor, including visibility, extensibility, and mutability attributes. Additionally, when
defining a subclass, properties in super-interfaces and super-classes can be overridden in the
primary constructor.

1 // Example of class using primary constructor syntax


2 // (Only one constructor required for this class)
3 open class BaseUser(open var isSubscribed: Boolean)
4 open class PowerUser(protected val nickname: String, final
override var isSubscribed: Boolean = true):BaseUser(isSubscribed)
{ }

However, in cases where more than one constructor is needed for a class, a more general
constructor can be defined using secondary constructor syntax, which closely resembles the
constructor syntax used in most object-oriented languages like C++, C#, and Java.

1 // Example of class using secondary constructor syntax


2 // (more than one constructor required for this class)
3 class Context
4 class AttributeSet
5 open class View(ctx:Context) {
6 constructor(ctx: Context, attr: AttributeSet): this(ctx)
7 }
8 class MyButton : View {
9 // Constructor #1
10 constructor(ctx: Context) : super(ctx) {
11 }
12 // Constructor #2
13 constructor(ctx: Context, attr: AttributeSet) : super(ctx,
attr) {
14 // ...
15 }
16 }

Sealed classes

Sealed classes and interfaces restrict subclass hierarchies, meaning more control over the
inheritance hierarchy.

Declaration of sealed interface and class:

1 sealed interface Expr


2 sealed class Job

All the subclasses of the sealed class are defined at compile time. No new subclasses can be added
to it after the compilation of the module having the sealed class. For example, a sealed class in a
compiled jar file cannot be subclassed.

1 sealed class Vehicle


2 data class Car(val brandName: String, val owner: String, val
color: String): Vehicle()
3 class Bike(val brandName: String, val owner: String, val color:
String): Vehicle()
4 class Tractor(val brandName: String, val owner: String, val
color: String): Vehicle()
5 val kiaCar = Car("KIA", "John", "Blue")
6 val hyundaiCar = Car("Hyundai", "Britto", "Green")

Data classes

Kotlin's data class construct defines classes whose primary purpose is storing data, similar to
Java's record types. Like Java's record types, the construct is similar to normal classes except
that the key methods equals , hashCode and toString are automatically generated from the

class properties. Unlike Java's records, data classes are open for inheritance.
Kotlin interactive shell

$ kotlinc-jvm
type :help for help; :quit for quit
>>> 2 + 2
4
>>> println("Hello, World!")
Hello, World!

Kotlin as a scripting language

Kotlin can also be used as a scripting language. A script is a Kotlin source file using the .kts
filename extension, with executable source code at the top-level scope:

1 // list_folders.kts
2 import [Link]
3 val folders = File(args[0]).listFiles { file ->
[Link]() }
4 folders?.forEach(::println)

Scripts can be run by passing the -script option and the corresponding script file to the compiler.

$ kotlinc -script list_folders.kts "path_to_folder_to_inspect"

Null safety

Kotlin makes a distinction between nullable and non-nullable data types. All nullable objects must be
declared with a "?" postfix after the type name. Operations on nullable objects need special care from
developers: a null-check must be performed before using the value, either explicitly, or with the aid of
Kotlin's null-safe operators:

?. (the safe navigation operator) can be used to safely access a method or property of a possibly
null object. If the object is null, the method will not be called and the expression evaluates to null.
Example:

1 // returns null if...


2 // - foo() returns null,
3 // - or if foo() is non-null, but bar() returns
null,
4 // - or if foo() and bar() are non-null, but baz()
returns null.
5 // vice versa, return value is non-null if and only
if foo(), bar() and baz() are non-null
6 foo()?.bar()?.baz()

?: (the null coalescing operator) is a binary operator that returns the first operand, if non-null, else
the second operand. It is often referred to as the Elvis operator, due to its resemblance to an
emoticon representation of Elvis Presley.

1 fun sayHello(maybe: String?, neverNull: Int) {


2 // use of Elvis operator
3 val name: String = maybe ?: "stranger"
4 println("Hello $name")
5 }

Lambdas

Kotlin provides support for higher-order functions and anonymous functions, or lambdas.[39]

1 // the following function takes a lambda, f, and executes f


passing it the string "lambda"
2 // note that (String) -> Unit indicates a lambda with a String
parameter and Unit return type
3 fun executeLambda(f: (String) -> Unit) {
4 f("lambda")
5 }

Lambdas are declared using braces, { }. If a lambda takes parameters, they are declared within the
braces and followed by the -> operator.

1 // the following statement defines a lambda that takes a single


parameter and passes it to the println function
2 val l = { c : Any? -> println(c) }
3 // lambdas with no parameters may simply be defined using { }
4 val l2 = { print("no parameters") }
"Hello world" example

(Taken from and explained at [Link] .)

1 fun main() {
2 println("Hello, world!")
3 // Hello, world!
4 }

Tools

Android Studio (based on IntelliJ IDEA) has official support for Kotlin, starting from Android Studio
3.[40]

Integration with common Java build tools is supported, including Apache Maven,[41] Apache Ant,[42]
and Gradle.[43]

Emacs has a Kotlin Mode in its MELPA package repository.

JetBrains also provides a plugin for Eclipse.[44][45]

IntelliJ IDEA has plug-in support for Kotlin.[46] IntelliJ IDEA 15 was the first version to bundle the
Kotlin plugin in the IntelliJ Installer, and to provide Kotlin support out of the box.[47]

Gradle: Kotlin has seamless integration with Gradle, which is a popular build automation tool.
Gradle allows you to build, automate, and manage the lifecycle of your Kotlin projects efficiently[48]

Applications

When Kotlin was announced as an official Android development language at Google I/O in May 2017,
it became the third language fully supported for Android, after Java and C++.[49] As of 2020, Kotlin
was the most widely used language on Android, with Google estimating that 70% of the top 1,000
apps on the Play Store were written in Kotlin. Google itself had 60 apps written in Kotlin, including
Maps and Drive. Many Android apps, such as Google Home, were in the process of being migrated to
Kotlin, and therefore use both Kotlin and Java. Kotlin on Android is seen as beneficial for its null-
pointer safety, as well as for its features that make for shorter, more readable code.[50]

In addition to its prominent use on Android, Kotlin was gaining traction in server-side development.
The Spring Framework officially added Kotlin support with version 5, on 4 January 2017.[51] To further
support Kotlin, Spring has translated all its documentation to Kotlin, and added built-in support for
many Kotlin-specific features such as coroutines.[52] In addition to Spring, JetBrains has produced a
Kotlin-first framework called Ktor for building web applications.[53]

In 2020, JetBrains found in a survey of developers who use Kotlin that 56% were using Kotlin for
mobile apps, while 47% were using it for a web back-end. Just over a third of all Kotlin developers
said that they were migrating to Kotlin from another language. Most Kotlin users were targeting
Android (or otherwise on the JVM), with only 6% using Kotlin Native.[54]

Adoption

In 2018, Kotlin was the fastest growing language on GitHub, with 2.6 times more developers
compared to 2017.[55] It is the fourth most loved programming language according to the 2020 Stack
Overflow Developer Survey.[56]

Kotlin was also awarded the O'Reilly Open Source Software Conference Breakout Award for 2019.[57]

Many companies/organizations have used Kotlin for backend development:

Allegro[58]

Amazon[59]

Atlassian[60]

Cash App[61][62]

Flux[63]

Google[64]

Gradle[65]

JetBrains[66]

Meshcloud[67]

Norwegian Tax Administration[68]

OLX[69]

Pivotal[70]

Rocket Travel[71]

Shazam[72]

Zalando[73]
Some companies/organizations have used Kotlin for web development:

Barclay's Bank[74]

Data2viz[75]

Fritz2[76]

JetBrains[77]

A number of companies have publicly stated they were using Kotlin:

Basecamp[78]

Corda, a distributed ledger developed by a consortium of well-known banks (such as Goldman


Sachs, Wells Fargo, J.P. Morgan, Deutsche Bank, UBS, HSBC, BNP Paribas, and Société Générale),
has over 90% Kotlin code in its codebase.

Coursera[79]

DripStat[80]

Duolingo[81]

Meta[82]

Netflix[83]

Pinterest[84]

Trello[85]

Uber[86]

See also

Comparison of programming languages Free and open-source


software portal
References Computer
programming portal

This article contains quotations from Kotlin tutorials which are released under an Apache 2.0
license.

1. "Release Kotlin 2.1.10" ([Link] . 27 January


2025. Retrieved 27 January 2025.
2. "What is the correct English pronunciation of Kotlin?" ([Link]
e-correct-english-pronunciation-of-kotlin/2050) . 16 October 2019. Archived ([Link]
[Link]/web/20191109155142/[Link]
ciation-of-kotlin/2050) from the original on 9 November 2019. Retrieved 9 November 2019.

3. "Kotlin for JavaScript - Kotlin Programming Language" ([Link]


[Link]) . Kotlin. Archived ([Link]
[Link]/docs/reference/[Link]) from the original on 16 August 2020. Retrieved
20 August 2020.

4. "Kotlin for cross-platform mobile development" ([Link]


orm/) . JetBrains: Developer Tools for Professionals and Teams. Archived ([Link]
org/web/20200819163838/[Link] from the
original on 19 August 2020. Retrieved 20 August 2020.

5. "Kotlin Foundation - Kotlin Programming Language" ([Link]


[Link]) . Kotlin. Archived ([Link]
[Link]/foundation/[Link]) from the original on 29 December 2019. Retrieved
16 December 2019.

6. Lardinois, Frederic (7 May 2019). "Kotlin is now Google's preferred language for Android app
development" ([Link]
or-android-app-development/) . TechCrunch. Archived ([Link]
203145/[Link]
oid-app-development/) from the original on 7 May 2019. Retrieved 8 May 2019.

7. "Kotlin FAQ" ([Link] .


Archived ([Link]
which-versions-of-jvm-does-kotlin-target) from the original on 2 June 2021. Retrieved
20 August 2024. "Kotlin lets you choose the version of JVM for execution. By default, the
Kotlin/JVM compiler produces Java 8 compatible bytecode. If you want to make use of
optimizations available in newer versions of Java, you can explicitly specify the target Java
version from 9 to 21. Note that in this case the resulting bytecode might not run on lower
versions."

8. "Stability of Kotlin Components" ([Link] .


Kotlin. 21 May 2021. Archived ([Link]
[Link]/docs/[Link]) from the original on 29 July 2021. Retrieved 29 July
2021.
9. "Kotlin 1.5.0 – the First Big Release of 2021" ([Link]
5-0-released/) . Kotlin. 4 May 2021. Archived ([Link]
ttps://[Link]/kotlin/2021/05/kotlin-1-5-0-released/) from the original on 12
August 2021. Retrieved 29 July 2021.

10. Mobius (8 January 2015), Андрей Бреслав – Kotlin для Android: коротко и ясно ([Link]
[Link]/watch?v=VU_L2_XGQ9s) , archived ([Link]
57/[Link] from the original on 12 April 2023,
retrieved 28 May 2017

11. "test · JetBrains/kotlin@3e4dce3" ([Link]


91c9059fcdcea3eae2394f34942) . GitHub. Archived ([Link]
84043/[Link]
34942) from the original on 17 October 2022. Retrieved 17 October 2022.

12. Krill, Paul (22 July 2011). "JetBrains readies JVM language Kotlin" ([Link]
d/application-development/jetbrains-readies-jvm-based-language-167875) . InfoWorld.
Archived ([Link]
22405/[Link]) from the original on 7 September 2019.
Retrieved 2 February 2014.

13. Waters, John (22 February 2012). "Kotlin Goes Open Source" ([Link]
2/02/22/[Link]) . [Link]. 1105 Enterprise Computing Group.
Archived ([Link]
2/22/[Link]) from the original on 18 February 2014. Retrieved
2 February 2014.

14. "Why JetBrains needs Kotlin" ([Link]


tlin/) . 2 August 2011. Archived ([Link]
[Link]/kotlin/2011/08/why-jetbrains-needs-kotlin/) from the original on 16 August 2023.
Retrieved 11 February 2018. "we expect Kotlin to drive the sales of IntelliJ IDEA"

15. "Kotlin 1.0 Released: Pragmatic Language for JVM and Android | Kotlin Blog" ([Link]
[Link]/kotlin/2016/02/kotlin-1-0-released-pragmatic-language-for-jvm-and-android/) .
[Link]. 15 February 2016. Archived ([Link]
3/[Link]
d-android/) from the original on 24 January 2018. Retrieved 11 April 2017.
16. Shafirov, Maxim (17 May 2017). "Kotlin on Android. Now official" ([Link]
n/2017/05/kotlin-on-android-now-official/) . Archived ([Link]
80054/[Link] from the
original on 29 May 2023. Retrieved 18 May 2017. "Today, at the Google I/O keynote, the Android
team announced first-class support for Kotlin."

17. "Kotlin 1.1 Released With JavaScript Support, Coroutines, and More | Kotlin Blog" ([Link]
[Link]/kotlin/2017/03/kotlin-1-1/) . [Link]. 1 March 2017. Archived (https://
[Link]/web/20250321000855/[Link]
from the original on 21 March 2025. Retrieved 9 April 2025.

18. "Kotlin 1.2 Released: Sharing Code between Platforms | Kotlin Blog" ([Link]
kotlin/2017/11/kotlin-1-2-released/) . [Link]. 28 November 2017. Archived (http
s://[Link]/web/20230524172920/[Link]
-released/) from the original on 24 May 2023. Retrieved 29 November 2017.

19. "Multiplatform Projects - Kotlin Programming Language" ([Link]


[Link]) . Kotlin. Archived ([Link]
[Link]/docs/reference/[Link]) from the original on 18 August 2020.
Retrieved 20 August 2020. "Working on all platforms is an explicit goal for Kotlin, but we see it
as a premise to a much more important goal: sharing code between platforms. With support for
JVM, Android, JavaScript, iOS, Linux, Windows, Mac and even embedded systems like STM32,
Kotlin can handle any and all components of a modern application."

20. "Kotlin/kotlin-full-stack-application-demo" ([Link]


-demo) . Kotlin. 3 April 2020. Archived ([Link]
[Link]/Kotlin/kotlin-full-stack-application-demo) from the original on 14 September 2020.
Retrieved 4 April 2020.

21. "Kotlin full stack app demo: update all involving versions to work with 1.3.70 release" ([Link]
[Link]/issue/KT-37029) . [Link]. Archived ([Link]
rg/web/20200802221433/[Link] from the original
on 2 August 2020. Retrieved 4 April 2020.

22. "Kotlin 1.1 Released with JavaScript Support, Coroutines and more" ([Link]
kotlin/2017/03/kotlin-1-1/) . Archived ([Link]
[Link]/kotlin/2017/03/kotlin-1-1/) from the original on 4 June 2023. Retrieved
1 May 2017.
23. "What's New in Kotlin 1.4 - Kotlin Programming Language" ([Link]
e/[Link]) . Kotlin. Archived ([Link]
[Link]/docs/reference/[Link]) from the original on 8 June 2023. Retrieved
20 August 2020. "In 1.4.0, we slightly change the Swift API generated from Kotlin with respect to
the way exceptions are translated."

24. "What's new in Kotlin 1.7.0 | Kotlin" ([Link] . Kotlin


Help. Archived ([Link]
[Link]) from the original on 20 June 2022. Retrieved 20 June 2022.

25. Krill, Paul (12 January 2023). "Kotlin 1.8.0 adds recursive copy, delete for directories" ([Link]
[Link]/article/3682130/[Link]) .
Archived ([Link]
82130/[Link]) from the original on 8 July
2023. Retrieved 8 March 2022.

26. Haggarty, Sarah (6 July 2023). "Kotlin 1.9.0 Released" ([Link]


7/kotlin-1-9-0-released/) . Archived ([Link]
[Link]/kotlin/2023/07/kotlin-1-9-0-released/) from the original on 28 July 2023.
Retrieved 6 July 2023.

27. JetBrains (21 May 2024). "Kotlin 2.0.0" ([Link]


0) . GitHub. Archived ([Link]
ains/kotlin/releases/tag/v2.0.0) from the original on 21 May 2024. Retrieved 21 May 2024.

28. JetBrains (27 November 2024). "Kotlin 2.1.0" ([Link]


v2.1.0) . GitHub. Archived ([Link]
JetBrains/kotlin/releases/tag/v2.1.0) from the original on 21 May 2024. Retrieved
27 November 2024.

29. "JVM Languages Report extended interview with Kotlin creator Andrey Breslav" ([Link]
[Link]/rebellabs/jvm-languages-report-extended-interview-with-kotlin-creator-andrey-bresl
av/) . [Link]. 22 April 2013. Archived ([Link]
2139/[Link]
n-creator-andrey-breslav/) from the original on 15 January 2019. Retrieved 2 February 2014.

30. "Semicolons" ([Link]


s) . [Link]. Archived ([Link]
[Link]/display/Kotlin/Grammar#Grammar-Semicolons) from the original on 23
December 2015. Retrieved 8 February 2014.
31. "Types are moving to the right" ([Link]
0ef31dd4a#:~:text=Woot!%20That%E2%80%99s%20nice%20and%20aligns,%20pleasure%20fo
r%20our%20eyes%20to%20see.) . Medium. 16 July 2020. Archived ([Link]
b/20230522024640/[Link]
#:~:text=Woot!%20That%E2%80%99s%20nice%20and%20aligns,%20pleasure%20for%20our%2
0eyes%20to%20see.) from the original on 22 May 2023. Retrieved 6 November 2021.

32. "Roman Elizarov is the new Project Lead for Kotlin" ([Link]
oman-elizarov-is-the-new-project-lead-for-kotlin/) . The Kotlin Blog. JetBrains. 19 November
2020. Archived ([Link]
n/2020/11/roman-elizarov-is-the-new-project-lead-for-kotlin/) from the original on 20 January
2022. Retrieved 7 November 2021.

33. "functions" ([Link] . [Link].


Archived ([Link]
lay/Kotlin/Functions) from the original on 23 November 2015. Retrieved 8 February 2014.

34. "What's New in Kotlin 1.3 - Kotlin Programming Language" ([Link]


e/[Link]) . Kotlin. Archived ([Link]
[Link]/docs/reference/[Link]) from the original on 22 August 2023.
Retrieved 4 April 2020.

35. "Design by Contract (DbC) design considerations" ([Link]


ntract-dbc-design-considerations/1321) . Kotlin Discussions. 16 August 2012. Archived (http
s://[Link]/web/20230405081654/[Link]
dbc-design-considerations/1321) from the original on 5 April 2023. Retrieved 4 April 2020.
"Implement the full semantics of Eiffel DbC and improve upon it."

36. "Kotlin for JavaScript | Kotlin" ([Link]


js) . Kotlin Help. 21 January 2021. Archived ([Link]
ps://[Link]/docs/[Link]#use-cases-for-kotlin-js) from the original on 14 July
2023. Retrieved 19 March 2021.

37. "Kotlin Examples: Learn Kotlin Programming By Example" ([Link]


18223052/[Link] .
Archived from the original ([Link]
world) on 18 November 2021. Retrieved 13 April 2019.

38. "Scope functions | Kotlin" ([Link] . Kotlin Help.


Retrieved 10 August 2024.
39. "Higher-Order Functions and Lambdas" ([Link] .
Kotlin. Jetbrains. Archived ([Link]
g/docs/reference/[Link]) from the original on 22 January 2021. Retrieved 19 January
2018.

40. "Kotlin and Android" ([Link] . Android Developers. Archived (http


s://[Link]/web/20231004062949/[Link] from the
original on 4 October 2023. Retrieved 19 June 2017.

41. "Using Maven – Kotlin Programming Language" ([Link]


[Link]) . [Link]. Archived ([Link]
[Link]/docs/reference/[Link]) from the original on 3 November 2016.
Retrieved 9 May 2017.

42. "Using Ant – Kotlin Programming Language" ([Link]


ml) . [Link]. Archived ([Link]
org/docs/reference/[Link]) from the original on 3 November 2016. Retrieved 9 May
2017.

43. "Using Gradle – Kotlin Programming Language" ([Link]


[Link]) . [Link]. Archived ([Link]
[Link]/docs/reference/[Link]) from the original on 9 November 2016. Retrieved
9 May 2017.

44. "Getting Started with Eclipse Neon – Kotlin Programming Language" ([Link]
s/tutorials/[Link]) . [Link]. 10 November 2016. Archived (https://
[Link]/web/20230518022923/[Link]
[Link]) from the original on 18 May 2023. Retrieved 11 April 2017.

45. "JetBrains/kotlin-eclipse: Kotlin Plugin for Eclipse" ([Link]


e) . GitHub. Archived ([Link]
ains/kotlin-eclipse) from the original on 16 February 2016. Retrieved 11 April 2017.

46. "Kotlin :: JetBrains Plugin Repository" ([Link] .


[Link]. 31 March 2017. Archived ([Link]
2/[Link] from the original on 25 June 2023.
Retrieved 11 April 2017.

47. "What's New in IntelliJ IDEA 2017.1" ([Link] .


[Link]. Archived ([Link]
com/idea/whatsnew/) from the original on 3 October 2023. Retrieved 11 April 2017.
48. "Gradle" ([Link] . Kotlin Help. Archived ([Link]
g/web/20240408064338/[Link] from the original on 8 April
2024. Retrieved 8 April 2024.

49. Lardinois, Frederic (17 May 2017). "Google makes Kotlin a first-class language for writing
Android apps" ([Link]
for-writing-android-apps/) . [Link]. Archived ([Link]
065631/[Link]
ting-android-apps/) from the original on 22 May 2017. Retrieved 28 June 2018.

50. "Kotlin programming language: How Google is using it to squash the code bugs that cause most
crashes" ([Link]
uash-the-bugs-that-cause-most-crashes/) . ZDNet. Archived ([Link]
30406045458/[Link]
to-squash-the-bugs-that-cause-most-crashes/) from the original on 6 April 2023. Retrieved
6 December 2020.

51. "Introducing Kotlin support in Spring Framework 5.0" ([Link]


cing-kotlin-support-in-spring-framework-5-0) . Spring. Pivotal. 4 January 2017. Archived (http
s://[Link]/web/20230823031409/[Link]
n-support-in-spring-framework-5-0/) from the original on 23 August 2023. Retrieved
29 September 2020.

52. "The State of Kotlin Support in Spring" ([Link]


otlin-support-in-spring/) . JetBrains. 14 August 2020. Archived ([Link]
230607090327/[Link]
g/) from the original on 7 June 2023. Retrieved 6 December 2020.

53. "Review of Microservices Frameworks: A Look at Spring Boot Alternatives" ([Link]


rticles/not-only-spring-boot-a-review-of-alternatives) . DZone. Archived ([Link]
g/web/20230521150446/[Link]
es) from the original on 21 May 2023. Retrieved 6 December 2020.

54. "Kotlin Programming - The State of Developer Ecosystem 2020" ([Link]


evecosystem-2020/kotlin/) . JetBrains. Archived ([Link]
54/[Link] from the original on 5 April
2023. Retrieved 29 September 2020.

55. "The state of the Octoverse" ([Link]


[Link]/projects) . Archived from the original ([Link] on
22 March 2019. Retrieved 24 July 2019.
56. "Stack Overflow Developer Survey 2020" ([Link]
-loved-dreaded-and-wanted) . Archived ([Link]
s://[Link]/survey/2020#most-loved-dreaded-and-wanted) from the
original on 4 June 2020. Retrieved 28 May 2020.

57. "Kotlin wins Breakout Project of the Year award at OSCON '19" ([Link]
n/2019/07/kotlin-wins-breakout-project-of-the-year-award-at-oscon-19/) . 18 July 2019.
Archived ([Link]
9/07/kotlin-wins-breakout-project-of-the-year-award-at-oscon-19/) from the original on 17
May 2022. Retrieved 24 July 2019.

58. "Kotlin at Allegro" ([Link] . Talking Kotlin. October 2018.


Archived ([Link]
gro/) from the original on 1 June 2023. Retrieved 29 September 2020.

59. "QLDB at Amazon" ([Link] . Talking Kotlin. 30 June 2020. Archived (ht
tps://[Link]/web/20230601121344/[Link] from the
original on 1 June 2023. Retrieved 29 September 2020.

60. "Future of Jira Software powered by Kotlin" ([Link]


w) . YouTube. 29 October 2019. Archived ([Link]
s://[Link]/watch?v=4GkoB4hZUnw) from the original on 1 September 2023.
Retrieved 1 September 2023.

61. "Going Full Kotlin Multiplatform" ([Link] .


Talking Kotlin. 14 April 2020. Archived ([Link]
[Link]/going-full-kotlin-multiplatform/) from the original on 5 April 2023. Retrieved
29 September 2020.

62. "square/sqldelight" ([Link] . GitHub. Archived ([Link]


[Link]/web/20190620112740/[Link] from the original on 20
June 2019. Retrieved 24 July 2019.

63. "Using Kotlin for backend development at Flux" ([Link]


nd-development-at-Flux/) . Talking Kotlin. 14 August 2019. Archived ([Link]
eb/20230601111601/[Link]
x/) from the original on 1 June 2023. Retrieved 29 September 2020.

64. "State of Kotlin on Android" ([Link]


&t=309) . YouTube. 10 June 2020. Archived ([Link]
tps://[Link]/watch?v=AgPj1Q6D--c&feature=[Link]&t=309) from the original on
15 January 2023. Retrieved 29 September 2020.
65. "Gradle Kotlin DSL Primer" ([Link] .
[Link]. Archived ([Link]
rg/current/userguide/kotlin_dsl.html) from the original on 18 August 2023. Retrieved
29 September 2020.

66. "Kotless" ([Link] . Talking Kotlin. 30 January 2020. Archived (http


s://[Link]/web/20230405081655/[Link] from the
original on 5 April 2023. Retrieved 29 September 2020.

67. "Kotlin on the backend at Meshcloud" ([Link]


loud/) . Talking Kotlin. 28 February 2018. Archived ([Link]
418/[Link] from the original on 6
April 2023. Retrieved 29 September 2020.

68. "KotlinConf 2019: Kotlin Runs Taxes in Norway by Jarle Hansen & Anders Mikkelsen" ([Link]
[Link]/watch?v=K8XxaAba65g&list=PLQ176FUIyIUY6SKGl3Cj9yeYibBuRr3Hl&index=2
2) . YouTube. 16 December 2019. Archived ([Link]
ps://[Link]/watch?v=K8XxaAba65g&list=PLQ176FUIyIUY6SKGl3Cj9yeYibBuRr3Hl&i
ndex=22) from the original on 10 April 2023. Retrieved 29 September 2020.

69. "Greenfield Kotlin at OLX" ([Link] . Talking Kotlin. 24


August 2018. Archived ([Link]
m/greenfield-kotlin-at-olx/) from the original on 1 June 2023. Retrieved 29 September 2020.

70. "Application Monitoring with Micrometer" ([Link]


micrometer/) . Talking Kotlin. 14 June 2018. Archived ([Link]
140822/[Link] from the original
on 1 April 2023. Retrieved 29 September 2020.

71. "Groovy and Kotlin Interop at Rocket Travel" ([Link]


at-rocket-travel/) . Talking Kotlin. 14 May 2018. Archived ([Link]
05081653/[Link] from the
original on 5 April 2023. Retrieved 29 September 2020.

72. "Kotlin at Shazam" ([Link] . Talking Kotlin. 29 July 2018.


Archived ([Link]
zam/) from the original on 1 April 2023. Retrieved 29 September 2020.

73. "Zally - An API Linter" ([Link] . Talking Kotlin. 29


January 2018. Archived ([Link]
m/Zally-An-API-Linter/) from the original on 6 April 2023. Retrieved 29 September 2020.
74. "Java/Kotlin Developer - Barclays - Prague - Wizbii" ([Link]
job/convertibles-trading-system-developer) . [Link]. Retrieved 29 September 2020.

75. "KotlinConf 2017 - Frontend Kotlin from the Trenches by Gaetan Zoritchak" ([Link]
[Link]/watch?v=1Pu0TYJJ2Tw&list=PLQ176FUIyIUY6UK1cgVsbdPYA3X5WLam5&index=14) .
YouTube. 30 November 2017. Archived ([Link]
[Link]/watch?v=1Pu0TYJJ2Tw&list=PLQ176FUIyIUY6UK1cgVsbdPYA3X5WLam5&
index=14) from the original on 10 April 2023. Retrieved 29 September 2020.

76. "Fritz2" ([Link] . Talking Kotlin. 14 September 2020. Archived (http


s://[Link]/web/20230406204445/[Link] from the original
on 6 April 2023. Retrieved 29 September 2020.

77. "KotlinConf 2019: Kotlin in Space by Maxim Mazin" ([Link]


KLgYY4) . YouTube. 18 December 2019. Archived ([Link]
530/[Link] from the original on 9 April 2023.
Retrieved 29 September 2020.

78. "How we made Basecamp 3's Android app 100% Kotlin – Signal v. Noise" ([Link]
[Link]/all/20180801160548/[Link]
-app-100-kotlin-35e4e1c0ef12?gi=e9a4b3c9bf9f) . Signal v. Noise. 29 April 2017. Archived
from the original ([Link]
in-35e4e1c0ef12) on 1 August 2018. Retrieved 1 May 2017.

79. "Becoming bilingual@coursera" ([Link]


coursera-d8048dce73e3) . 26 April 2018. Archived ([Link]
242/[Link]
from the original on 15 January 2023. Retrieved 24 July 2019.

80. "Kotlin in Production – What works, Whats broken" ([Link]


59/[Link] .
[Link]. 24 September 2016. Archived from the original ([Link]
lin-in-production-the-good-the-bad-and-the-ugly-2/) on 1 July 2019. Retrieved 11 April 2017.

81. Chaidarun, Art (6 April 2020). "Migrating Duolingo's Android app to 100% Kotlin" ([Link]
[Link]/migrating-duolingos-android-app-to-100-kotlin/) . Duolingo Blog.

82. "Porting Million Lines of Code from Java to Kotlin at Meta" ([Link]
11/meta-port-java-kotlin/) .
83. "Rob Spieldenner on twitter" ([Link]
6) . Archived ([Link]
er/status/708355228832178176) from the original on 25 December 2022. Retrieved 24 July
2019.

84. "Droidcon NYC 2016 - Kotlin in Production" ([Link]


I) . YouTube. 3 November 2016. Archived ([Link]
s://[Link]/watch?v=mDpnc45WwlI) from the original on 14 April 2023. Retrieved
24 July 2019.

85. "Dan Lew on Twitter" ([Link] . Archived


([Link]
97339564032) from the original on 2 May 2023. Retrieved 24 July 2019.

86. "Measuring Kotlin Build Performance at Uber" ([Link]


ld-performance/) . 30 April 2019. Archived ([Link]
ps://[Link]/blog/measuring-kotlin-build-performance/) from the original on 5 June
2023. Retrieved 6 March 2024.

External links

Official website ([Link]

You might also like