r/AskComputerScience • u/Winstonp00 • 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.
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
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
1
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
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
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
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
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:
"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.
"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
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
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.
32
u/jeffbell Jun 22 '20
It means that we have to publish two different Mac executables for the next five years at least.