News for hackers. Stuff that matters.
Re:Java 23: The New Features Are Officially Announced by jpgvm on Wednesday April 17, 2024 @07:50AM (#40063271)
Kotlin is growing in usage. Not as fast on backend obviously because Java is still perfectly serviceable but it's still definitely growing.

The area Kotlin excels in isn't as a pure Java replacement to be used by Java devs but rather a JVM language palatable to the Python/Javascript/Ruby/Golang crowd. It's very very hard to convince such people that they should even try Java but Kotlin is much easier to at least get them to try and show them it's really not hard at all.

Re:Java 23: The New Features Are Officially Announced by pjmlp on Wednesday April 17, 2024 @08:02AM (#40063388)
The Python/Javascript/Ruby crowd has JVM implementations to look for.
Re:Java 23: The New Features Are Officially Announced by galdosdi on Wednesday April 17, 2024 @08:50AM (#40063895)
Had.

One of the most egregious destructions of great value in the modern world wasn't the collapse of the Key Bridge or the destruction of the library of Alexandria -- it was when Jython, a wonderful implementation of Python2 on the JVM, died because it was too much effort to upgrade it to support Python3. So much value and capital, destroyed because of the damn 2to3 fiasco. ALL FOR WHAT? For goddamned PRINT STATEMENTS?

Now all the libraries have moved on, so Jython is not so useful -- you can do toystuff but you can't import any serious modern python library anymore, which you could a decade ago! And you got real multithreading with no GIL to worry about it! It was ahead of the real CPython2!

It was more than just a way to integrate and glue together Java and Python code -- it was actually a viable alternative Python runtime. It's a big reason I've never forgiven or started retrusting the python community after the 2to3 fiasco. It just shows it's not a serious language like java that actually cares about backwards compatibility and is able to advance anyway.

Hey, what ever happened to Groovy? It was like Scala/Kotlin but without taking itself seriously at all, much more akin to perl than to C++.

Re:Java 23: The New Features Are Officially Announced by pzo on Wednesday April 17, 2024 @10:25AM (#40065086)
Did Jython even ever supported all non pure python libraries? The biggest moat of cpython is huge ecosystem of native libraries such as numpy, scipy, scikit, pillow, pandas, opencv, pytorch, tensorflow etc. This is the reason why PyPy is not mainstream. Without all those libraries and ecosystem around it python wouldn't be that useful and for the same reason Jython wouldn't be that useful even if supporting python3 and having the fastest JVM.
Re:Java 23: The New Features Are Officially Announced by chuckadams on Wednesday April 17, 2024 @11:12AM (#40065831)
Groovy is still around in projects that haven't yet moved their gradle configs to Kotlin (which includes a declarative syntax basically identical to Groovy builders). Purely dynamic-typed languages are a hard sell these days, especially when they're as pokey and memory-hungry as Groovy.
Re:Java 23: The New Features Are Officially Announced by gbear605 on Wednesday April 17, 2024 @09:06AM (#40064037)
Check out GraalPy! It’s like Jython but it’s on Python 3 and supported by Oracle. My company is still using Jython, but we’re finally tearing out our Jython implementation and replacing it with GraalPy since it’s much more performant and it’s going to stay up to date with Python development.
Re:Java 23: The New Features Are Officially Announced by galdosdi on Wednesday April 17, 2024 @09:43AM (#40064468)
Whaaaa? I will definitely check it out next time I have a use case. Thanks. How compatible is it?
Re:Java 23: The New Features Are Officially Announced by sigsev_251 on Wednesday April 17, 2024 @10:27AM (#40065124)
There is a compatibilty chart: https://www.graalvm.org/python/compatibility/
Re:Java 23: The New Features Are Officially Announced by kaba0 on Wednesday April 17, 2024 @10:41AM (#40065344)
It can even run some C-wrapper python libs, as it can run LLVM code.