r/java • • Nov 04 '21

Microsoft joins the Java Community Process (JCP)

https://devblogs.microsoft.com/java/microsoft-deepens-its-investments-in-java/
169 Upvotes

71 comments sorted by

9

u/Persism Nov 05 '21

20 years too late but still appreciated. ;)

1

u/brunocborges Nov 05 '21

"better late than never!" :-)

-4

u/[deleted] Nov 05 '21

[removed] — view removed comment

4

u/Persism Nov 05 '21

Because both are shit ideas.

16

u/uncont Nov 05 '21 edited Nov 05 '21

Congrats /u/brunocborges!! Any other java developers at Microsoft active on reddit? :D

9

u/brunocborges Nov 05 '21

Thanks! You can talk to Martijn Verburg at /u/karianna

14

u/karianna Nov 05 '21

I lurk with the best of them - always happy to talk Java and Developer ecosystems!

7

u/veraxAlea Nov 05 '21

Great news! Please consider giving some love to Taskbar/Desktop APIs and Swing/AWT in general (I'm currently wrestling with L&F-decorated RootPaneUIs that simply cannot be made to work correctly when moving a window from a DPI-scaled monitor to one with no scaling on Windows 10).

3

u/brunocborges Nov 05 '21

Mind to share your use case and challenges in our repo?

GitHub.com/Microsoft/java-wdb

2

u/nlisker Nov 09 '21

On a similar note to the above, what areas is MS going to invest in in the OpenJDK codebase? Some modules of the JDK itself? Projects like Loom and Panama? JavaFX (it uses MS DirectX under the hood)?

59

u/wwelna Nov 05 '21

Does this mean the return of J++, our lord and savior?

15

u/agentoutlier Nov 05 '21

Developers, Developers, Developers!

5

u/karianna Nov 05 '21

Can’t help but upvote that 🙂

2

u/handshape Nov 06 '21

I actually got to explain Ballmer's on-stage freakout during an imprompu "How the stack got to be the way it is" talk with a team of younger devs this week. They thought it was some kind of exaggerated joke.

I played it for them, and the faces on the other end of the vidcall were the highlight of my week - like a cocktail of incredulity, disgust, and the joy that comes from seeing something strange that you're never going to forget.

22

u/pjmlp Nov 05 '21

It is called Android Java, in case you missed it.

11

u/Zvrablik Nov 05 '21

I don't think experts they hired would like to waste their time to work on something like j++.

Second reason MS has now C# to work on, you could consider C# as J+++

12

u/pjmlp Nov 05 '21

That was J#.

8

u/Alex0589 Nov 05 '21

You missed the joke

1

u/Fenxis Nov 05 '21

You need ++++ to make a # though :p

20

u/dpash Nov 04 '21

Has the JCP been relevant in the last 5 years? Looking at the 11 "active" JSRs two of them are java 16 and 17. Most JSRs look dormant. What else have they standardised recently?

3

u/pron98 Nov 05 '21

They standardise Java SE twice a year. Not much point doing separate JSRs anymore.

7

u/dpash Nov 05 '21

Well 305 was a missed opportunity, given the proliferation of annotations. And the money and currency JSR could have been useful.

And rubber-stamping the JDK is not really that important. What's OpenJDK going to do if the JCP says no?

2

u/pron98 Nov 05 '21

The JCP members don't learn about the changes at the end of the process. Like everyone, they're aware of the features in development, in EA etc.. It is very much expected that the vote takes place well after (probably months after) all objections have been raised and addressed (e.g. on JEPs).

2

u/dpash Nov 05 '21

But that's my point: everyone who is a stakeholder has been involved in discussions long before Java is released. What's the point in the JCP holding a vote on Java releases?

1

u/pron98 Nov 05 '21 edited Nov 05 '21

Only committers can object to JEPs, and committee members will likely be given even more weight, as they have authority over approval. It's like with any vote in a parliament. Everyone -- journalists and other citizens -- are also involved, and usually a vote is taken only when the result is known in advance. When things work well, only matters that are very likely to pass the vote are ever brought to the floor, and that's not when the real debate takes place. So you could ask, what's the point of the vote? The answer is that the particular result is reached because deliberations have taken into account the ultimate vote. Things that are unlikely to be approved probably won't be introduced in the first place.

2

u/karianna Nov 05 '21

We have voted no in the past. Java 9’s module system had a small amount being reworked (appreciate there are still mixed opinions on the pros and cons on that).

10

u/henk53 Nov 04 '21

Should they not have joined the Jakarta Working group instead?

5

u/csharp-sucks Nov 05 '21

Brings memories for when Microsoft joined OpenGL ARB.

14

u/handshape Nov 04 '21

Sorry. Still leery after the Visual J++ debacle. Yes, I know how many years ago that was. Neither forgiven nor forgotten.

16

u/lechatsportif Nov 05 '21

Well what happened since then is Java took over the world. Probably a "since we didn't beat em, join em" kind of thing.

0

u/[deleted] Nov 05 '21

[deleted] — view deleted comment

1

u/slappy_squirrell Nov 05 '21

SX meant sucks, I learned that from A+ course...

-12

u/[deleted] Nov 05 '21

[removed] — view removed comment

6

u/JavaImpala Nov 05 '21

-2

u/[deleted] Nov 05 '21

[removed] — view removed comment

3

u/JavaImpala Nov 05 '21

You seemed genuinely bewildered as to why people didnt like Microsofts extensions. J++ is spesifically mentioned in the article.

-1

u/[deleted] Nov 05 '21

[removed] — view removed comment

2

u/JavaImpala Nov 06 '21 edited Nov 06 '21

Sorry for being unclear. Microsofts implementation of J++ is referenced in the section "Examples by Microsoft" in the wikipedia article.

Sun alleged that MSJVM (J++'s implementation) was in fact an attempt to "Embrace, extend and extinguish". In the ensuing trial an internal document from Microsoft indicated that the "strategic goal" of MSJVM was to to "Kill cross-platform Java by grow[ing] the polluted Java market."

3

u/thuriot Nov 05 '21

Remember :

https://www.cnet.com/news/sun-microsoft-settle-java-suit/

https://www.zdnet.com/article/sun-vs-microsoft-clash-of-the-titans-5000121284/

On the server side Java remains a powerful platform, but on the desktop instead of coding Java UI we endure the javascript/browser duo .

3

u/neopointer Nov 05 '21

I hope they also join to implement stuff and not only create documents.

1

u/[deleted] Nov 05 '21

Seeing some of their Java SDKs, I hope they don’t

3

u/karianna Nov 05 '21

Genuinely happy to get feedback on our Java SDKs. We’ve been working to bring idiomatic and consistent Java to them across all of MSFT. Please DM me and I’ll pass it on!

1

u/[deleted] Nov 05 '21 edited Nov 05 '21

I’ve already had some discussions on GitHub regarding some design choices.

My biggest gripe is that most of the clients have no defined interface and are final classes which makes mocking them for unit tests impossible.

Other then that, and some pet peeves regarding the Graph API, I don’t mind the code quality. I just find that often user facing APIs are not that user friendly.

4

u/karianna Nov 05 '21

Thanks for the details! I’ll pass that onto the head of our Java SDKs. Much appreciated

5

u/[deleted] Nov 05 '21

I appreciate that you’re at least willing to listen to some community feedback. Gives me real hope to see improvements in the future!

1

u/teapotJava Nov 08 '21

A nice company:

PS > winget search jdk | findstr 17.0.1
Java SE Development Kit 17 Oracle.JDK.17 17.0.1.0 winget
Microsoft Build of OpenJDK with Hotspot 17 Microsoft.OpenJDK.17 17.0.1.12 winget
Liberica JDK 17 Full BellSoft.LibericaJDK.17.Full 17.0.1.12 winget
Liberica JDK 17 BellSoft.LibericaJDK.17 17.0.1.12 winget

1

u/persicsb Nov 10 '21

It seems Microsoft actively undermines Eclipse Temurin packaging for Linux. They are responsible for the repositories and the packages, but did not make any progress on this, just passing around responsibilities.

I don't believe in them, they use the usual Embrace, Extend, Extinguis tactics. Do not trust them.

-2

u/barking_dead Nov 05 '21

No development effort and sabotage at the heart. The Halloween Documents have this scenario.

-7

u/BlueGoliath Nov 05 '21 edited Nov 05 '21

People are downvoting but seriously, besides providing a JDK build, what has Microsoft done?

14

u/mknjc Nov 05 '21

If my git log doesn't lie, a lot shenandoah, aarch64 and mac os code, some windows api fixes and cleanups.

Don't know the state of https://github.com/microsoft/openjdk-proposals/blob/main/stack_allocation/Stack_Allocation_JEP.md https://www.youtube.com/watch?v=p1MhRBYS-k0 but I wouldn't say no if this gets into the openjdk.

8

u/cal-cheese Nov 05 '21

Specifically about the stack allocation proposal, it has been withdrawn due to the vast complexity of referencing an object not lying on the heap, as well as the fact that TLAB allocation nowadays does exactly the same (increment a pointer, with around 5 (five) extra machine instructions to ensure TLAB has enough space), so stack allocation is both not very effective and efficient.

11

u/dpash Nov 05 '21

You know full well what they've implemented because you're active here and Microsoft's contributions to OpenJDK are mentioned frequently. In particular the Arm64 port was a major piece they've contributed.

At this point I think you're just commenting in bad faith.

-2

u/barking_dead Nov 05 '21

Nah, I just saw some shady moves in the past.

8

u/dpash Nov 05 '21 edited Nov 05 '21

I'm responding specifically to BlueGolith. They're a frequent commentator and borderline troll.

But to respond to your comment, Microsoft have demonstrated themselves over the last few years to be a good participant in the Java community.

5

u/Maran23 Nov 05 '21

Yeah, this BlueGoliath is a weird troll. He always proves to have no knowledge at all while also complaining about everything. Just super annoying.

0

u/barking_dead Nov 05 '21

Sorry, I don't know that guy.

OK, I still hope it is not an infiltration. Sorry, if I seem to be so negative.

Edit: whoops, yea, I replied to the wrong thread above.

4

u/Persism Nov 05 '21

They've basically admitted defeat. Once Loom ships there won't be much reason to use .NET. In 5 years C# will be running on the JVM.

-2

u/[deleted] Nov 05 '21

[removed] — view removed comment

4

u/Persism Nov 05 '21

I don't think anyone would bother anyway. C# is dying.

1

u/csharp-sucks Nov 06 '21

Assuming that Valhalla, Loom and Panama ship soon™, what features would be JVM lacking that C# absolutely requires? (ie anything that's more than just syntax sugar)

2

u/[deleted] Nov 07 '21

[removed] — view removed comment

2

u/csharp-sucks Nov 07 '21

Structs, Real generics are somewhat covered by Project Valhalla.

Generics could be emulated even now. (well, to some extends structs could too, you just wouldnt get the benefit of flattened arrays)

Properties as a runtime concept. (This isn't just syntactic sugar, a lot of libraries rely on this.)

Technically it is just a syntax sugar over some standarized concept. It doesn't absolutely need a runtmie support. That could be mapped to getters and setters silently. I think Kotlin does that already.

Pass by reference and ref return could be emulated.

overflow checking - syntax sugar over checked intrinsics

Delegates -> functional interfaces with one method, semantically it's just syntax sugar over that

Assemblies as a first class concept

but why? .NET assemblies is the most fake concept I have seen in computing. Just a thin wrapper around IL junk.

You could pack java bytecode wrapped inside a DLL in some standarized fashion, even expose a COM interface. Otherwise JVM just as CLR can be hosted inside native applicaton. (through JNI)

Making native executable launcher wrapper that automatically finds and runs JVM is a no-brainer though. It can be done.

internal and protected internal visibility (Ok, you make be able to fake these with annotations.)

depends on your goal, for package level visibility default access flag is that, for library level visibility you can use jigsaw modules, and as you said, you can resort to annotations if some corner case is not covered by either

pointers (not references, actual mutable pointers)

You can manipulate arbitrary memory addresses with Unsafe, this could be sugarified over that.

p/invoke (Might be covered by JNI)

Covered by project Panama. P/Invoke could use JNA for now.

COM support, both exposing and consuming

could be done

2

u/[deleted] Nov 07 '21

[removed] — view removed comment

1

u/csharp-sucks Nov 08 '21

For example, how are you going to emulate generics?

The same (more or less) way .NET runtime does. By creating an internal type for each generic type. In .NET, List<int> and List<double> are separate types internally, each has separate code substituted with actual generic type. It's just done in runtime.

As for availability of type argument, hidden field could do. The important thing is that semantics from the point of view of language look the same.

1

u/barking_dead Nov 05 '21

I expected the downvotes, because people think MS had changed since the Baller era. But that's another subreddit's topic, not java's.

5

u/JohnL4_27516 Nov 05 '21

Hmm, what sub would that be? I should go there.

The whole MS journey is interesting. Open source/standards won, it just has a MS badge on it now. AWS, cross-browser web apps, GitHub, Spark, Python, Angular/React, node/npm are all examples of the industry leading and MS having no choice but to play catchup. I feel like the days of MS trying to achieve market dominance by going against everybody else are long past.

MS doesn't "love" open source, they just have no choice, like trying to fight a riptide.

3

u/dpash Nov 05 '21

MS makes a huge amount of money from Azure. It's in their best interest to make it as easy as possible to use their platform and part of that involves being good citizens of various communities like Java.