News for hackers. Stuff that matters.
Re:Kotlin: A New Hope in a Java 6 Wasteland by cdbattags on Monday September 28, 2015 @12:21PM (#10291229)
I believe a lot of the lack of adoption has to do with how hard it tends to be setting up the environment for Scala dev on Android. Whereas, Kotlin aims to make it as easy as possible by working hand in hand with Android Studio/IntelliJ.
Re:Kotlin: A New Hope in a Java 6 Wasteland by incepted on Monday September 28, 2015 @12:26PM (#10291266)
Scala's runtime also disqualifies it from anything but toy projects on Android (something like 50k methods). This document goes in greater details:

https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhC...

Re:Kotlin: A New Hope in a Java 6 Wasteland by harryh on Monday September 28, 2015 @12:34PM (#10291318)
Isn't it fairly easy to slim down the runtime at build time to only the methods you're using? I was under the impression that this was possible, though I've never actually done it so what do I know....
Re:Kotlin: A New Hope in a Java 6 Wasteland by eeperson on Monday September 28, 2015 @01:35PM (#10291726)
Yes, it is. This is commonly accomplished with a tool called ProGuard. Doing this comes with some other trade offs but it is easy to do.
Re:Kotlin: A New Hope in a Java 6 Wasteland by justthistime_ on Monday September 28, 2015 @06:38PM (#10293672)
Just because they didn't do their research doesn't mean it's not a no-brainer.

> it requires build complexity

All languages benefit from not having to deploy their standard library on every iteration, not only Scala.

Re:Kotlin: A New Hope in a Java 6 Wasteland by harryh on Monday September 28, 2015 @12:23PM (#10291241)
I certainly agree that Typesafe (the company behind Scala) has hugely underinvested in tooling.

The fact that they still (afaik) recommend sbt as a build tool is telling.

Re:Kotlin: A New Hope in a Java 6 Wasteland by andreaferretti on Monday September 28, 2015 @01:23PM (#10291637)
I happen to find sbt one of the few build tools (together with lein) that are decent enough. Do you have any particular reason for your dislike?
Re:Kotlin: A New Hope in a Java 6 Wasteland by harryh on Monday September 28, 2015 @01:29PM (#10291681)
It doesn't work with large codebases. Or even very well with medium sized ones.
Re:Kotlin: A New Hope in a Java 6 Wasteland by eeperson on Monday September 28, 2015 @03:22PM (#10292461)
I'm using it on a 100k line codebase without issue. What problems are you having?
Re:Kotlin: A New Hope in a Java 6 Wasteland by merb on Monday September 28, 2015 @05:30PM (#10293351)
i'm loving sbt, but still on projects above > 100 dependencies it gets really really slow to download it, while with gradle (even i dislike it) it is way way faster.
Re:Kotlin: A New Hope in a Java 6 Wasteland by eeperson on Monday September 28, 2015 @06:20PM (#10293597)
This is probably SBT's greatest weakness and Gradle's biggest strength, relatively. I've never run in to this personally, probably because I'm use Nexus[1] as a repository cache. My understanding is that the underlying problem is a limitation of the dependency resolution library they use, Ivy[2]. Gradle used to use this but at some point wrote their own dependency resolution library. There are some improvements in recent versions of SBT but you have do a little configuration. See here[3] for more details.

[1] http://www.sonatype.com/nexus/product-overview

[2] http://ant.apache.org/ivy/

[3] https://www.typesafe.com/blog/improved-dependency-management...

Re:Kotlin: A New Hope in a Java 6 Wasteland by merb on Wednesday September 30, 2015 @08:15AM (#10303317)
I also thought of introducing Nexus, but since we are only 3 Devlopers (yet, we searching though) it didn't too much sense. I also I hoped for Nexus 3 (but since I'm waiting over half a year now, we might introduce Nexus 2).

Oh and we also using the Cache, when working on newer sbt projects.

Re:Kotlin: A New Hope in a Java 6 Wasteland by dragonwriter on Monday September 28, 2015 @04:09PM (#10292841)
> It doesn't work with large codebases.

This type of general conclusion isn't, by itself, particularly useful in discussion; a lot more useful would be presenting a summary of the specific facts and experiences that lead you to this conclusion.

Re:Kotlin: A New Hope in a Java 6 Wasteland by saryant on Monday September 28, 2015 @02:50PM (#10292213)
What size are we talking? I've had no issues with SBT on a 20k line codebase.
Re:Kotlin: A New Hope in a Java 6 Wasteland by caoilte on Monday September 28, 2015 @04:06PM (#10292820)
sbt isn't very good for copy&paste build masters, which was pretty much all of us who had to setup Ant and Maven projects. It demands a certain amount of investment in learning its core concepts, but OMIGOD it's sooooo good once you know what you're doing. I've extracted so much common setup to hierarchies of plugins that I can setup our company's most common usecases for new projects in 3 or so lines of code.
Re:Kotlin: A New Hope in a Java 6 Wasteland by kasey_junk on Monday September 28, 2015 @06:34PM (#10293651)
One of the big problems I had with it (stopped using it about a year ago) was that they changed those core concepts so frequently.

I had code routinely stop working during point releases. I couldn't justify spending that much time on my build code.