Back
Featured image of post What is Kotlin?

What is Kotlin?

Kotlin is an open-source statically typed programming language

πŸ’‘ What is kotlin?

Kotlin is an open-source statically typed programming language that targets the JVM, Android, JavaScript and Native. It’s developed by JetBrains. The project started in 2010 and was open source from very early on. The first official 1.0 release was in February 2016.
πŸ”— Definition from the official FAQ.


πŸ“š History

  1. Jetbrains announce the Kotlin Project, a new programming language that it had been building up for over a year and it is compatible with the JVM.
  2. The Kotlin programming language was licensed as an Apache 2.0 project.
  3. Version 1.0 was released, it was the first stable version.
  4. On Google I/O 2017 the first-class support for the kotlin language for Android development was announced. Uses.
  5. Version 1.2 was released.
  6. Version 1.3 was released.
  7. Version 1.4 was released.
  8. Versions 1.5 and 1.6 were released.

Google I/O 2017

Kotlin first logo Kotlin 2012 logo Kotlin 2016 logo Kotlin 2021 logo


πŸ‘‹ Hello world

The next lines show you how a basic hello world is. These lines can be complete content of a file .kt (the Kotlin extension) and it will print “Hello world” after compiling and executing it.

1
2
3
fun main() {
    println("Hello, World!")
}

πŸš€ Uses

  • Android development: Kotlin is now the preferred language for Android developers and a lot of new libraries are now written in kotlin.
    πŸ”— Learn more at developer.android.com/kotlin

  • Server-side development: Because Kotlin is interoperable with Java, there are many frameworks and libraries that have official support, and new frameworks have been created like Ktor.
    πŸ”— For example the Ktor Project
    πŸ”— Using Kotlin with Spring Boot
    πŸ”— Vertx for Kotlin

  • Web development: Kotlin is capable of transpile to the JS language and this allows using projects that aim to create web projects using Kotlin.
    πŸ”— Jetpack Compose for web

  • Desktop development: Any UI framework or library from the Java world can be used with kotlin.
    πŸ”— Jetpack Compose for desktop
    πŸ”— TornadoFX

  • Native development: You can compile to binary and target for a variety of platforms that a VM is not used, for example, the Android NDK, iOS, Mac, Linux, Windows, etc.
    πŸ”— Learn more of Kotlin Native

  • Data science: Just like other technologies that came from the Java world, data science takes advantage of existing projects and accepts kotlin as a supported language.
    πŸ”— Learn more of Kotlin for data science

  • Multiplatform mobile development: This initiative offers you to share code between Android and iOS projects and lets you keep the UI and platform-specific features separate from the domain logic. πŸ”— Learn more of Kotlin multiplatform

  • Gradle plugins: Now you can use Kotlin instead of groovy to write Gradle plugins and scripts.
    πŸ”— Learn more of using Kotlin on Gradle

  • AWS SDK: Recently amazon announce a new SDK to allow developers to call AWS services using kotlin specific features.
    πŸ”— Official announcement


❓ Did you know …?

  • Roman Elizarov is the project lead of the Kotlin Project.

  • The name β€œKotlin” comes from an island called β€œKotlin Island” near St. Petersburg.

  • One of the reasons for creating a new language was to improve sales of IntelliJ IDEA.

  • Eclipse and Netbeans have an official plugin for Kotlin.

The Kotlin island Roman Elizarov

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy