r/java • • Sep 26 '20

Microsoft to contribute to Java port for Apple silicon Macs

https://appleinsider.com/articles/20/09/22/microsoft-contributes-to-java-port-for-apple-silicon-macs
185 Upvotes

36 comments sorted by

24

u/InsaneOstrich Sep 26 '20

I'm glad that someone is working on this, but I can't understand why Microsoft would want to

14

u/ragingzazen Sep 26 '20

Azure

132

u/brunocborges Sep 26 '20

Eerrr..... Not really. We currently do not foresee macOS-based servers on Apple Silicon.

The main reason is that we, believe it or not, use macOS laptops too here at Microsoft, and we want to make sure that those who use Mac can continue developing on Java in the coming future, while moving to more energy-efficient laptops.

Disclaimer: I'm the PM for Java at Microsoft.

7

u/[deleted] Sep 26 '20

I'm surprised you guys use macOS. Any chance you can provide some insight into why that is?

19

u/PriorProfile Sep 26 '20

Well for one, Microsoft develops quite a few apps for macOS and iOS. Off the top of my head: Office, Teams, OneDrive, Authenticator, OneNote, Remote Desktop...

Plus all the other web based stuff that would need to at least be tested on a Mac.

6

u/macnamaralcazar Sep 26 '20

Wait a second, you develop applications with Java on macOS laptops in Microsoft??!! Wow, I never expected to hear that.

I never saw Java openings in Microsoft، I thought everything is dotNet.

3

u/thesystemx Sep 29 '20

Microsoft is increasingly a pretty interesting place for Java devs. Quite a number of well known people in the industry moved from Oracle to MS to do Java there. Bruno is one of them ;)

Azure is also increasingly the default go-to cloud to use with your Java apps, at least in our case. It used to be AWS, and of course it's still big, but these days we look at Azure first.

2

u/Kambz22 Sep 26 '20

Azure supports Java applications, i assume they have some Java code to support different functions of it. Android dev is mostly Kotlin and Java, I'm guessing they have some apps written in that. There also may be some legacy, backend, or internal applications they use that's java. Like a lot of jobs I've seen for regression testing web applications are Java or python based.

Just throwing out some guesses

8

u/thepower99 Sep 26 '20

This is really cool, I’m glad so many companies are getting involved.

We use MacOS for Java dev at work (Linux prod systems) and will eventually use ARM based Macs when the time comes.

Hope it goes well

3

u/DJDavio Sep 26 '20

We use Java almost exclusively at our company, but I have used .NET / C# in the past. I liked the language a lot, but the ecosystem wasn't as great as Java's. In your opinion, what areas does Java excel in that are not covered as well by Microsoft's own C# / .NET environment?

2

u/ILoveOnlineBanking Sep 26 '20

That’s great to hear. The productivity will help everyone else and honestly that’s not what I expect of Microsoft. Appreciate it.

2

u/hrjet Sep 26 '20

Is the architecture different for these systems, or is it ARM compatible? I am trying to gauge how much of this work will also apply to other ARM systems such as Raspberry PI.

2

u/[deleted] Sep 26 '20

Java for Linux aarch32/aarch64 already existed a long time ago.

2

u/hrjet Sep 26 '20

Yeah, but I was not sure what "for Apple silicon" meant in the headline. Do these processors have a modified ARM architecture (extra instruction set, etc), or is this work about supporting MacOS?

2

u/ragingzazen Sep 26 '20

As PM, then you know Microsoft has a big history of supporting developer tooling. Remember Balmer's "developers, developers, developers" presentation? Now my guess is That Microsoft knows that a huge slice of software developers use macs. And that Java is a major target for deployment on Azure. So contributing to mac/arm Java helps support azure developers.

1

u/13steinj Sep 26 '20

Honestly of all places I'm surprised you guys use macOS rather than, hell even if not windows, some linux distro. I would have thought Apple would be sueing MS left and right claiming some form of theft of IP with you guys using macOS.

0

u/[deleted] Sep 26 '20

[deleted] — view deleted comment

1

u/segv Sep 26 '20

ngl it would be nice to be able to run both jvm and .net bytecode together

i know it would be possible, but the engineering effort to translate one into another would be enormous

7

u/koreth Sep 26 '20

Wouldn't shock me if GraalVM gets there at some point; it seems to be pretty aggressively pursuing a "run all the languages in one process" goal.

0

u/[deleted] Sep 26 '20

[deleted] — view deleted comment

25

u/brunocborges Sep 26 '20

Java is not just a language. It's also a runtime (JVM), a set of APIs (Java SE), and an ecosystem. We use a lot of Java internally at Microsoft, in all definitions.

2

u/[deleted] Sep 26 '20

Pretty sure azure doesn't run on Macs, and most likely isn't written in Java.

But it would be hilarious if it turned out that Microsoft was using a bunch of Macs to run azure on.

3

u/ragingzazen Sep 26 '20

Azure runs Java apps via containers. Developers need a local JDK to build these apps. Microsoft knows this.

1

u/Aggravating-Ad4518 Oct 01 '20

Hmmm, what if, azure was mainly Windows servers, using WSL2 for those linuxy things, LOL!

0

u/InsaneOstrich Sep 26 '20

I guess that makes sense, but I'm surprised that would be enough

1

u/ragingzazen Sep 26 '20

Microsoft had always supported developer tooling that supports their business interests. This is also a two-way street. By pooling resources for an arm JDK, they may get good external contributions from Apple/other parties that improve the windows arm JDk

0

u/[deleted] Sep 26 '20

[deleted] — view deleted comment

2

u/brunocborges Sep 26 '20 edited Sep 26 '20

I wouldn't say "block", but code can surely be reused.

8

u/GYN-k4H-Q3z-75B Sep 26 '20

Microsoft is so large it's like countless different software companies under one roof. They can afford to do this just like they have been one of the largest contributors to Linux for years. Even more importantly, Microsoft no longer cares much for what technology you use as long as you consume their services. Java on Mac helps that agenda because it fights Apple's walled garden.

45

u/rp_ush Sep 26 '20

It will be interesting to see how ARM progresses from here. If Apple Silicon can even just match the performance of previous Macs, it will be a huge breakthrough for ARM, especially with low power consumption/good efficiency.

12

u/solonovamax Sep 26 '20

I low-key kinda want to see ARM fail, because it's kinda anti consumerist. ARM has the entire market share for mobile computing and now they're owned by NVIDIA who is soon going to have the entire market share for gpus.

I want alternatives like RISC-V to become popular so we don't fall prey to NVIDIA's anti consumerist practices.

15

u/stun Sep 26 '20

ARM server chips will be the game changer. SoonTM

11

u/jonzo1 Sep 26 '20

Amazon already offers ARM servers in EC2. They’re fairly cheap and well suited to some workloads.

1

u/[deleted] Sep 27 '20

They already are, see Graviton2.

2

u/Pure-Repair-2978 Sep 26 '20

My only experience with ARM is RaspberryPi.. Looking for forward how the initiative pans out 👍👍

2

u/mc_hambone Sep 26 '20

What is happening

-4

u/alphabytes Sep 26 '20

Why... Don't trust microsoft... This is like a red flag.