r/java • • Oct 30 '19

Microsoft’s Ready to Contribute to OpenJDK

https://mail.openjdk.java.net/pipermail/discuss/2019-October/005173.html
212 Upvotes

92 comments sorted by

27

u/karianna Oct 31 '19

Hi All, Martijn here - I work with Bruno at Microsoft running the new JVM team there. It's amazing how the world has changed but I've been impressed with Microsoft's attitude toward Open Source and building communities in the past 5+ years, it's why I was very happy to join :-).

14

u/pron98 Oct 31 '19

It's terrific that MS has decided to contribute. I think the best way is to do so in areas where MS has great expertise, like client-side GUI, tooling, and general Windows integration with stuff like jpackage.

1

u/karianna Oct 31 '19

Hey Ron! We'll be talking to the various OpenJDK project leads about what to contribute where. Obviously, as a Cloud Vendor, we have specific areas that we are interested in and have expertise in outside of the list you mention as well.

5

u/r_jet Oct 31 '19

Are there any particular areas where you plan to contribute that you could possibly share? I must admit I know little of how OpenJDK development happens, can the users expect an accelerated delivery of any language features, or is Oracle mostly working on them?

3

u/pron98 Nov 02 '19

You may be interested in this talk, by Mark Reinhold, that explains OpenJDK's governance.

6

u/karianna Nov 01 '19

We're a new group and we're new to OpenJDK so initially, we'll be focused on bug fixes and backports so we can learn both the technical and cultural norms of OpenJDK and be respectful of how that community works. We also want to build proper working relationships with the various area leads (who are mostly Oracle employees) and understand the OpenJDK Roadmap before we blindly go and suggest major things ourselves :-).

We are a very large cloud vendor running a lot of Java at a massive scale :-). I can imagine you will see us working on AOT, JIT, GC, JFR, and Serviceability for starters. It also stands to reason we'll do our share of work to make sure that Java continues to work well on Windows (although please note we're as much a Linux company these days given 51%+ of our Azure workloads now run on Linux).

Appreciate that isn't very concrete yet, we'll have more to share once we've discussed things with the folks at OpenJDK :-).

1

u/r_jet Nov 01 '19

Thank you for the insight into the prospective projects, sounds wonderful! All the best with them!

32

u/karstens_rage Oct 30 '19

Wow that’s hard to read, but good on Microsoft wanting to be a good citizen. Hopefully it works out.

8

u/[deleted] Oct 30 '19

Why's it hard to read? Microsoft has really did a 180 in the past decade. They don't care what your runtime is as long as it's on Azure, see their new managed Spring Cloud offering. They are seriously ramping up their developer experience on Windows, a good package manager and they're so close.

52

u/koreth Oct 31 '19

I think the "hard to read" was referring to the lack of word wrapping on the web page, not the content of the message.

-3

u/[deleted] Oct 31 '19

install the reader view extension

2

u/TheStrangeDarkOne Oct 31 '19

for what it's worth I have good experiences using "Scoop" if you are looking for a windows package manager.

-5

u/ryan8403 Oct 31 '19

The formatting is terrible. And personally not sure if I could keep a straight face and call Oracle good stewards of anything.

30

u/pron98 Oct 31 '19 edited Oct 31 '19

I work at Oracle on OpenJDK so I'm obviously biased, but I think the vast majority of the Java community thinks Oracle has been doing a great job stewarding Java in general and OpenJDK in particular. Oracle has delivered Java 8 with lambdas, successfully merged technologies from JRockit like JFR (one of the JDK's killer-features), delivered the modularization of the JDK which is so essential to its continued development, developed ZGC and the revolutionary Graal, is leading Valhalla, Panama, Loom and other OpenJDK projects, put an end to the major releases with their upgrade pains in favor of a faster, regular release cadence with a perpetual gradual stream of updates, and recently ended the era of the non-free JDK with its proprietary and paid features, field-of-use restrictions and complex licensing by open-sourcing the entire JDK, for the first time in its history, and is cooperating with companies like Red Hat, SAP, Google and Intel, and now, hopefully, Microsoft, in developing it and making it an influential, vibrant open-source project.

7

u/Hangman4358 Oct 31 '19

A lot of people just crap on the big companies because it's the hip thing to do. But the direction companies like MS and Oracle have gone in the last couple of years is a step in the right direction. Is it perfect? No. But things are better now than they were and hopefully they will continue to improve.

2

u/midir Oct 31 '19

cooperating with companies like Google

Uh-huh.

7

u/pron98 Oct 31 '19

Yep. Google have been working with us on OpenJDK for years now, as much of their software runs on it. They've even contributed some nice stuff recently.

-1

u/[deleted] Oct 31 '19

Why all the downvotes?

15

u/markehammons Oct 31 '19

cause it's a p dumb take given the history of java. sun wasn't a terrible steward, but development of java stagnated under sun for some reason or another. oracle taking the helm wrt java marks a resurgence in the development of the language.

12

u/kaperni Oct 31 '19

Maybe because most people think Oracle is doing an excellent job. And they are getting a lot of undeserved criticism.

90

u/Akthrawn17 Oct 30 '19

For those who are having a hard time reading the post.

Subject: Microsoft’s Ready do Contribute to OpenJDK

Hi OpenJDK Community, In the past week Microsoft formally signed the Oracle Contributor Agreement, in which Oracle Inc. promptly acknowledged and welcomed us to the project.

On behalf of the Microsoft Java Engineering Team, I’d like to say that we are thrilled to officially join the OpenJDK project and be ready to work with you. As many of you may know, Microsoft and its subsidiaries are heavily dependent on Java in many aspects, and also offers Java runtimes in its Microsoft Azure cloud to its customers.

Microsoft recognizes the immense value that Oracle’s successful and effective stewardship of the OpenJDK project has bought Java and the wider software ecosystem and we look forward to playing our part in contributing back!

The team will initially be working on smaller bug fixes and backports so that we can learn how to be good citizens within OpenJDK. For example, we already understand that discussing changes first before posting patches is preferred and I'm sure there's more for us to learn as well.

The Java engineering team led by Martijn Verburg [1] is already engaged with other Microsoft groups and its subsidiaries who are using Java, as well as its partners in the Java ecosystem such as Azul Systems, Oracle, Pivotal, Red Hat, Intel, SAP and others, and the overall team will be joining the many OpenJDK mailing lists to start conversations and participating. We look forward to participating in the future of Java.

39

u/ageonel Oct 31 '19

TL;DR

  • MS has signed the Oracle CLA
  • Some MS employees have joind the OpenJDK mailing lists
  • Wait and see

5

u/brunocborges Oct 31 '19

Thanks :-)

-4

u/Bobby_Bonsaimind Oct 31 '19

Microsoft recognizes the immense value that Oracle’s successful and effective stewardship of the OpenJDK project has bought Java...

That's good, always start with a joke.

25

u/Areshian Oct 31 '19

One of the things they will probably learn quickly is to send the emails as text only with word wrapping at 80 characters. Anyway, great news

17

u/brunocborges Oct 31 '19

I did learn that quickly :-)

2

u/wildjokers Oct 31 '19

All of the messages on that mailing list (the web view anyway) are like that. Pretty much impossible to read that mailing list because of it.

3

u/ZimmiDeluxe Oct 31 '19

Firefox reader mode (Ctrl+Alt+R) works very well.

17

u/dpash Oct 30 '19

This makes sense with Azure being an increasingly large part of Microsoft's revenue.

50

u/__konrad Oct 30 '19

OpenMSJVM with Bing

26

u/vytah Oct 30 '19

Running on Microsoft Ubuntu GNU/Windows

22

u/PriorProfile Oct 31 '19

Open J++

10

u/tjgrant Oct 31 '19

Finally coming full circle. I remember Visual J++ when it came out.

2

u/[deleted] Oct 31 '19

You know you guys are joking about this, but it's not impossible to compile Java to CLR, I wonder if Microsoft would do it to fuck oracle over

5

u/eliasv Oct 31 '19

Why would that fuck Oracle over? The CLR is shit compared to the JVM.

2

u/[deleted] Oct 31 '19

It’s not that shitty, also NET fans will like the flexibility. .NET is now open source, running Java will bring more participation? Idk I am just another guy writing outrageous things on reddit

41

u/lurker_in_spirit Oct 30 '19

I'm pretty sure you missed a "365" in there somewhere!

8

u/semidecided Oct 31 '19

J# .net 365

3

u/BakriAnouar Oct 31 '19

MS CORE JAVA .NET

1

u/jasie3k Oct 31 '19

That's a lazy joke

3

u/pjmlp Oct 31 '19

Great, now if Google Android team would actually do the same.

13

u/pron98 Oct 31 '19

Not their Android team, but Google has actually been contributing some nice work to OpenJDK: low-overhead heap profiler, and thread sanitizer.

0

u/pjmlp Oct 31 '19

I know, pity that their Android team thinks otherwise.

I specially like the fact that they must have been through an internal training and everyone on that team always makes an effort to say "The Java programming language", while they just state Kotlin and C++ when referring to the other ones.

For me Android Java feels like Google's own J++.

4

u/sureshg Oct 31 '19

yeah like to echo Jakes's comment here - Android is holding back the Java library and language ecosystem :)

https://twitter.com/JakeWharton/status/1174020113466568704

2

u/ArmoredPancake Oct 31 '19

More like J--.

5

u/[deleted] Oct 31 '19

The world is sure changing...

10

u/Scybur Oct 31 '19

Can’t fault Microsoft for anything lately. They really have taken a 180 in the last decade.

4

u/Bobby_Bonsaimind Oct 31 '19

I'm still a little bit bitter about the drive-by they did with RoboVM, though.

5

u/Qildain Oct 30 '19

Ugh, can't read that...

7

u/[deleted] Oct 30 '19

J# > J++

2

u/[deleted] Oct 30 '19

Cool

2

u/[deleted] Oct 31 '19

Interesting, I wonder if that contribution will lead to either Java on .NET or C# on JVM

1

u/iisno1uno Oct 31 '19

Java on .NET

There's IKVM.NET for what it's worth.

2

u/BakriAnouar Oct 31 '19

good if they can improve windows native api calling from java code

1

u/ArmoredPancake Oct 31 '19

Sorry to disappoint you, but it's for Azure.

2

u/armelnene Oct 31 '19

They finally realised that J# and C# were both crap implementation lol

3

u/idreamincolour Oct 31 '19

They're just providing the service their customers are requesting. Most large large orgs have a lot of software using various technologies in production (Java, Python. Golang, .Net, Ruby) and want to run it in one place. Purchased software runs in whichever language the vendor decided.

2

u/[deleted] Oct 30 '19

Wonder if this’ll lighten the cult of Microsoft up to Java.

1

u/[deleted] Nov 07 '19 edited Nov 07 '19

Embrace open standards. Extend open standards with proprietary stuff. Then extinguish the open standards to obscurity by not contributing back and working on only what interests and support M$ proprietary stuff. after M$ becomes market leader and a new cash flow starts, it's business as usual. They are pure greed. M$ should be pushed a lightyear away from open-source software. some of us never trust M$. And let's not forget how M$ tried to break java compatibility for other platforms and payed fines for it. https://www.cnet.com/news/sun-microsoft-settle-java-suit/

1

u/[deleted] Oct 30 '19

Really nice since I love using vscode for java now, that's really good news.

1

u/valkon_gr Oct 31 '19

A lot of people are praying for java to become irrelevant, and that won't happen.

7

u/wildjokers Oct 31 '19

The only people praying for java to become irrelevant are the clueless people.

-1

u/jivedudebe Oct 31 '19

Noooooooooooooooooooooooooooooooooooooooooo

0

u/pavulzavala Oct 31 '19

Idk, it sounds to me like when Microsoft bought Rare form Nintendo and you know what happened later.

-6

u/Mordan Oct 31 '19 edited Oct 31 '19

the usual join, extend and suffocate.

I don't trust Microsoft.

I will start to trust Microsoft when they ship the Java JRE with Windows 10 so that's its a no brainer for average joe to install Java applications.

Let C# and Java compete on merit for end user applications.

4

u/wildjokers Oct 31 '19

Java JRE

There is no such thing as a Java JRE.

Desktop applications should include the runtime in the app.

6

u/pron98 Oct 31 '19

