3 ms·
"the first ARM-based Macs could come in 2020, with plans to offer developers a way to write a single app that can run across iPhones, iPads and Macs by 2021" A
by mpweiher 8y ago
"the first ARM-based Macs could come in 2020, with plans to offer developers a way to write a single app that can run across iPhones, iPads and Macs by 2021"
Although this may very well be true and somewhat beneficial (see the related story about "unified Mac/iOS Apps from Ars Technica), the existence of "fat binaries" on Mach means that having multiple CPU architectures does not prevent shipping single combined binaries (for some definition of "single") today.
NeXTstep shipped single binaries for 4 architectures (68K, Intel, HP PA and SPARC), and due to the app-wrapper architecture, you could actually add the binaries for different OPENSTEP platforms as well, for example Yellow Box for Windows and OPENSTEP for Solaris.
Not sure anyone actually did this, but you could easily have had an actual single program supporting 3 operating system and 4-6 CPU architectures (if you include the 88K and PPC systems they had in the lab).
- wodenokoto 8y agoJust imagine the ire once HN finds out that the Slack client contains the binaries for the Chrome engine not just one, but 3-4 times over!
- OldHand2018 8y agoThat would be humorous for sure. Unfortunately (fortunately?), the App Store already deals with multiple architectures seamlessly. Apple mobile devices are a mix of arm7, arm8 and arm64. The Swift Playground app on the iPad has for years allowed you to save, compile and run files containing any arbitrary Swift code you've felt like writing (though no access to Frameworks of course): the arm-based compiler must be very solid by now. Really, it seems that success or failure hinges on how open the platform is (and if they have hardware virtualization).
- saagarjha 8y ago> though no access to Frameworks of course Swift Playgrounds gives you full access to frameworks.
- imtringued 8y agoUnfortunately no ARM vendor is interested in open platforms. Therefore a move to ARM laptops or desktops will be a step back in my opinion. Google's chromebooks can only run chrome. Windows on ARM can only run UWP apps and win32 only under emulation. It wouldn't surprise me if the new "iOS" on the macbook will only run iOS apps. Another thought: The move to higher level frameworks (UWP etc) as official APIs makes it harder for languages to interoperate compared to a simple C api and therefore vendors have even more power over their platform.
- Marsymars 8y ago> Windows on ARM can only run UWP apps and win32 only under emulation. You can compile C++ Win32 apps to ARM64 for WoA: https://blogs.windows.com/buildingapps/2018/11/15/official-support-for-windows-10-on-arm-development/ https://blogs.windows.com/buildingapps/2018/11/15/official-s...