News for hackers. Stuff that matters.
Re:Kotlin 1.4 by eklavya on Tuesday August 18, 2020 @09:57AM (#24198579)
I think that's harsh. Why shouldn't they try building a platform if they want? Who should they ask first?

Disclaimer: I have never used Kotlin. I use Scala.

Re:Kotlin 1.4 by pjmlp on Tuesday August 18, 2020 @10:11AM (#24198743)
All the best for them, as long as the community takes the attitude to appreciate JVM and Java for giving birth to Kotlin, instead of bashing Java as if Kotlin could stand on its own.
Re:Kotlin 1.4 by avasthe on Tuesday August 18, 2020 @11:34AM (#24199923)
You are biased because you don't like that the age of companies selling expensive development environments is over. And you jump in to defend Oracle every discussion.

I respect your knowledge and breadth of experience, but your biases are apparent.

Re:Kotlin 1.4 by pjmlp on Tuesday August 18, 2020 @11:42AM (#24200035)
You mean like IntelliJ, Clion?

Yes I don't hide what I think out of political correctness, it is up to the receivers to deal with it.

Re:Kotlin 1.4 by valenterry on Tuesday August 18, 2020 @11:00AM (#24199443)
But Kotlin is just a much better language. Not sure if you can call that "bashing".
Re:Kotlin 1.4 by pjmlp on Tuesday August 18, 2020 @11:44AM (#24200050)
Which is worthless without the wealth of the Java ecosystem, but apparently Java is a very bad language.
Re:Kotlin 1.4 by elbear on Tuesday August 18, 2020 @01:01PM (#24201162)
Can't the Java ecosystem be valuable and Java the language be bad at the same time?
Re:Kotlin 1.4 by royjacobs on Tuesday August 18, 2020 @02:56PM (#24202730)
It could, but Java the language definitely isn't bad. Sure, it's verbose, but it's pretty simple to grok overall.

I agree with pjmlp (and I don't even work for Oracle!). I think that once Java has caught up with pattern matching syntax, data classes, fully integrated Loom and Valhalla etc there really isn't a need for Kotlin on the server-side anymore.

For Native or frontend stuff it's definitely always going to have to play catch-up and try to shoehorn wildly different semantics into the same language somehow.

So I guess it'll end up as a niche language on Android, ultimately. Not necessarily a bad place to be, though!

Re:Kotlin 1.4 by ragnese on Tuesday August 18, 2020 @09:59PM (#24206442)
It'll never get rid of everything-is-nullable, though. That's honestly my biggest issue with Java. I could definitely complain about a bunch of stuff with Java, but the nullability situation is the worst.

Also, everyone in this thread is talking about Loom and Valhalla. Are those actually going to land at some point? I was starting to assume they were vaporware.

Re:Kotlin 1.4 by valenterry on Tuesday August 18, 2020 @08:34PM (#24205955)
There is a reason why many people (including me) perceive Java as relatively bad. The language paid a great deal of resources to keep backwards compatibility, which is definitely a thing. They couldn't even just remove the unsafe package even though it was specifically announced to not be compatible with future versions, because of big vendors.

And this has a price. Bad language features stay, they make it difficult to introduce new stuff. Also, Java is very conservative in picking up new things. Saying "once Java has caught up" ignores that Kotlin, at that point in time, will be even further ahead of Java most likely.

And both of them will never reach feature parity with Scala. ;)

Re:Kotlin 1.4 by kjeetgill on Wednesday August 19, 2020 @05:24AM (#24208623)
I can't address your specific experiences with Java, Kotlin, or Scala but even just lambdas in just Java took a ton of wind out from beneath their wings.

It just hasn't shown to be a race to feature parity in practice. Enough of the Kotlin and Scala user bases just really do want a better Java, often in just one or two ways.

Personally, and more controversially, I don't think Java getting pattern matching in switches or sealed classes is going to move the needle a ton. (Sorry, Brian!) It's going to be Loom and Records that really change things.

Re:Kotlin 1.4 by pron on Wednesday August 19, 2020 @02:22PM (#24214001)
> Saying "once Java has caught up" ignores that Kotlin, at that point in time, will be even further ahead of Java most likely.

This assumes that there is much "ahead" to get and that people want more features (well, some do, but the vast majority don't seem to). If the "catching up" terminology applies at all, it certainly doesn't mean feature parity with every other language. That's like a compulsive hoarder seeing a neighbour buying a lawn-chair and saying, "nice to see you finally catching up!" Once you've "caught up" with the expectations of the majority of programmers, there's not much more catching up to do. Neither Scala nor Kotlin have broken past 5% share of the Java platform, even when Java was behind mainstream expectations.

So sure, there will always be some small percentage who like more features than the mainstream fashion, but it's been clearly shown that you can't appeal to that minority and to the mainstream majority at once. Java (the language) tries to appeal to the latter, not the former.

Re:Kotlin 1.4 by valenterry on Wednesday August 19, 2020 @11:21PM (#24219545)
> This assumes that there is much "ahead" to get and that people want more features (well, some do, but the vast majority don't seem to)

You have a point there - maybe the "catching up" is not relevant to the majority of the developers. I always find that surprising but I think you are right.

Re:Kotlin 1.4 by royjacobs on Wednesday August 19, 2020 @03:38AM (#24208088)
Fair, but regarding the catch-up: The main difference is that Java can actively improve things both on the language side and on the JVM side. Kotlin can only improve on the language side.
Re:Kotlin 1.4 by ragnese on Tuesday August 18, 2020 @10:00PM (#24206446)
I'm excited for Scala 3! Scala needs a good cleanup.
Re:Kotlin 1.4 by valenterry on Tuesday August 18, 2020 @11:28PM (#24206868)
Totally agree with that! Scala is already much more organized and consistent than both Java and Kotlin (no matter what some people think) but Scala 3 will make that even better - well except for the pyhton-like syntax part, haha.