News for hackers. Stuff that matters.
Re:Java 20 Is Out! by tw1984 on Tuesday March 21, 2023 @11:32AM (#35247665)
I thought C++20 is already bad enough, then they released Java20

Why people have to live in the past and write C++/Java code?

Re:Java 20 Is Out! by pshirshov on Tuesday March 21, 2023 @11:38AM (#35247755)
Why "bad enough"? Java is getting better and the language feature set isn't really that big, I would rather call it austere. The language slowly adopts Scala features but still lags significantly behind it.
Re:Java 20 Is Out! by voidfunc on Tuesday March 21, 2023 @11:36AM (#35247711)
That people still write this kind of drivel and actually believe it on this site is frustrating.

Every tool has a purpose and Java is a fantastic tool for a lot of use-cases.

Re:Java 20 Is Out! by jwr on Tuesday March 21, 2023 @12:16PM (#35248315)
That, and there are other languages (like Clojure) that are implemented on the JVM. I don't write any Java, but Clojure running on the JVM pays my bills.
Re:Java 20 Is Out! by pansinghkoder on Tuesday March 21, 2023 @11:34AM (#35247689)
You are right; lets start a linux kernel in rust. Send me a PR for that bootloader.
Re:Java 20 Is Out! by philipwhiuk on Tuesday March 21, 2023 @11:40AM (#35247779)
There are bits of the Linux Kernel in Rust.
Re:Java 20 Is Out! by anaganisk on Tuesday March 21, 2023 @11:56AM (#35248024)
Bits =/= let's dump C
Re:Java 20 Is Out! by pansinghkoder on Tuesday March 21, 2023 @12:04PM (#35248157)
Like I have tic-tac in my car but its not driving the engine.
Re:Java 20 Is Out! by somethingAlex on Tuesday March 21, 2023 @11:38AM (#35247753)
C++ for when you need to be very close to the metal.

Java (and C#) are still legitimate options for server side code when you want speed and type safety but managed memory.

Re:Java 20 Is Out! by oaiey on Tuesday March 21, 2023 @01:15PM (#35249284)
Not only legitimate. Also better for many scenarios. Not only when you consider your existing workforce but also hire new people. It is so much easier if you onboard someone into something which is procedural at its heart and everyone can translate their core C/C++/JS/PHP/Python/Perl/... procedural programming into Java and C#. The reason async/await is so accepted there is because of exactly that.

Try throwing someone into a Go project with a C background. Until they learn the way of concurrency there, a lot of time is gone. Or even go one step further and throw a generic procedural coder into something like F# or Haskell. Or take the example of reactive UIs: It took the industry a decade to move from MVP based UI frameworks to reactive based UI platforms and we are far from being done with that move. Angular literal reactive-under-the-hood existence is due to that fact that people love to work with their traditional ways and are more productive in them.

Re:Java 20 Is Out! by karmicthreat on Tuesday March 21, 2023 @11:35AM (#35247696)
Because they are very popular languages with a large experience base?
Re:Java 20 Is Out! by krzyk on Tuesday March 21, 2023 @11:34AM (#35247686)
What is the "cool" language nowadays?
Re:Java 20 Is Out! by WesSouza on Tuesday March 21, 2023 @01:01PM (#35249087)
Rust or Zig
Re:Java 20 Is Out! by substation13 on Tuesday March 21, 2023 @01:08PM (#35249183)
OCaml is having a bit of a moment
Re:Java 20 Is Out! by throwaway742 on Tuesday March 21, 2023 @01:18PM (#35249335)
HolyC
Re:Java 20 Is Out! by yibg on Tuesday March 21, 2023 @11:56AM (#35248014)
Which new hot language of the day are you chasing this week?
Re:Java 20 Is Out! by anaganisk on Tuesday March 21, 2023 @12:00PM (#35248079)
How is time relevant for languages? Unless everyone has stopped speaking/using it, it's relevant and is never old and only is improved to add new grammar. Applies to both spoken and programming languages.