Kotlin: A Good Citizen on the Java Platform

Java & JVM
Location: Portland 255 Level: Intermediate

Ever wondered how you could benefit from using a new JVM-targeted language?
It seems hard to change horses in *main*stream, while having a huge code base in production. And in the end, you don’t use tools because they are cool, but because they lower your cost/effect ratio…

It turns out that the infrastructural cost of using Kotlin code in your Java project is close to nothing: one more step in your build script and one IDE plugin, and you can call Java code from Kotlin as well as call Kotlin code from Java.

In this talk we will tell you what you get in return.

Firstly, you get the ability to write new code using a whole bunch of features such as

  • static null-safety guarantees,
  • smart casts,
  • extension functions,
  • higher-order functions (and closures),
  • pattern matching,
  • internal DSLs,
  • and more.
    Secondly, there is a whole library that enhances the JDK classes, such as
  • map()/reduce()/… for collections,
  • many enhancements for IO, Strings and so on…
    that allow you to write better code using existing libraries.

You can read more about Kotlin at http://jetbrains.com/kotlin
And try it out at http://kotlin-demo.jetbrains.com/

Photo of Hadi Hariri

Hadi Hariri


Hadi Hariri leads the Developer Advocacy team at JetBrains. His passions include software architecture and web development. He has authored a couple of books and is a frequent contributor to developer publications. Hadi has been speaking at industry events for for nearly 15 years. He is the developer and creator of many things OSS, and he spends as much time as he can writing code. He is also an ASP.NET MVP and ASP.NET Insider. Hadi is based in Spain, where he lives with his wife and three sons.

Comments on this page are now closed.


Liang Shouqing
07/24/2012 8:29am PDT

can you share the slides?


For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at (707) 827-7065 or scordesse@oreilly.com.

View a complete list of OSCON contacts