Jump to content

Kotlin (programming language)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wickorama (talk | contribs) at 15:37, 2 February 2014 (Initial page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Kotlin
Designed byJetBrains
DeveloperJetBrains and open source contributors
Typing disciplinestatic
PlatformJava Virtual Machine
OSany JVM supported
License Apache 2
Websitehttp://kotlin.jetbrains.org/
Influenced by
Java, Scala, Groovy, C#


Kotlin is a statically-typed programming language that runs on the JVM. Its primary development is from a team of JetBrains programmers based in St. Petersburg, Russia (The name comes from the Kotlin Island, near St. Petersburg).[1] Kotlin was named Language of the Month in the January 2012 issue of Dr. Dobb's Journal. While not syntax compatible with Java, Kotlin is designed to interoperate with Java code and is reliant on Java code from the existing Java Class Library, such as the Collections Framework.

History

In July 2011 JetBrains unveiled project Kotlin, which had been under development for a year, a new language for the the JVM.[2] JetBrains lead Dmitry Jemerov said that most languages did not have the features they were looking for, with the exception of Scala. However, he cited the slow compile time of Scala as an obvious deficiency.[2] One of the stated goals of Kotlin is to compile as fast as Java. In February 2012, JetBrains open sourced the project under the Apache 2 licence.[3]

Philosopy

Development lead Andrey Breslav has said that Kotlin is designed to be an industrial strength object-oriented language, be a better language than Java but still be fully interoperable with Java code, allowing companies to make a gradual migration from Java to Kotlin.[4]

Semantics

Like Scala and Go, Kotlin variable declarations and parameter lists have the data type come after the variable name, unlike C and its derivatives such as C++, Java, C#, and D.


Hello, world! example

package hello

fun main(args : Array<String>) {
  println("Hello, world!")
}


References

  1. ^ Heiss, Janice (April 2013). "The Advent of Kotlin: A Conversation with JetBrains' Andrey Breslav". oracle.com. Oracle Technology Network. Retrieved February 2, 2014.
  2. ^ a b Krill, Paul (Jul 22, 2011). "JetBrains readies JVM language Kotlin". infoworld.com. InfoWorld. Retrieved February 2, 2014.
  3. ^ Waters, John (February 22, 2012). "Kotlin Goes Open Source". ADTmag.com/. 1105 Enterprise Computing Group. Retrieved February 2, 2014.
  4. ^ RebelLabs (April 22, 2013). "JVM Languages Report extended interview with Kotlin creator Andrey Breslav". http://zeroturnaround.com/. Retrieved February 2, 2014. {{cite web}}: External link in |website= (help)