News for hackers. Stuff that matters.
Re:OpenJDK is now on GitHub by Alupis on Tuesday September 08, 2020 @01:00PM (#24410309)
Most of which take the OpenJDK source, sprinkle in some "secret sauce" and then compile the entire thing for convenience of users.

It's not a trivial undertaking to compile OpenJDK from sources.

There are not very many JDK implementations that don't have OpenJDK sources at their core.

OpenJDK is also treated as the reference implementation, and is where JEP's and things are worked out. Effectively, OpenJDK is "upstream" Java.

Re:OpenJDK is now on GitHub by Hello71 on Tuesday September 08, 2020 @01:03PM (#24410348)
> It's not a trivial undertaking to compile OpenJDK from sources.

uh? assuming you already have a working C toolchain and JDK installed, you just hg^Wgit clone; bash configure; make.

edit: you may have more trouble compiling it on windows, but compiling anything on windows is a pain unless it uses the entire proprietary non-portable microsoft-specific project management tools.

Re:OpenJDK is now on GitHub by jgneff on Tuesday September 08, 2020 @01:31PM (#24410633)
I agree. Among all the open-source projects I've built, the OpenJDK is one of the easiest and most straight-forward I've encountered — even when cross-compiling for 32-bit ARM. They did a great job rewriting the build system a few years back.
Re:OpenJDK is now on GitHub by Slartie on Tuesday September 08, 2020 @02:23PM (#24411248)
Even on Windows it just takes a few hours of setting up a build VM machine from scratch, installing a few tools, to first full build. It is more inconvenient than Linux (as is all Windows building, indeed) but far from being hard to do.

I did that regularly some years ago for the company I work for, because we needed OpenJDK Windows binaries, and there wasn't such a convenient thing as AdoptOpenJDK. So in order to not get caught in stupid licensing debacles with Oracle it came down to just compile the Windows binaries by yourself.

Re:OpenJDK is now on GitHub by swiley on Tuesday September 08, 2020 @01:28PM (#24410617)
RE: compiling on windows

Apple is honestly giving Microsoft a run for their money here. Many FOSS apps seem to have given up on OSX and few ever tried with iOS.

Re:OpenJDK is now on GitHub by TheDong on Tuesday September 08, 2020 @04:32PM (#24412982)
IMO it's harder to compile for macOS than for windows.

I don't have a macbook. I can legally run a trial copy of windows in virtualbox to test out cross-compiling stuff, or spin up a windows EC2 instance for a few hours, or even use circleci or other CI system's windows workers to build stuff.

For macOS, I can't legally run a VM on my hardware, ec2 doesn't support it so I can't spin up a VM, and most CI platforms don't support it (probably because many of them just resell fleets of ec2 instances).

Many FOSS developers are just hacking away on 3 year old laptops or desktops for fun, and can't afford a $2k investment just to support one more operating system for their little project.

Re:OpenJDK is now on GitHub by kodablah on Tuesday September 08, 2020 @01:48PM (#24410801)
> There are not very many JDK implementations that don't have OpenJDK sources at their core.

Well yeah, especially not open source, as you can't get a TCK for non-OpenJDK open source implementations of the standard library. Oracle forbids it.

Re:OpenJDK is now on GitHub by gravitas on Tuesday September 08, 2020 @02:36PM (#24411414)
Fun trivia: it all started with the Blackdown JDK. I vaguely recall it taking up until 1.2 to stabilize but that's a fuzzy memory from a younger me. https://en.m.wikipedia.org/wiki/Blackdown_Java
Re:OpenJDK is now on GitHub by mhh__ on Tuesday September 08, 2020 @01:52PM (#24410857)
> Most of which take the OpenJDK source, sprinkle in some "secret sauce" and then compile the entire thing for convenience of users.

As in GPL violations? (I've never had the pleasure(?) to use java properly, so I'm not familiar)

Re:OpenJDK is now on GitHub by Rebelgecko on Tuesday September 08, 2020 @02:21PM (#24411209)
Dunno what previous poster is referring to, but none that I know of.

For example Amazon Corretto is on GitHub, and Amazon gives a pretty good breakdown of the patches that make it different from the equivalent OpenJDK version (funnily enough, most of the changes are actually just backporting bug fixes from OpenJDK11 into Amazon's equivalent of OpenJDK8)

There's the Oracle JDK which has some onerous licensing, but IIRC the actual JDK is the same, they just include some extra binaries in the distribution

Re:OpenJDK is now on GitHub by singlow on Tuesday September 08, 2020 @02:34PM (#24411390)
Not literally secret. They are just the changes that are particular to an environment or specific use case. They are just not things that are likely to get upstreamed so they are maintained as a fork.
Re:OpenJDK is now on GitHub by fnord123 on Tuesday September 08, 2020 @01:19PM (#24410504)
> Most of which take the OpenJDK source, sprinkle in some "secret sauce" and then compile the entire thing for convenience of users.

Got some links to these GPL licensed OpenJDK forks?

Re:OpenJDK is now on GitHub by fnord123 on Tuesday September 08, 2020 @03:11PM (#24411852)
Great list! Thanks!
Re:OpenJDK is now on GitHub by vips7L on Tuesday September 08, 2020 @02:59PM (#24411699)
Sap and corretto are mostly friendly forks that just backport bug fixes from newer versions of OpenJDK for their customers.

OpenJ9 uses a whole different JVM even though they use the OpenJDK standard library.

Re:OpenJDK is now on GitHub by fnord123 on Tuesday September 08, 2020 @03:11PM (#24411849)
Awesome! Thanks!