Live data from Hacker News

Java 16

jdk.java.net

91–100 of 327 posts

Re: Java 16

#91
post #48
post #27

Earlier quoted context omitted.

We see similar developments with C# borrowing features from F#, with records in v9, pattern matching, etc. While it's good for C#/Java, it does make it harder to push for adoption for a language such as Scala and F#. Why bother investing in the languages with a much smaller market share when the big boys adopt good bits and pieces from them constantly?

Really sorry to ask the dumb question here, but what is V9? A cursory Google search didn't show me anything about e.g. a major update to the V8 JavaScript engine? UPDATE: Ah, C# v9.0 thank you all.

"We see similar developments with C# borrowing features from F#, with records in v9, pattern matching, etc."

Parsing that sentence the subject is C# and F# is referenced, but the subject of the sentence didn't change, it remained C# thus logically v9 applies to it.

Re: Java 16

#92

Earlier quoted context omitted.

Java 8 → Java 11 → Java 17. Those are the LTS releases. If you want to follow a release cadence similar to Java 5 → Java 6 → Java 7 → Java 8, that's what you'll track. The intermediate releases can be used to test against, but adopting them too soon often means tackling lots of issues in your dependencies. And updating your application servers to a new major Java version every six months is not something you can do e…

If you're using "application servers" and not containers then definitely do not touch intermediate releases.

Why?

I would say, try it out and see.

Re: Java 16

#93
post #75

Earlier quoted context omitted.

Another thing to note that cutting edge languages do not always deliver great features , they also deliver with great frequency half baked features to be discarded or deprecated in few years. Also since most effort spent on language , tooling remain primitive and slow for long time. So I do not see them a sure win for projects I work on.

Great point about half-baked features. The investment boils down to risk-reward. Can we say that the features that are introduced into Java at this point are features that have stood the test of time in other languages?

I have already used `records` in some project I work on. To me it does not look too clever / funky. It still looks like very obvious Java code but little more concise.

Re: Java 16

#94
Java devs are like: Why bother to develop anything new if we can just copycat every single feature from C# without even changing their spec a bit...

C# records released last year:

   record Book(string Title, int Id);
New java records:

   record Book(String title, int id)

Re: Java 16

#95

Earlier quoted context omitted.

yeah I'm confused too, so its because Java 9 officially came out September 2017 and they've been releasing very fast but have completely ditched semantic versioning chart here https://en.wikipedia.org/wiki/Java_version_history

Basically there's six month feature releases but every five or six releases there's going to be an LTS release. Most companies use the LTS releases. Next big LTS release is later this year.

If you mention LTS you have to mention also vendor that provides it.

Without it the only LTS is current java version: 16 right now and 17 in 6 months.

Re: Java 16

#96
post #94

Java devs are like: Why bother to develop anything new if we can just copycat every single feature from C# without even changing their spec a bit... C# records released last year: record Book(string Title, int Id); New java records: record Book(String title, int id)

Sounds like how C# got started :)

Re: Java 16

#98

Looks like no type aliases still? Does anyone know if type aliases are anywhere on the road map for Java? Is there some philosophical objection to them?

What are aliases?

Re: Java 16

#99
post #94

Java devs are like: Why bother to develop anything new if we can just copycat every single feature from C# without even changing their spec a bit... C# records released last year: record Book(string Title, int Id); New java records: record Book(String title, int id)

I was not aware that Microsoft invented algebraic data type.

Re: Java 16

#100

Curious how many folks here experimented with the now depreciated Ahead-of-Time Compilation feature?

Only briefly tested it. I thought RH's Quarkus project made use of it, didn't it? What's the post-16 way of Java AOT compilation?
Post reply on HN