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

View all comments

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!

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.

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.