Live data from Hacker News

Amazon Corretto JDK

docs.aws.amazon.com

51–60 of 85 posts

Re: Amazon Corretto JDK

#51
post #32

I’m not a java dev, but my company’s core backend uses java. What’s the main difference between this and java from adoptium? Or even from oracle. I thought they’re all from the same codebase. Is it just support? The versioning and naming of java is very confusing for me

Your comment reminded me a similar discussion was had earlier this week[0]. Coincidentally, the current top comment on this post is whichjdk. [0] https://news.ycombinator.com/item?id=28821316

Thanks for this!! gave so much insight, gosh I've been using adoptopenJDK for so long because of the blog post recommendation as well lol

Re: Amazon Corretto JDK

#52
post #12

Could someone provide a TL;DR on the major patches/benefits that Corretto has over Adopt or other community driven JDK implementations? It is unclear from the documentation but I am assume they have some secret sauce for faster boot for their Firecracker VM instances.

Adoptium is not "community driven" (it's made by IBM), and there is only one OpenJDK implementation, the one led and primarily developed by Oracle, with contributions from other companies. What Amazon or IBM do is build the source and distribute the binaries (look at the licence).

See Adoptium.net/members.html for participating groups and vendors. More than just IBM.

Re: Amazon Corretto JDK

#53
post #40

I've peripherally known Corretto is the Amazon distribution of Java (specifically, OpenJDK), but I never really looked up what the difference between, say, the releases from AdoptOpenJDK and Corretto are. I looked it up, it looks like it's generally: 1. LTS support - adoptopenjdk doesn't do LTS 2. Patches that come from Amazon that are upstreamed to OpenJDK but appear in Corretto first since, you know, that's where A…

IIRC we had to move to Corretto when using AWS CodeBuild, because AWS dropped support of AdoptOpenJDK in their CodeBuild container images. So basically we use AWS distro to run tests and build our docker images, and those images use AdoptOpenJDK; which is not ideal, but so far we have been OK.

Basically, you moved to Corretto because Amazon forced you to. That's great :)

I think this is a common reason for moving to a particular distribution, but also sad to see. Amazon used to be impartial and independent infrastructure provider but as they ingest more and more software, your infrastructure and software now starts to depend on Amazons software.

Re: Amazon Corretto JDK

#54
post #33

The best way to understand which JDK to use is to understand superficially what is involved with the source code and the build process between vendors, and their licenses. Source code starts out the exact same, that's why they are all OpenJDK, because they take the source code from the OpenJDK public repository's main branch. From that point on, they can choose to apply source code patches from OpenJDK that have not…

Is the any JDK that you are aware that bundles in the JavaFX?

Is there a specific reason you want it bundled into the JDK? OpenJFX can be pulled in as a regular library.

Re: Amazon Corretto JDK

#55
post #39

I’m not a java dev, but my company’s core backend uses java. What’s the main difference between this and java from adoptium? Or even from oracle. I thought they’re all from the same codebase. Is it just support? The versioning and naming of java is very confusing for me

Java is like C and C++, there are plenty of implementations to chose from. Each has their own set of strong points regarding JIT, AOT, GC capabilities, which one to select is usually based on the use case. Unless doing something special, you are pretty safe using a regular OpenJDK distribution.

Unlike the C/C++ compiler landscape which for industry use cases has a few high profile high quality candidates, and all vendors of these solutions are pretty much guaranteed to employ top level experts to evolve their softwares, the picture with the JDKs is much less clear. Apparently everybody who has some sort of name brand now rolls their own version, and even throughout this thread here there really is no sharp level of distinguishment based on a clear point of comparison between even the most popular contenders.

Looks like muddy waters to me. A shame really, they totally ran the JDK release management into the ground.

Re: Amazon Corretto JDK

#56
post #48
post #12

Earlier quoted context omitted.

Adoptium is not "community driven" (it's made by IBM), and there is only one OpenJDK implementation, the one led and primarily developed by Oracle, with contributions from other companies. What Amazon or IBM do is build the source and distribute the binaries (look at the licence).

My understanding is that ties between the Eclipse Foundation and IBM are loose enough by now to not call this project an IBM thing. Eclipse did originate at IBM, but that was close to 20 years ago.

That may be so, but >90% of the work on this particular Eclipse project is done by IBM. Just as many companies contribute to OpenJDK but it is primarily an Oracle project, and Oracle does most of the work, Adoptium is an IBM project. That, in itself is not good or bad (although it is somewhat bad because, unlike other JDK distributors, IBM is barely involved with OpenJDK and the IBM team that makes the Adoptium builds is not particularly familiar with OpenJDK), but it is certainly not a "community led" distribution -- it is, de facto, an IBM-led one. It did not start out this way, but it has been this way for several years now (they did the same with https://en.wikipedia.org/wiki/Apache_Harmony).

Re: Amazon Corretto JDK

#57
post #35

Earlier quoted context omitted.

Yeah the site is useless. I didn't comment on the last post but to summarize from a JVM/infra guy: Use a JDK that contains the features you want and is from a vendor that gets access to embargoed Java security updates. This matters more for pre-Java 11 as certain vendors backport things like Java Mission Control/Flight Recorder and other performance and debugging features to Java 8. Post Java 11 the feature sets of t…

> as the Java 8 -> 9 migration was very hairy due to modules Bytecode changes too. Java 9 presents a hard limit for upgrading a lot of older libraries that are using bytecode generation / manipulation.

Not modules but removal of JEE classes from Jdk.

Re: Amazon Corretto JDK

#58
post #12

Earlier quoted context omitted.

Adoptium is not "community driven" (it's made by IBM), and there is only one OpenJDK implementation, the one led and primarily developed by Oracle, with contributions from other companies. What Amazon or IBM do is build the source and distribute the binaries (look at the licence).

See Adoptium.net/members.html for participating groups and vendors. More than just IBM.

Yeah, they did the same thing with Apache Harmony. Ostensibly, "more than just IBM;" de facto, pretty much IBM. Some of the very same people, too.
Post reply on HN