r/AskComputerScience • • Jun 22 '20

How will ARM based MacBooks change developer preferences when it comes to CS related work?

Will they become bad for everyone but iOS and Mac devs? I wasn't initially too concerned, but today a report came out that the first ARM Macs might be MacBook Pros, and that the Intel ones will be discontinued after the ARM ones are introduced. Obviously, a rumor, but I wanted to know what people think about this development.

31 Upvotes

50 comments sorted by

32

u/jeffbell Jun 22 '20

It means that we have to publish two different Mac executables for the next five years at least.

17

u/Syde80 Jun 22 '20

Unlikely. When Apple transitioned from PowerPC they had a "Universal Binary" format aka fat binary that contained everything needed to execute natively on PPC, x86, and x86-64 in a single file.

3

u/jeffbell Jun 22 '20 edited Jun 22 '20

Thanks for pointing that out. I had been using Linux that decade and forgot about it.

Still... we are going to add MacArm nodes to the testing pipeline. And if we have to get the very latest Xcode toolchain, there's probably a cascade of updates, plus all the other tools involved, none of which have arm versions yet.

4

u/scriptmonkey420 Jun 22 '20

Thats just ugly.

1

u/Syde80 Jun 22 '20

I don't disagree. It did kind of fit with Apple's mantra of making thing easy for the average end user though.

The same technique might not work as well today surprisingly as its not uncommon for people to have 128GB SSDs these days because people are currently valuing fast storage over vast storage. You can get by with 128GB no problem right now, but as soon as all those binaries need to be multi-arch... yeah maybe 128GB is not going to cut it now.

3

u/[deleted] Jun 22 '20

The actual element that needs to be multi-arch is relatively small, at least.

I'm dating myself here but back in the day Apple did fat binaries of Motorola 68000 series and PowerPC. Your logic had to run on both but your assets were all reused. The ratio of logic to assets in programs since then has only gone down

1

u/Syde80 Jun 22 '20

Totally get it. I actually mentioned universal binaries / fat binaries in another comment in reference to PPC -> x86 migration

1

u/[deleted] Jun 22 '20

Yeah, I saw that. It's Apple's playbook -- they did it for 68k to PPC, they did it for PPC to x86 and x64. It's very reasonable to think that they'll do it for x86 to ARM.

I think the storage might not be so bad, though, thinking of the era where multi-arch packages on Mac OS didn't completely fill our 500MB hard drives either because both binaries pointed at the same assets.

1

u/cguess Jun 22 '20

They'll probably do what they did for iOS, which, at least for apps published through the store they'll strip out the arches that aren't for the destination. Of course they'll do this for only 30% of your revenue!

1

u/Winstonp00 Jun 22 '20

But will you be doing your development work on the Intel or ARM Mac?

3

u/jeffbell Jun 22 '20 edited Jun 22 '20

Intel Mac until at least 11:00 today.

Sometime in the next year or two I'll probably might switch. I'm overdue for laptop refresh,

1

u/Poddster Jun 22 '20

But will you be doing your development work on the Intel or ARM Mac?

Intel Linux or Windows.

Why would I want to use a Mac?

2

u/PianoConcertoNo2 Jun 22 '20 edited Jun 22 '20

