News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by lukev on Saturday September 16, 2023 @06:22PM (#37539371)
Having worked extensively in Java, Node, and Python, I’ll take the JVM ecosystem absolutely any day of the week.

Me and my catheter will be over here delivering actual software while you figure out how React 32 broke your transcompiler.

Re:Java 21 makes me like Java again by gabereiser on Saturday September 16, 2023 @06:39PM (#37539506)
Except I’m over here serving 10x the traffic with 10x less cloud spend on CPU and Memory for hosts.
Re:Java 21 makes me like Java again by belter on Saturday September 16, 2023 @06:42PM (#37539524)
In what language would that marvel be? I give you the less memory....
Re:Java 21 makes me like Java again by yankput on Sunday September 17, 2023 @05:14PM (#37549389)
Go has goroutines which have better cpu and memory than threads which are commonly used in java.

Java is now catching up with go and adding virtual threads which in september 2023 will have the same ease of use as go had in … 2007?

But as I wrote above, it migh really get me to check java again.

Re:Java 21 makes me like Java again by belter on Monday September 18, 2023 @10:32AM (#37556639)
Well is it correct that until 1.14 (so 2020) Go used cooperative scheduling? Because Java Threads, (before the new virtual threads) are preempted by the OS...Go was launched in 2009? Who is doing the catching up?
Re:Java 21 makes me like Java again by c048 on Saturday September 16, 2023 @06:45PM (#37539551)
Maybe you should upgrade from Java 1.4...
Re:Java 21 makes me like Java again by romanovcode on Saturday September 16, 2023 @11:45PM (#37541324)
> delivering actual software while you figure out how React 32 broke your transcompiler.

Say that to enterprise software systems still running on Java 7 or 8 without any clear path to upgrade because their whole systems will break.

Re:Java 21 makes me like Java again by kaba0 on Sunday September 17, 2023 @03:10AM (#37542318)
It’s almost like there is even a CS law for this exact scenario.. but Java 8 will be around and will still work 10 years from now, plus it is not an insurmountable task to bump it up to the latest version at all. Tell me literally any platform that has a better backwards compatibility story, because honest to God there is simply absolutely none.
Re:Java 21 makes me like Java again by romanovcode on Sunday September 17, 2023 @04:49AM (#37542913)
Java 8 will be out of support in 7 years. It might seem like a lot but for enterprise systems it's nothing.
Re:Java 21 makes me like Java again by kaba0 on Sunday September 17, 2023 @05:44AM (#37543218)
Which gives you a lifetime support of 16 years for a single version, with an absolutely sane and doable upgrade path.
Re:Java 21 makes me like Java again by Noneofya on Sunday September 17, 2023 @03:51PM (#37548701)
C++. And it’s hated for the same reasons.
Re:Java 21 makes me like Java again by yankput on Sunday September 17, 2023 @02:41PM (#37548094)
No idea why you are comparing Java, which is BE, to React, which is FE.

I think I will check Java once they finally make coroutines… I mean “virtual threads” a stable feature. That actually looks exciting… being able to parallelize almost like in Go 5 years ago.

Re:Java 21 makes me like Java again by the-smug-one on Sunday September 17, 2023 @03:58PM (#37548766)
>finally make coroutines… I mean “virtual threads” a stable feature

Don't you mean fibers? Anyway, I'm pretty sure it's targeted to JDK21.

Re:Java 21 makes me like Java again by yankput on Sunday September 17, 2023 @05:10PM (#37549351)
Fibers are now called virtual threads