5 ms·
Kotlin Goes Open Source
- bwarp 15y agoI'm suspicious of ANOTHER language. There are too many already. Regulation XKCD: http://xkcd.com/927/ http://xkcd.com/927/
- pron 15y agoWhile Clojure remains my favorite JVM language, I think Kotlin is the first language to have a fighting chance at replacing Java as an industry-wide blue-collar language. It doesn't try to solve programming's problems with new approaches like Clojure and Erlang; on the contrary - it's meant to let programmers continue thinking more or less as they have been thinking so far, but it has all the modern features and a good balance of power vs. ease of use/learning. It's what Java was 17 years ago.
- moondowner 15y agoCan you compare Kotlin with Ceylon [http://www.ceylon-lang.org/ http://www.ceylon-lang.org/]? I'm very interested in what's the core/main difference between them and will be better in which use-cases.
- pron 15y agoI think the main difference is Java interop. Kotlin is fully compatible with Java and Java libraries, while Ceylon is not quite (the Ceylon FAQ says: "since Ceylon will be based on its own modular SDK, making a clean break from the legacy Java SDK, Ceylon will require new frameworks designed especially for Ceylon").
- chaostheory 15y agoHow does it compare with Scala?
- pron 15y agoWell, this is a sensitive subject. Scala is no doubt more powerful and has some awesome features, but I'd say that Kotlin has 99% of the features 99% of Scala developers choose Scala for in the first place (in other words, those Scala features that Kotlin is missing are not the ones that made most Scala developers choose Scala), while it is far easier to learn (in its entirety). Also, IDE support is far superior, and will remain so (because some Scala features, like structural types, make some actions like refactoring impossible at times). Also, it compiles to Javascript as well as to Java bytecode.
- soc88 15y agoSometimes I just think Scala sucks at marketing – completely. - I think that especially the adjustments and features in the upcoming Scala 2.10 address real-world requirements like performance, reflection and database access. - Scala compiles to JavaScript for months already as well as .NET. - I remember the claim regarding IDE support from the Kotlin presentation. JetBrain's own engineers disagreed with it. I think the jury is still out there.
- raphinou 15y agoI feel like we see the same things with languages as we had with version control. For a long time, you had only CVS, then you had (too) many options to choose from: monotone, darcs, mercurial, git, and I certainly forgot some. Now, we see new languages appear (and get some exposure) at a frightening pace: Rust, Go for system programming, and on the JVM: XTend, Ceylon, Kotlin, Clojure, Scala, Groovy, etc It's great to see things move, but when you have so many option, it can be hard to make a choice. I expect some of these to take the lead, like git seems to be doing in the DVCS space.
- bishop_mandible 15y agoEvery company wants to have control over its own programming language. Even more since Oracle sued Google over Java. Microsoft -> C# Google -> Go, Dart Apple -> Objective C Oracle -> Java VMWare -> Groovy Red Hat -> Ceylon JetBrains -> Kotlin Mozilla -> Rust Facebook and Amazon should invent their own languages as well.
- borispavlovic 15y agoNeither Facebook nor Amazon are developer's companies. They will do very well with whatever technology they used. Amazon will run any program written in any language on their elastic cloud. Facebook's apps can be written in any language, too.
- bad_user 15y agoOracle hasn't sued Google over the usage of Java the language. And going with Kotlin or Groovy won't protect you from Oracle.
- dchest 15y agoAT&T -> C. Xerox -> Smalltalk... You arranged a bunch of companies and programming languages which were designed by those companies (or with their support) and said that the motivation for designing those languages was "control". The fact the some of these examples were indeed (at least partially) motivated by "control" doesn't prove that all other examples fall into the same category. Mozilla wants Rust to have control over their programming language? Step 1. Invent programming language. Step 2. Control it. Step 3. Profit!
- acuozzo 15y agoGreat job, JetBrains! `Going open' (as either OSS or FOSS) seems to be the only logical decision for a programming language. Proprietary programming languages rarely stand the test of time, even when they're awesome.
- thebluesky 15y agoNice to see them dropping the silly "System.out" prefix for println. A minor point, but it was rather silly. See other Kotlin examples here: http://kotlin-demo.jetbrains.com/ http://kotlin-demo.jetbrains.com/ Kotlin copies much of its design and syntax from earlier Scala versions e.g. the use of companion classes, constructor syntax etc. but leaves out some of the most useful features found in Scala today. Kotlin, unlike Scala cannot make existing classes implement a new interface, nor can it do structural typing (http://codemonkeyism.com/scala-goodness-structural-typing/ http://codemonkeyism.com/scala-goodness-structural-typing/). It would be great if they added these features, without them I feel like I'm getting a poor man's Scala. The only consolation is that Kotlin does string interpolation, something which is being added to Scala 2.10 anyway.
- pron 15y agoI don't want to get into an argument over Scala, but let's just say that Scala has some really cool features from a language design perspective, but many of them come at a HUGE cost to ease of learning or reading code, or to IDE support. Scala's power, which is without a doubt very impressive for a statically-typed language, comes at a price which many organizations are unwilling to pay.
- thebluesky 15y agoDo you have data to back up that claim? The only example I've come across is Yammer. Real world adoption data paints a different picture, one of rapid adoption of Scala by both start-ups and more traditional organizations like banks: see: http://thecodegeneral.wordpress.com/2011/11/27/scala-adoption/ http://thecodegeneral.wordpress.com/2011/11/27/scala-adoptio... and http://highscalability.com/blog/2012/2/13/tumblr-architecture-15-billion-page-views-a-month-and-harder.html http://highscalability.com/blog/2012/2/13/tumblr-architectur...
- pron 15y agoI just compare Scala's growth to that of Java or even Ruby (since RoR). I also think that this adoption is not the result of Scala's power features but in spite of them (really, there was little choice in the statically-typed JVM languages). But I really have no skin in this game, and Java does need a modern replacement to fill a certain niche, and I have a hunch it will be Kotlin.
- soc88 15y agoIf the language is "much simpler than Scala", why do I get stuff like this? :-) http://imgur.com/EaxXZ http://imgur.com/EaxXZ
- thebluesky 15y agoThat's quite an error for such a small piece of code... None of the following functions can be called with the arguments supplied: final fun <T:Any?,R:Any?> Array<T>.map(var result:Collection<R>,var transform:Function1<T,R>):Collection<R> defined<java_root>std final fun <T:Any?,R:Any?>Interable<T>.map(var result:Collection<R>,var transform:Function1<T,R>):Collection<R>defined in <java_root>.std
- awj 15y agoThe language and its compiler are also "much newer than Scala." That or we need to write our own compiler (named Klang) and use it to convince the Kotlin devs to get off their butts and fix those error messages. :)
- joshbaptiste 15y agoHmm.. so in essence Kotlin could be used as a drop in replacement for Android programming.