Re:Java tools and technologieslandscape for 2014
by DCKing on Wednesday May 21, 2014 @12:20PM
(#7779062)
It's maybe even wrong of me to lump Ceylon and Kotlin together. Kotlin definitely is richer (and closer to Scala in features) and can also compile to JavaScript, which puts it in a different boat.
As a straight and immediate Java replacement, I'd definitely recommend Kotlin as well. If you want to switch over existing Spring apps, you will not get the best out of Scala. Scala, in my experience, is most effective when written without Java goggles on. But Scala definitely has large advantages for new projects or broad refactorings.
Re:Java tools and technologieslandscape for 2014
by lmm on Wednesday May 21, 2014 @12:25PM
(#7779095)
Ceylon also targets compile-to-javascript. (I thought Kotlin kept the standard Java library - have they compiled a version of that for javascript or what?)
Re:Java tools and technologieslandscape for 2014
by pron on Wednesday May 21, 2014 @12:44PM
(#7779199)
I'm not sure about Kotlin's plans re Javascript standard libraries, but I guess the approach is similar to Clojure, i.e. being a "hosted language" aimed at easy integration with the host environment (plus a very basic "common" standard library).
Re:Java tools and technologieslandscape for 2014
by lmm on Thursday May 22, 2014 @06:20AM
(#7783054)
If anything that makes it less reliable for compile-to-javascript than Ceylon, no? (AIUI Ceylon abandons the Java standard library in favour of its own, partly so that you have the same standard library for either target).
Re:Java tools and technologieslandscape for 2014
by lmm on Wednesday May 21, 2014 @12:13PM
(#7779016)
> their switching costs are orders of magnitude lower compared with Scala's.
How so? Scala may have more ways for features to interact and I guess a larger library ecosystem to become aware of (though it seems perverse to count a large library ecosystem as a downside), but IME most of the cost of switching is in tooling support and finding a developer community to answer questions - both areas where Scala is far ahead of something like Kotlin.
Re:Java tools and technologieslandscape for 2014
by pron on Wednesday May 21, 2014 @12:41PM
(#7779182)
Because if you have a Java project, it's trivial to write a few classes in Kotlin. It feels perfectly natural to have a mixed Java/Kotlin package. Integration is seamless. Scala/Java integration, OTOH, is a pain, especially if you want it to feel natural in both languages, or even only in Scala. Even Clojure/Java integration is easier than Scala/Java integration.
As to "bringing nothing new to the table at all", I'm not sure about that. It depends on your definition of "nothing" and "something". I think they certainly bring convenience, and their[1] switching costs are orders of magnitude lower compared with Scala's. The question is, then, is the "something new" Scala brings worth the price. Again, the answer to that depends on the user. Some will think it most certainly is; others will find the cost way too high.
[1]: Well, Kotlin's; not Ceylon's