>> Why would I want to use a Mac?

  • Good support (they repaired my out of warranty 2015 MacBook Pro due to a battery recall, and my wife's out of warranty 2016 MacBook Pro for the keyboard recall. Both still working strong, and what other company would do that for 5 year old hardware?).

  • iMessage (convenience).

  • Sidecar (Apple supported ability to use an iPad as a second display).

  • Apps (Primarily Things 3, Logic Pro, Fantastical for me).

  • Ecosystem as a whole (ie, Universal Clipboard across iOS/Mac, syncing podcasts across my watch/phone/tablet/laptop, etc).

I love Linux and have a few Thinkpads/an old Mac Mini running it. I just don't get the Apple hate or why some people act like this is something you have to choose sides on.

2

u/Michaelz35699 Jun 22 '20

As an ex-mac user, Mac just feels good. Everything is like a polished gem. It's snappy, performant enough, and it's coherent.

2

u/blitz4 Jun 22 '20

I wonder if desktop video game publishers will want to work on arm at all or if more mobile games will be supported on mac.

3

u/Syde80 Jun 22 '20

I doubt any mobile games contain any low level cpu code and thus are not coded for any specific architecture. I don't think it's the cpu type that would be the barrier to cross platform support. They would just need recompiled, presuming the supporting libraries are available.

1

u/scriptmonkey420 Jun 22 '20

Okay, Mobile games sure. But all the Steam games that are supported on OSx are no longer going to be supported since they were all built for x86(-64). Those games will not work on an ARM CPU unless there was a shim and that would destroy performance.

0

u/Syde80 Jun 22 '20 edited Jun 22 '20

Something tells me Apple doesn't really care about problems relating to gaming. Its not something they have really ever delved into beyond mobiles games.

This is my completely uninformed thoughts... but I think that Apple realizes that their biggest sales of laptops is to people that think of it more of status symbol and not those doing any serious work. Sure, there are some creatives still using Apple, but since Adobe and others have openly started supporting Windows (and Linux in some cases), they have been losing that market share. Those looking at it like a status symbol are doing basic things and having insane battery life will give them something else to brag about and keep it going.

All that said, I would also kind of expect that Apple will have a compatibility layer to run x86-64 binaries on ARM similar to how Windows runs x32 binaries on x86-64 installations.

Edit: word.

Edit 2: clearly I've offended some egos of those that have bought MBPs thinking it's not a status symbol. Point out one hardware feature that makes it better than any Windows-bundled laptop I can find and I'll give you a Reddit award of one type or another. The only exemption I'll make is touchpad since I know that is a common one. I personally dont love them, but I'll not argue that one.

1

u/scriptmonkey420 Jun 22 '20

I would also kind of expect that Apple will have a compatibility layer to run x86-64 binaries on ARM similar to how Windows runs x32 binaries on x86-64 installations.

That will massively destroy performance. Running 32bit x86 code on a x86-64 CPU is much much much different than running x86-64 CISC code on a RISC ARM CPU. First they are both CISC and the x86-64 CPU still has the x86 32bit instruction set. While the ARM RISC CPU does not have any x86 instructions at all. So you will need to run a software compatibilty layer that will translate the x86-64 (or 32bit) CISC Instructions into 64bit ARM RISC instructions. And that is a massive amount of overhead.

1

u/Syde80 Jun 22 '20

I do not disgree but what is worse? Not running at all or hindered performance? Put $ from their perspective. Especially considering it is just a transitional period and their own binaries will surely be native from day 1.

1

u/scriptmonkey420 Jun 22 '20

I would rather it not run at all than having the OS decide that it runs in crap performance.

1

u/Syde80 Jun 22 '20

You might think that, but Apple won't. Again, try and work out what the actual $ cost is to Apple for support costs of known hardware performance issues (where they hopefully won't call at all and just think their computer sucks) where they can recommend a hardware sale vs. paying a support person to explain to a 70 y/o person for the 6000th time that the company deemed their computer obsolete to run today's software even though they bought it last year and the only way to work is buy again.

13

u/Spellersuntie Jun 22 '20

I'm not sure how much it'll matter except for folks developing OSX apps where the processor specifics are relevant.

1

u/Winstonp00 Jun 22 '20

Would you expect most other developers (web, mobile etc.) to not be affected by the change?

4

u/Syde80 Jun 22 '20

I don't see why it would matter to them since those developers are not writing any cpu specific code. As long as their toolchain and libraries are available on whatever architecture I don't see how they would even notice.

2

u/[deleted] Jun 22 '20

No, practically nothing will change. The industry has spent the last 30 years making portability a thing, even as x86 continually dominated the market.

Unless you're working with highly specialized tech that can't be recompiled or doing ASM in an app that targets Mac Books, you'll be fine. Maybe update the development compiler flags.

Edit: I won't be able to play games on my dev machine. I assume the industry considers this a huge win.

0

u/Spellersuntie Jun 22 '20

I'm not either of those so I don't know but in my personal project experience I don't see how it would

4

u/SharkBaitDLS Jun 22 '20

Yeah, given that my work Mac is largely running stuff that is either CLI tools compiled from source anyway, IDEs that will surely gets updated, or stuff running off interpreters/VMs like Java/Python/Node, I don’t really think it’ll be that high-friction. Apple’s emphasis to App Store-based distribution means most of the random quality of life apps and extensions I run already come from there and I should expect those to be relatively easy to update.

5

u/rexferramenta Jun 22 '20

Firefox and chromium have test builds for arm architectures. I think there might be some growing pains but Apple supports their ecosystem well.

Might drive price of Intel high end iMacs up for a bit.

2

u/cipherous Jun 22 '20

I might be outdated but I believe that about chrome on ios is that the chrome team can't build their own rendering engine, Blink due to apple's restrictions.

