News for hackers. Stuff that matters.
Re:From zero to 10M lines of Kotlin by dima_vm on Tuesday October 25, 2022 @09:19AM (#33330093)
As for me the greatest appeal of Kotlin is that it doesn't need its own tooling that bad, it feels like just syntactic sugar over Java.

Both Scala and Kotlin can reuse Java tools, but with Scala it's awkward (and some tricky generics simply don't compile with Scala).

E.g. if I need to parse something, I search for "how to parse that in Java", not "... in Kotlin".

Re:From zero to 10M lines of Kotlin by hocuspocus on Tuesday October 25, 2022 @12:10PM (#33332535)
> and some tricky generics simply don't compile with Scala

What? Do you have any example that wasn't fixed years ago?

Any non-trivial Scala app will consume dozens if not hundreds of Java libraries, without any issue.

Re:From zero to 10M lines of Kotlin by dima_vm on Wednesday October 26, 2022 @07:03PM (#33350790)
I filed an issue for Scala in 2009, that was answered like "sorry, this particular Java code cannot be used in Scala". In 2012 it still wasn't fixed.

I cannot find the issue now, but I remember I was trying to use gae-mapreduce-java library (built on top of Hadoop interfaces). It couldn't compile with Scala.

Re:From zero to 10M lines of Kotlin by hocuspocus on Thursday October 27, 2022 @04:33AM (#33354827)
That's eons ago in Scala world. If you can, give it another try.

I would assume such a bug was fixed in Scala 2.x given the prevalence of the language in the hadoop ecosystem and big data frameworks.

Moreover Scala 3, was the opportunity to fix many previously-unfixable corner cases.