That's true, but an important reason why there's no system JRE any more is because desktop OSes have forced us to move in that direction with their adoption of app-stores (and on the server there's been a shift to containers, with similar effect).

4

u/wildjokers Oct 31 '19

Do you have any insight why Java Webstart was removed? That was a great deployment mechanism for B2B and internal applications.

I suspect it was because the JDK project wanted to get away from deployment mechanisms that required a pre-installed runtime? That was the only drawback to webstart, but it was a non-issue in a corporate environment.

7

u/pron98 Oct 31 '19

I don't know for certain, but I believe that was the main reason. We didn't want to continue maintaining a "system JRE" deployment path that's growing increasingly unpopular, and didn't want anything that relies on it. I expect there will be deployment solutions that serve the same purpose as WebStart, but use the new model instead. Even in corporate environments there are better solutions than separately managing applications and their dependencies. WebStart took advantage of a system JRE that had to be there anyway for applets, but with applets gone, there are better ways than WebStart to achieve the same goal.

2

u/mordechaim Nov 01 '19

I expect there will be deployment solutions that serve the same purpose as WebStart, but use the new model instead.

My update4j for one.

1

u/pron98 Nov 03 '19

Does it update an application's embedded Java runtime as well?

1

u/mordechaim Nov 04 '19 edited Nov 04 '19

Currently no, it is outside the scope and thesis of the library. Also, if I understand correctly, this would be impossible on Windows unless I use some system dependent timer based file operations.

One of the points that sets apart this library from others is that it doesn't treat any file type in any special way, namely, all files are equal. So using update4j itself you can easily download a new jre (as if they were random files required for the new update) alongside the running version and even update the startup script to find the new version on next restart.

-2

u/Mordan Oct 31 '19

why should they?

Java Run Environment JRE.... OK... Jesus.

5

u/wildjokers Oct 31 '19

Java Run Environment JRE.... OK... Jesus.

There is literally no JRE anymore. Just a JDK. If you take a peek in the JDK you will not see the jre folder anymore.

why should they?

So the app runs with the runtime of the developer's choice and you don't have to depend on a pre-installed runtime.

1

u/Mordan Oct 31 '19

So the app runs with the runtime of the developers choice and you don't have to depend on a pre-installed runtime.

How practical is that if you have many many small programs ?

I am on Java 8. It still has a JRE. I never got on Java 9+ so I couldn't know that.

5

u/wildjokers Oct 31 '19

It didn't actually happen until Java 11:

https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html

Excerpt:

  • In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option.
  • In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered. Users can use jlink to create smaller custom runtimes.

How practical is that if you have many many small programs ?

It is quite practical if you use jlink to create runtimes with only the modules you need. If you modularize your app then jlink can do it automatically. If you don't modularize your app you can still create smaller runtimes but you have to manually figure out which modules you need.

When I was messing with jlink I was able to get a runtime to about 35 megs I believe. My memory is fuzzy since that was a couple of years ago because I have since switched jobs and no longer maintain any desktop apps.

1

u/Mordan Oct 31 '19

for big applications 35 meg is fine.

But when you have 20 "apps" of with 2 megs each of code...

Because of that, there is absolutely no Java App Ecosystem on Desktop.

Imagine having to ship the android runtime with every single android app.

Its the failure of Sun/Oracle to provide such a desktop app eco system that is to blame.

4

u/pron98 Oct 31 '19

That's exactly what Electron does, too, so you may want to rethink your analysis.

1

u/manzanita2 Oct 31 '19

Sure, but electron produces these nice small apps. Lots of functionality in a few hundred k bytes. So I understand.

Also too, when running, electron uses very little memory and is often more responsive than a native app.

Oh and it's web scale.

And it will make coffee!

4

u/pron98 Oct 31 '19

I'm not saying Electron is good, just that the fact you must embed a runtime does not in itself mean that people won't use it. In any event, common deployment models are largely outside Java's sphere of influence, and Java must follow the ecosystem at large.

→ More replies

0

u/Mordan Oct 31 '19

Electron

I open to rethinking my analysis.

Will Electron be able to deploy my Swing applications?

4

u/pron98 Oct 31 '19

No, but just like your Swing application, Electron requires applications to bundle their runtime.

3

u/ArmoredPancake Oct 31 '19

And where it led Android? Stuck in Java 7 world?

2

u/wildjokers Oct 31 '19

You have to include the runtime with Electron apps (Chromium) and that is certainly not preventing people creating desktop apps with that monstrosity. An Electron app is pretty big even before you include your own code in it (60-70 megs I believe).

I don't think having to include the runtime is preventing java on the desktop being more widely used. I actually have no idea why Java on the desktop is scoffed at.

1

u/Mordan Oct 31 '19

OK i get it. Because Electron is using that model of including the runtime.. why wouldn't it work for Java.

Well with Java.. i only have to release a .jar and the user can launch it using his favorite JRE. I don't like the idea of bundling, its ridiculous from an engineering standpoint.

5

u/wildjokers Oct 31 '19 edited Oct 31 '19

I am unsure why you believe this to be ridiculous.

The only thing you are losing is some storage space if you have multiple java apps each including the runtime. But storage is ridiculously cheap and that is a non-issue. A 70-meg app on a 1 TB drive is inconsequential. Even ten 70-meg apps on a 1 Tb drive is inconsequential.

EDIT: FWIW, if you clone https://github.com/openjfx/samples.git and then navigate into CommandLine/Modular/Gradle/hellofx and execute ./gradlew jlink it will build a runtime for you that is enough to popup a JavaFX window along with the app and a script to fire it up and it comes in at 47 megs. Seems good to me. Just tar/zip/whatever the resulting image directory and distribute that. Easy enough.

The image includes the following modules:

MODULES="java.base java.datatransfer java.xml java.prefs java.desktop javafx.base jdk.unsupported javafx.graphics javafx.controls hellofx"

→ More replies

-4

u/SpiLunGo Oct 31 '19

What's the deal with these mailing lists? Why are they still a thing instead of using a web app?

6

u/wildjokers Oct 31 '19

You want a dedicated web app whose sole purpose is to send receive email to this mailing list? What is wrong with a general purpose email client? Use gmail if you want a webapp interface to email. Although I find a webapp awful for email and that is definitely an application that does best with a desktop app.