News for hackers. Stuff that matters.
Re:Why Kotlin is my next programming language (2015) by charlieflowers on Saturday June 18, 2016 @11:59PM (#11931723)
I am a bit in a hurry, so I acknowledge I only quickly scanned the article. But it struck me as damning by faint praise.

Like a waiter advising, "Choose the chicken parm. It doesn't have any bones, all the salmonella has been cooked out, and it doesn't have any bad flavor."

If I'm going to be successfully pitched a programming language, I will need to see its power of expression or be shown how it solves some problems that other languages don't address well. Some "special sauce."

No offense intended ... that's just my quick take.

Re:Why Kotlin is my next programming language (2015) by jkot on Sunday June 19, 2016 @03:27AM (#11932146)
> If I'm going to be successfully pitched a programming language, I will need to see its power of expression or be shown how it solves some problems that other languages don't address well. Some "special sauce."

I think that is wrong approach. Kotlin has nothing special or innovative, everything was already here. But it is well balanced and industrial strength (something like java). It is simply good workhorse for most tasks. It is excellent replacement for java, that is all.

Re:Why Kotlin is my next programming language (2015) by reality_czech on Sunday June 19, 2016 @05:06AM (#11932334)
Now that JDK8 has made Java more expressive, and Oracle's trolling has come to nothing, I expect Kotlin and Ceylon to fade away. If you want Java, just use it, already.
Re:Why Kotlin is my next programming language (2015) by Nullabillity on Sunday June 19, 2016 @06:36AM (#11932499)
Java 8 improved things, but it's still far behind the rest. Also, both Kotlin and Ceylon (and Scala and Clojure) would be affected by the Oracle trolling, since they all run on the JVM.
Re:Why Kotlin is my next programming language (2015) by lmm on Sunday June 19, 2016 @03:35AM (#11932170)
I think that might be what's needed for a really good programming language. If you want a general-purpose language, you probably don't want something unique and envelope-pushing - you just want a language that avoids all the mistakes that are so common, that learns from what's gone before. Like buying a table - you usually don't want a radical table that can do something other tables can't, you just want a good solid table.

(I don't think Kotlin is such a language - I think Ceylon might be. I work in Scala at the moment)

Re:Why Kotlin is my next programming language (2015) by a-saleh on Sunday June 19, 2016 @08:01AM (#11932678)
It is interesting that when I considered next language to write a side-project in, I was choosing between Ceylon and Kotlin.

In the end I did choose Kotlin. My reasons included:

* support in IDEA

* focus on java interoperability

* nice interop with android

but the main thing probably was, that I trust JetBrains that they will support Kotlin in the long term, while I don't think RedHat has any projects depending on the language.

So, why would you choose Ceylon?

Re:Why Kotlin is my next programming language (2015) by lmm on Sunday June 19, 2016 @05:15PM (#11934703)
Well in reality I choose Scala, largely because it has a level of maturity and ecosystem support (both libraries and other tools) that neither Ceylon nor Kotlin can match. But I'd use Ceylon rather than Kotlin because I think it's a much better designed actual language (see cousin post for examples). I personally dislike IDEA (prefer Eclipse), and I don't think Kotlin actually has any better Java or android interop than Ceylon (or Scala), they just make more of a fuss about it in their marketing.
Re:Why Kotlin is my next programming language (2015) by premium-concern on Sunday June 19, 2016 @05:24PM (#11934749)
> they just make more of a fuss about it in their marketing

This succinctly describes many aspects of Kotlin.

Re:Why Kotlin is my next programming language (2015) by on_and_off on Sunday June 19, 2016 @04:00AM (#11932210)
Could you explain why Ceylon fits the bill while Kotlin does not please ?
Re:Why Kotlin is my next programming language (2015) by lmm on Sunday June 19, 2016 @05:09PM (#11934686)
* Null-handling in Ceylon falls out naturally from union types. Null handling in Kotlin is a hacky special case with a bunch of specific operators. In particular this means it's impossible to write a method in Kotlin that works with both traditional nullable values and Optionals, which will make interop a lot worse as the Java ecosystem adopts Optionals.

* Ceylon has actually listened to the lessons of Scala tuples and built theirs the way ours should have been all along (HLists), making them much easier to abstract over. (NB not actually an issue in Scala in practice - you import Shapeless and then everything works the way it should - but it's nicer to have the right thing by default, as will hopefully be the case in Scala 3.x)

* Ceylon has higher-kinded type support done right - multiple parameter lists to avoid Scala's unification issues that lead to the use of "type lambdas" (hopefully fixed in Scala 2.12).

Kotlin simply doesn't support higher-kinded types; combined with the lack of union types this means magical annotations with bytecode manipulation where suddenly the code you wrote isn't the code that runs, because just like Java that's the only way to do a lot of things in Kotlin. Async is a special case with language-level dedicated support code. Error handling is done solely through unchecked exceptions which is fine for system failures but not a good way to handle "expected" failures like input validation.

Re:Why Kotlin is my next programming language (2015) by KaneMorgan on Sunday June 19, 2016 @03:34AM (#11932167)
I actually like that it's informational rather than ideological.
Re:Why Kotlin is my next programming language (2015) by PDoyle on Monday June 20, 2016 @12:12AM (#11936010)
There are other articles like that, of course.
Re:Why Kotlin is my next programming language (2015) by bjterry on Monday June 20, 2016 @02:50AM (#11936475)
I had never heard of Kotlin before, despite reading Hacker News daily and otherwise being generally plugged-in to programming discussion on the Internet. So for many people this will be their first introduction to the language.