They're forced to use IOS' default webviews (based on safari) to render web pages so their web browsers will never be faster than safari.

So basically chrome on IOS is just a skinned Chrome browser that runs on safari internals.

1

u/rexferramenta Jun 23 '20

I was referring to the chromium project, not just Google chrome. Yes both web browsers have severe limitations on iOS as well as restrictions from Apple (for example can't change default browser on iPhones).

They started the arm build for chromium to support Windows 10 arm.

3

u/cipherous Jun 22 '20

its another platform to test software to make sure it runs and account for (which is big pain in the ass). I remember testing chrome on a mac because I couldn't reproduce a bug on chome on windows: You never know the very minute details that throw off your code.

Personally, I like to have local instances of my database and server so I can work offline if need be.

I doubt we will be seeing arm version of apache, postgres, node, etc anytime soon (never say never but I doubt it'll be anytime within the next 3 years).

Even on latest ipad, there still isn't really a comparable IDE like intelliJ or eclipse even for JS development.

2

u/zombarista Jun 22 '20

I bet that the ARM chip is only for the OS and core apps and that an x64 chip is still available for more intensive compute loads. Apple can’t keep switching architectures on devs and expect patience and understanding, unless they have some amazing tech to ease the transition

I cannot imagine folks that depend on high-performance dozens-of-cores Macs for video/etc will want to give up that power.

2

u/mlambie Jun 22 '20

Do you mean a device with both Intel and ARM processors, used for different purposes? I’ve never considered that before. Is there a precedent with multiple architectures used in the same single consumer device?

3

u/jeffbell Jun 22 '20

GPU, '387, that 8742 in your keyboard.

1

u/[deleted] Jun 22 '20

No, there isn't. You just described 2 different computers competing for resources. That's a very bad idea to manage with 1 OS.

0

u/[deleted] Jun 22 '20

[deleted]

2

u/ChrisC1234 BSCS, MSCS, CS Pro (20+) Jun 22 '20

They've switched once in the history of the company.

Motorola 68K -> PowerPC

PowerPC -> Intel

Intel -> ARM

This is switch #3. Plus there was the switch from the Classic MacOS to OS X.

0

u/[deleted] Jun 23 '20

[deleted]

1

u/ChrisC1234 BSCS, MSCS, CS Pro (20+) Jun 23 '20

OH ok, twice, even though Motorola worked with Apple and IBM to develop PPC.

Yeah, but each is a drastically different architecture. Sure, for some developers it didn't mean much, but to others it meant a lot.

Don't be silly and start talking OS changes, maybe we should call each point release a new OS as well.

No, but the switch to OS X was a change that was more than a simple recompile.

1

u/seanalamode Jun 22 '20

Just curious. Long time Windows user. Just bought a MacBook Pro 16 and am digging it, however, the arm technology intrigues me. My previous Dell is about 8 years old and still runs great. Because of the investment in the Mac, I also hope to get 5-plus good years out of it. I know it will definitely do that, but with this big change, am I better off returning it and getting an arm Mac when they officially launch? I just don't want to drop 2k on a laptop that I'm going to want to replace in a year for better technology. Even though mine will surely suit my needs, I just feel like the potential benefits of the arm (better battery life, less heat, etc) are something I would want if I choose to upgrade my device. Thanks.

1

u/[deleted] Jun 22 '20

You're giving mixed signals here.

Because of the investment in the Mac, I also hope to get 5-plus good years out of it

I just don't want to drop 2k on a laptop that I'm going to want to replace in a year for better technology.

You'll get 5+ years out of any Mac, yes. But you'll also want to upgrade to the latest and greatest. This has been the Mac way for ever. About every other year they make the MacBooks better enough that it is a real treat to upgrade. This won't change, your competing desires are the same whether it's x86 or ARM.

2

u/seanalamode Jun 22 '20

Definitely. So maybe I should have been more specific. I'd like to get closer to 10 years out of it. As with my dell being 8 years old, and I still don't necessarily need the latest and greatest. It works really well still. So basically, if you were in my situation, not in a giant need for an upgrade, but feel likes it's time...if you were going to make a big investment in something that would hopefully get you through the next say, 10 years even, is the arm change big enough that I should just wait a few months to make the purchase on that? Thanks for the reply.

1

u/[deleted] Jun 22 '20

Quite the opposite. The ARM change will be disruptive. If you talk to people who switched from PowerPC to x86, the one consistent answer was that PowerPC was vastly more stable than x86. They ran hotter and of course were less useful, but they continued working long after the early x86 laptops failed. If you want longevity, go with the tried-and-true platform, never the up-and-coming.

As a bonus, the fact that the x86 laptops will lose support will be a good thing. Probably not an experience you had with the Dell, but MacOS is updated regularly and eventually OS updates do bad things to older hardware. Of course you can turn it off, but this will ensure you never "accidentally" upgrade (I've heard rumors that Mac will force installations, because security).

2

u/seanalamode Jun 22 '20

Much appreciated. Yep, and that was my exact worry. Although it's a big change, super intriguing, and could be great down the road...it's usually not good to get the first go around of a major change. I think I'm going to keep the mbp 16 for a few years until the arm Macs have worked out any links and then reevaluate. Thanks again!

1

u/MCPtz Jun 22 '20 edited Jun 22 '20

We'll have to check that our current cross compile environment doesn't cause issues.

Possible code changes.

We currently have some code that does ifdef (__compilerflag__), such as maybe __ARM__. Would have to change that flag if it's generic __ARM__ to something more specific for that specific target.

Would have to investigate compiler options to make sure it's optimized correctly and avoids any bugs for the new platform (MacOS on ARM)

Then in the mean time, some tools we use may not support ARM for MacOS.

Then full testing, etc.

It's a non-trivial amount of work for a MacOS app to run on an ARM processor.

I would imagine we wouldn't support MacOS on ARM for quite a while, due to lower priority.

If it's an electron app, then perhaps when electron's environment is ready, those types of apps will be a lot easier to validate.

1

u/teatacks Jun 22 '20

I think the larger majority of developers these days write for the web using an interpreted language like JavaScript. Any code that runs in the browser will continue to work, since we've already been testing it for over a decade on mobile devices.

The server-side has mostly been x86, but AWS has started offering their own ARM CPU, the Graviton. It'll be interesting to see whether this causes a shift on the server side.

It's likely that there may be subtle bugs that will likely impact performance on the server-side code, but the fixes will be made in the language runtime and not in any JavaScript programs themselves.

It's a bit of a harder change to just switch everyone to Windows. Most servers run Linux, and macOS is much closer to Linux than Windows. There's a huge amount of momentum in programming language communities all having their dev setup on macOS. It's much easier to google your problem if you're working on macOS that if you're in Windows, and that will make a big difference here. There's also a huge annoyance for the user in switching operating systems. Microsoft has even gone as far as creating the windows subsystem for Linux, but it's still not as seamless as the experience on a Mac.

Windows laptops still suck too. Nobody has made a trackpad that comes close to what's on the MacBook. A fleet of macbooks is way easier to manage on a corporate scale than anything else. It also has the effect of signalling to your developers that you're not being cheap by trying to save a few dollars on hardware. It's bad enough that if I were applying to a job and found out the developers were working on Windows, I'd choose to work somewhere else.

2

u/Syde80 Jun 22 '20

Your experience of what developers prefer and managing corporate networks is a very stark contrast to my own.

2

u/teatacks Jun 22 '20

What has your experience been like?

2

u/Syde80 Jun 22 '20

In my experience, devs are a mixed bag. Those writing internal applications are generally on Windows, those writing web-apps could go either way and highly depends on the frameworks of choice.

I do very strongly disagree with a few points you have made though:

  1. "most servers run Linux". If you are talking about web servers... sure without any research, I'll give that one to you. If you include internal corporate-only access servers though I would likely strongly disagree. Windows is fairly ubiquitous in corporate environment outside of a few select industries (and definitely outside of embedded systems). To be transparent. I personally run a mix of Windows and (mostly) CentOS Linux systems in a corporate environment. Almost every software other departments require to run, requires Windows Server. IT department can run on mostly Linux.

  2. "A fleet of macbooks is way easier to manage on a corporate scale than anything else". I mean, Apple themselves don't even produce any server-specific hardware or software so how do you manage a fleet of anything? Yes, there are 3rd party tools. None of them are better than what Microsoft has available from GPO/Active Directory/InTune/SCCM/etc. Let alone the 3rd parties supporting Windows. GPO by itself is very powerful.

1

u/[deleted] Jun 22 '20

I'm curious too. Working in Seattle is a trip because you'll run across former Microsoft employees with a chip on their shoulder using Windows to code. The few I've encountered get very defensive of their former employer.

2

u/[deleted] Jun 22 '20

Lots of developers are looking hungrily at those ARM servers in AWS too. The cost savings are likely to be huge at scale. Getting line engineers to switch to ARM in their laptop will definitely move people over.