News for hackers. Stuff that matters.
Re:Java Is Underhyped by christkv on Friday April 16, 2021 @04:25AM (#26831134)
Kotlin solves most of the problems for us while leveraging the benefits of the JVM.
Re:Java Is Underhyped by pjmlp on Friday April 16, 2021 @05:17AM (#26831499)
Long term, Kotlin will only stay relevant on Android.

They cannot fully embrace the JVM while targeting ART, JS and native at the same time.

Re:Java Is Underhyped by RhodesianHunter on Friday April 16, 2021 @08:51AM (#26833241)
With respect, you're wrong. I say this because we're now seeing widespread adoption of serverside Kotlin at places like Google and Amazon. With the support of Google and Jetbrains they can target whatever they want.
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.
Re:Java Is Underhyped by cutler on Friday April 16, 2021 @09:00PM (#26840724)
Definitely. There has been a consistent increase in non-Android Kotlin jobs in the last 12 months according to Indeed.com.
Re:Java Is Underhyped by pjmlp on Saturday April 17, 2021 @06:39AM (#26843197)
Back in 2010…

There has been a consistent increase in Scala jobs in the last 12 months according to Indeed.com

Re:Java Is Underhyped by sarsway on Friday April 16, 2021 @04:48AM (#26831302)
What's the state of server-side Kotlin now, is it usable and what kind of JVM are cloud hosts running it on? Kotlin seems like one of the best languages out there.
Re:Java Is Underhyped by christkv on Friday April 16, 2021 @05:03AM (#26831400)
We use it in production with spring boot and deploy a single jar file on azure. Works pretty well
Re:Java Is Underhyped by jcadam on Friday April 16, 2021 @10:41AM (#26834457)
We're using Kotlin with Spring at the moment and everyone on the team prefers it over Java. I suggested Kotlin when they laughed at my suggestion of using Clojure. Ah well.
Re:Java Is Underhyped by LennyWhiteJr on Friday April 16, 2021 @10:12AM (#26834107)
Kotlin is widely used internally at Amazon. In both AWS and retail.
Re:Java Is Underhyped by RhodesianHunter on Friday April 16, 2021 @08:52AM (#26833251)
Not only usable, but becoming very widely used. It's no different from Java for deployment.
Re:Java Is Underhyped by cutler on Friday April 16, 2021 @08:57PM (#26840709)
Yes, I think today the languages worth focusing on are Kotlin, Swift and C#. They are similar in many ways and come with built-in nullability. They are also platform languages offering excellent tooling and a productive development environment.
Re:Java Is Underhyped by dagw on Friday April 16, 2021 @06:11AM (#26831927)
Are there many companies seriously using Kotlin for large projects outside of the Android space?
Re:Java Is Underhyped by jicea on Friday April 16, 2021 @07:41AM (#26832655)
Yes, our stack is Spring Boot + Kotlin on the back side, TypeScript + Vuejs on the front. We’ve millions of unique visitors each month, and we’re pretty satisfied with the stack.
Re:Java Is Underhyped by hagy on Friday April 16, 2021 @09:34AM (#26833664)
Cash App uses Kotlin Multiplatform, including server-side code, https://kotlinlang.org/lp/mobile/case-studies/cash-app
Re:Java Is Underhyped by RhodesianHunter on Friday April 16, 2021 @08:52AM (#26833257)
Google, Amazon, hundreds of F 500's
Re:Java Is Underhyped by LennyWhiteJr on Friday April 16, 2021 @10:16AM (#26834158)
Absolutely. Kotlin is *widely* used for backend code at Amazon.
Re:Java Is Underhyped by throwaway10110 on Friday April 16, 2021 @06:32AM (#26832092)
Yes
Re:Java Is Underhyped by BiteCode_dev on Friday April 16, 2021 @04:27AM (#26831147)
JVM != Java.

We are talking about Java as a language, not the JVM as a platform.

You can also run Python on the JVM.

Although, some Java compromises are definitely linked to the JVM.

Re:Java Is Underhyped by KptMarchewa on Friday April 16, 2021 @09:45AM (#26833773)
>You can also run Python on the JVM.

Jython is stuck on 2.7 and unmaintained.

Re:Java Is Underhyped by vips7L on Friday April 16, 2021 @12:28PM (#26835933)
Graal's implementation of python is maintained and up to date with python 3.