Live data from Hacker News

Which version of JDK should I use?

whichjdk.com

61–70 of 258 posts

Re: Which version of JDK should I use?

#61
post #43

Earlier quoted context omitted.

any references/benchmarks for some realworld apps/services? and also what do you mean by oracle suing if you implement value types?

> any references/benchmarks for some realworld apps/services? .NET 6 is vastly more performant than .NET 5, which was already faster than openjdk and openj9 ( https://devblogs.microsoft.com/dotnet/performance-improvemen... ) > and also what do you mean by oracle suing if you implement value types? this one shouldn't need an explanation, oracle very commonly pursues frivolous lawsuits as a way of bullying money out of…

where does it say .net 5 was faster than openjdk? hotspot is a very sophisticated jit compiler that has probably 100 manyears put into it just in optimizations. given that .net added monomorphic/bimorphic call site devirtualization recently which is considered quite basic in the hotspot, it would be good to see real world usage comparison.

Re: Which version of JDK should I use?

#63

Earlier quoted context omitted.

I’m confused why you’re suddenly talking about .NET.

There's no real reason to use java for new development in 2021.

Here is one real reason to prefer it over .NET Core: https://github.com/dotnet/sdk/issues/6145

Re: Which version of JDK should I use?

#64
post #56

Earlier quoted context omitted.

It protects visitors on compromised networks--and that includes things like ad injectors at coffee shops that might push nasty code to them, not just people dealing with oppressive regimes and so on. It also provides some benefit around "well, that page is HTTPS, so it's more interesting"--if every page is HTTPS, the signaling value of switching to HTTPS is destroyed, and that is a good thing. HTTPS everywhere is a p…

Ad injectors on public wifi is a marginal 'risk' considering this page is targeted to professionals and informed hobbyists anyway, who will predominantly just be browsing from home, work or with a VPN that tunnels traffic through either a server they control or a service provider's server whom they trust anyway.

All risks are marginal when you handwave hard enough.

TLS is basically-free in 2021. It's fine and it is good to do.

Re: Which version of JDK should I use?

#65
I’ve tried more than once to learn Java I find it very confusing. This website resolves one of the issues. The other issue I have is that most Java tutorials use IntelliJ, or some other IDE, which makes it difficult to figure out what a non IDE workflow actually looks like, some managing dependencies is confusing.

I wonder if c# and mono is better in this respect

Re: Which version of JDK should I use?

#67
post #59

Here's my recommendation (I work on OpenJDK at Oracle): If you're using the current JDK version (recommended for regularly maintained applications), it doesn't matter which distribution you choose, as they're all pretty much identical. If you're using an old version (LTS, intended for legacy applications, which might benefit from it), pick a vendor you trust for OpenJDK support, as the builds are not the same, and ne…

Interesting about a Adoptium, since that’s the recommended JVM in the article.

Re: Which version of JDK should I use?

#68
post #44

The general guidance is always use the last LTS release unless there is a specific feature in the non LTS releases that you can’t wait for. So any new development should target 17 at this point. Unless you want serious long term pain then you shouldn’t be more than one LTS release behind. So if you are not running on JDK 11 or later you should be strongly thinking about upgrading.

The safest, cheapest choice for applications that are heavily maintained is to use the most recent version. LTS is designed for legacy applications that are no longer heavily developed, and might benefit from security and bug fixes only (note that this model is new; in the past, back when there were major versions, minor updates included both patches and big features).

'heavily developed' is the operative consideration as this means upgrading (not merely updating) your Java installations every 6 months.

Re: Which version of JDK should I use?

#69

Earlier quoted context omitted.

I’m confused why you’re suddenly talking about .NET.

There's no real reason to use java for new development in 2021.

Then use Kotlin, and take advantage of the jvm and the ecosystem, and avoid basically all the stuff you listed about the java language.

"no real reason" is a stupid take. I could list multiple, but a big one is that there are hundred java developers for each dotnet developer in my city. The java env is well tested and well understood, if anything one should argue why not use it instead of a hip and trendy alternative.

Re: Which version of JDK should I use?

#70
post #59

Here's my recommendation (I work on OpenJDK at Oracle): If you're using the current JDK version (recommended for regularly maintained applications), it doesn't matter which distribution you choose, as they're all pretty much identical. If you're using an old version (LTS, intended for legacy applications, which might benefit from it), pick a vendor you trust for OpenJDK support, as the builds are not the same, and ne…

> Recommendation: Do not use Oracle Java SE Development Kit (JDK), unless you know what you are doing.
Post reply on HN