News for hackers. Stuff that matters.
Re:Java Is Underhyped by pjmlp on Friday April 16, 2021 @10:05AM (#26834034)
With respect, welcome to the Kotlin version of #ifdef, where language features depend on the underlying runtime.

That 3D graphics library using SIMD and value types from JVM on ART or JS?

Good luck achieving the same perfomance and memory semantics.

Kotlin/Native has already been rebooted as its memory model was incompatbile with JVM libraries.

Re:Java Is Underhyped by dropofwill on Friday April 16, 2021 @04:48PM (#26838910)
It’s worked out ok for scala (though i don’t think anyone cares about it for android). Obviously a lot of code that only works on the JVM, because a lot of people just don’t care about native/js. But most core libraries will have ‘shared’ pure scala code and then have the platform specific implementations in separate folders. This is all fairly standardized with sbt plugins to do all the heavy lifting.

From the app side you just don’t use classes that you can’t use?

It will be interesting to see how things like Valhalla and Loom will pan out.

Re:Java Is Underhyped by pjmlp on Saturday April 17, 2021 @01:18AM (#26841762)
Did it?

The main company behind Scala changed its name and now also offers Java consulting.

Unless the project requires Spark, there is little reason to even care Scala exists.

Then there is the version 3.0 where they started having brain damaged ideas like changing the whole syntax.

Scala today is Kotlin in 10 years.

One benefit of being old in this industry is having survived multiple fashion waves of guest languages on each platform, then watching how those guest languages fade while the platform languages adopt some of their features.

Or even how whole platforms become irrelevant making it a complete moot point regarding whose languages are on the platform.

Re:Java Is Underhyped by johnnycerberus on Friday April 16, 2021 @12:42PM (#26836130)
How is Kotlin going to support the SIMD interface? It really sounds like #ifdef for every platform, unfortunately.