News for hackers. Stuff that matters.
Re:OpenJDK Migrates to GitHub by burtonator on Sunday July 26, 2020 @12:47AM (#23954513)
YEARS ago at a conference I got really mad at Gosling and told him that Java was going to be Open Source one way or another and that they might as well Open Source it now and maybe SUN wouldn't implode.

Well... I was right.

Re:OpenJDK Migrates to GitHub by bluejekyll on Sunday July 26, 2020 @01:03AM (#23954568)
How would this have prevented Sun from “imploding”?

Wasn’t Sun’s main issue that they were selling extremely expensive hardware and a proprietary OS that were completely overtaken by x86 and Linux?

I remember getting to play with the very expensive hardware they’d handout to startups in the late 90’s and early 00’s. It was good hardware, but it wasn’t so much better than the slightly more buggy and much less costly Linux systems at the time.

Re:OpenJDK Migrates to GitHub by Twirrim on Sunday July 26, 2020 @01:36AM (#23954699)
According to Larry Ellison, one of the biggest problems that Oracle discovered when they acquired Sun was that sales compensation was based solely on the value of the sale, with no requirement for the deal to make a profit. Their sales team had been merrily selling them to bankruptcy. [1]

Geniuses with tech, but maybe not so good on the business side?

https://www.barrons.com/articles/BL-TB-24039

Re:OpenJDK Migrates to GitHub by slgeorge on Monday July 27, 2020 @06:27AM (#23963759)
I'm sorry but first the majority of software companies focus their sales compensation on the contract value (TCV) rather than the profitability. It's not generally the sales teams job to evaluate profitability, that the product/commercial teams job by setting out the lines of discount. The reason is that for most tech companies you want to maximise your market reach.

More importantly, I wouldn't trust a word that Larry Ellison says - particularly when the primary purpose of the article was to boost the Oracle share price by explaining that Sun would be additive to that quarters profits. I'm not saying that Scott McNeally or Jonathan Schwartz were great execs - I have no idea - but I think you have to look at the goal of the article.

Re:OpenJDK Migrates to GitHub by tehlike on Sunday July 26, 2020 @02:40AM (#23954980)
Reminds of the saying: when a measure becomes a target, it ceases to be a good measure.

Also a good read: https://www.atlasobscura.com/articles/hanoi-rat-massacre-190...

Re:OpenJDK Migrates to GitHub by hassancf on Sunday July 26, 2020 @10:16AM (#23957175)
Interesting. “But then there started to be curious sightings, all around town: Rats, alive and healthy, running around without their tails.

It turned out the hunters would rather amputate a live animal’s tail than take a healthy rat, capable of breeding and creating so many more rats—with those valuable tails—out of commission. There were also reports that some Vietnamese were smuggling foreign rats into the city. And then the final straw: Health inspectors discovered, in the countryside on the outskirts of Hanoi, pop-up farming operations dedicated to breeding rats.”

Re:OpenJDK Migrates to GitHub by smart_jackal on Sunday July 26, 2020 @02:10AM (#23954828)
Sun's main issue was that they failed to capitalize on all the wonderful tech they had including Java, VirtualBox and Openoffice/StarOffice. Even after open sourcing all of them, they could have kept the company running by marketing to enterprises and offering support.

If they had learned these skills from companies like RH/SUSE/IBM, then Java would have been in much better hands today.

Re:OpenJDK Migrates to GitHub by pjmlp on Sunday July 26, 2020 @02:30AM (#23954935)
First of all, Oracle and IBM have been part of Java world since the early days with their own Java implementations, and Oracle even jumped on Sun's boat regarding those Java based thin client workstations that were all the rage around 1998.

Secondly, with Sun you would never had gotten AOT, because they saw it as something that 3rd party vendors like Oracle and IBM should care about, they were fully into "JIT or bust", and MaximeVM would have followed the same path as SPOTs, instead of turning into GraalVM.

Re:OpenJDK Migrates to GitHub by bondolo on Sunday July 26, 2020 @12:04PM (#23958029)
Why would you argue that point with him? He always wanted Java (and Solaris) to be open source, it was the Sun execs who took more than a decade to finally agree.
Re:OpenJDK Migrates to GitHub by suyash on Sunday July 26, 2020 @02:10AM (#23954830)
Open JDK has been there since 2007, large part of Java tools and libraries are under open source license, JCP has been advocating open development since 1998 so I call this BS.
Re:OpenJDK Migrates to GitHub by pjmlp on Sunday July 26, 2020 @01:53AM (#23954756)
Sun imploded because Google screwed them with the Android Java games, and then let the company sink, hoping no one would buy them.

So if you have any problem with Oracle, thank Google in first place.

Re:OpenJDK Migrates to GitHub by geofft on Sunday July 26, 2020 @02:05AM (#23954806)
Didn't Sun open-source Java before Android launched (but after Android had already done a significant amount of implementation internally)? Looks like they open-sourced it in fall 2006. Android was founded in fall 2003 and acquired by Google in summer 2005, but I can't find any public references to it being Java-based from before 2007.

Android is now using OpenJDK and (I assume) not paying anything to Oracle for it. I think they could theoretically have rebased on top of OpenJDK in early 2007 if they expected it to be a serious legal problem, and Sun would have been no better off.

Re:OpenJDK Migrates to GitHub by pjmlp on Sunday July 26, 2020 @02:40AM (#23954981)
It was dual licensed, and JavaSE license did not apply to embedded devices deployment.

Android is not using OpenJDK as such, that is Google's marketing.

What Google is doing is cherry picking code from OpenJDK and adapting it to Android.

What they care about is keeping Kotlin's FFI to Java libraries relevant.

In Android 11 there are a couple of Java APIs all the way to 13, that they again cherry picked from.

https://android-developers.googleblog.com/2020/07/11-weeks-o...

It is quite easy to track from their Gerrit which stuff gets copied from OpenJDK and what keeps being ignored.

They always end their Java update announcements asking for what APIs are relevant, while for anyone else it is clear that only 100% matters.

And we aren't even getting into language features or JVM bytecodes that don't have parity with ART ones.

Android Java is Google's J++.

Also for selling Kotlin they always use Java 7/8 code style when comparing against Kotlin code.

Re:OpenJDK Migrates to GitHub by jillesvangurp on Sunday July 26, 2020 @07:54AM (#23956395)
Actually, J2ME was open sourced as well but with one crucial difference: it was GPL v2 but without the classpath exception they used for the regular version.

With the classpath exception, dynamically linking class files is allowed. Normally this would be a form of creating a derived work thus triggering the virality of the license. This is crucial because it meant phone manufacturers could not take the OSS version and be able to ship it without having to OSS all their proprietary stuff linked against it. Sun was making a bit of money licensing J2ME to just about all phone manufacturers. The Gnu classpath was unusable for mobile phone manufacturers for the same reason: it would expose them to its viral clauses.

The Google & Oracle conflict is related to this because when Google bought Android (in 2004?), they ended up using Apache Harmony, which was a newly created project backed by IBM with an Apache licensed implementation of the Java standard library. It allowed Google to opt out of Sun's restrictive licensing deals, dodge licensing issues with gnu licensed code, and at the same time ignore the design by committee style API design that Sun insisted on with the rest of the industry.

Basically, it enabled them to run the whole of Java as they had their own vm and standard library implementation. Given improvements in mobile hardware, this was an obvious thing to want to do technically by that time. After Android shipped, there was little to no point at all to J2ME and it quickly became a thing of the past.

So, when Oracle bought Sun in 2010, all of that had already happened half a decade earlier. IBM pulled the plug on Harmony shortly after the acquisition and Google eventually incorporated much of Openjdk into Android to replace their Apache Harmony based implementation and also to modernize the code base. This is still licensed with the classpath exception; so they can do this.

Re:OpenJDK Migrates to GitHub by pjmlp on Sunday July 26, 2020 @09:30AM (#23956923)
Except the little fact that Android Java has become Google's J++, forking the Java community, while creating lots of pain for any Java library author that would like to support Android as deployment target.

Google had the opportunity to fix up their screw up by buying Sun, which they didn't, most likely hoping that Sun would sink silently, and they would get away with their little power games and industrial torpedoes.

Unfortunately for them, and fortunately for us Java devs, as I wouldn't like the Android architects to design Java, Oracle did not thought the same way.

Re:OpenJDK Migrates to GitHub by ptx on Sunday July 26, 2020 @05:12AM (#23955621)
Java has editions and profiles that implement different APIs and features, so Android's subsetting doesn't seem all that different. MIDP had even more missing.
Re:OpenJDK Migrates to GitHub by pjmlp on Sunday July 26, 2020 @05:46AM (#23955779)
Except those editions have reference documentation that specifies what they provide, across all COMPLIANT implementations.

Android Java is more like cowboy coding, whatever needed to keep Kotlin relevant libraries going on Android.

And to know what Java API is available one needs to crawl Android documentation to track down on which API level they got added into the platform.

The irony is that I am yet to see Android Studio, Gradle and Kotlin running to top of ART/desktop, a JVM free toolchain. Which apparently would be the direction that Google is driving into.

Re:OpenJDK Migrates to GitHub by killface on Sunday July 26, 2020 @01:56AM (#23954771)
sun imploded for a lot of reasons, android games wasn't a huge factor. their ridiculously expensive hardware and consultants? much bigger.
Re:OpenJDK Migrates to GitHub by pjmlp on Sunday July 26, 2020 @02:00AM (#23954785)
I was doing UNIX/Windows cross platform development during the first .com wave.

So I had to deal with Solaris, Aix, HP-UX, and Windows NT/2000.

We also rented servers for in-house development.

Their rates were just like everyone else on the Fortune 500 world.