Recent

Author Topic: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?  (Read 19957 times)

Manlio

  • Full Member
  • ***
  • Posts: 164
  • Pascal dev
In the next few days Apple is expected to announce that it will stop using Intel chips and move to its own ARM architecture.

Can anyone tell how is this going to affect Lazarus development for MacOS?

https://appleinsider.com/articles/20/06/13/apples-shift-to-arm-mac-from-intel-at-wwdc-will-define-a-decade-of-computing
manlio mazzon gmail

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1070
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #1 on: June 13, 2020, 06:53:18 pm »
It's shouldn't affect FPC too much. FPC already supports AArch64 for iOS. Supporting it also for macOS shouldn't be difficult (once I have a machine to test/run it on).

jwdietrich

  • Hero Member
  • *****
  • Posts: 1253
    • formatio reticularis
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #2 on: June 14, 2020, 07:19:13 pm »
It's shouldn't affect FPC too much. FPC already supports AArch64 for iOS. Supporting it also for macOS shouldn't be difficult (once I have a machine to test/run it on).

That sounds great.

BTW, I don't think that they will completely abandon the Intel platform, at least in the short term. Rather, I would expect that they present an ARM-based MacBook as a missig link between the iPad and the professional Macs. If this is successfull they might consider a complete shift. But let's be surprised...
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 3.7.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #3 on: June 15, 2020, 03:47:18 am »
Rather, I would expect that they present an ARM-based MacBook as a missig link between the iPad and the professional Macs.
They have already done it with Mac Catalyst

PierceNg

  • Sr. Member
  • ****
  • Posts: 401
    • SamadhiWeb
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #4 on: June 16, 2020, 03:43:29 am »
It's shouldn't affect FPC too much. FPC already supports AArch64 for iOS. Supporting it also for macOS shouldn't be difficult (once I have a machine to test/run it on).

Does this mean FPC already runs on the PineBook Pro, which is a US$200 64-bit ARM Linux laptop?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5959
  • Compiler Developer
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #5 on: June 16, 2020, 10:03:18 am »
Does this mean FPC already runs on the PineBook Pro, which is a US$200 64-bit ARM Linux laptop?

With a correctly compiled FPC this should work. The 3.2.0RC1 contains a release for aarch64-linux that you can try. And Trunk has experimental support for aarch64-win64 as well.

dieselnutjob

  • Full Member
  • ***
  • Posts: 224
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #6 on: June 16, 2020, 05:37:45 pm »
by the way folks I'm still working on fpgui for native Cocoa as well.

PierceNg

  • Sr. Member
  • ****
  • Posts: 401
    • SamadhiWeb
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #7 on: June 17, 2020, 01:46:00 am »
Does this mean FPC already runs on the PineBook Pro, which is a US$200 64-bit ARM Linux laptop?

With a correctly compiled FPC this should work. The 3.2.0RC1 contains a release for aarch64-linux that you can try. And Trunk has experimental support for aarch64-win64 as well.

Cool, thanks. I've haven't pulled the trigger on the laptop yet. Mighty tempted.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8798
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #8 on: June 21, 2020, 09:06:46 am »
Rather, I would expect that they present an ARM-based MacBook as a missig link between the iPad and the professional Macs. If this is successfull they might consider a complete shift. But let's be surprised...
Their classic way is to introduce fat binaries, which could be actual fat binaries like in the past or a folder disguising as an app like today's app bundle. I'm taking my bet on the 2nd approach, it's the cheapest in implementation. Lazarus/FPC won't have difficulties either implementing it.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #9 on: June 21, 2020, 08:36:10 pm »
It's shouldn't affect FPC too much. FPC already supports AArch64 for iOS. Supporting it also for macOS shouldn't be difficult (once I have a machine to test/run it on).
shouldn't it introduce a conflict with "arm-darwin" target?
right now "arm-darwin" is arm-ios
while with the new ARM CPU, should "arm-darwin" become arm-macosx?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1070
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #10 on: June 21, 2020, 09:51:39 pm »
Yes, we'll have to add a new target. I'll probably change to using ios for the ios targets (similar to how we already have iphonesim for iPhoneSimulator), and keep using darwin for all Mac OS X/OS X/macOS targets.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #11 on: June 21, 2020, 10:46:32 pm »
Yes, we'll have to add a new target. I'll probably change to using ios for the ios targets (similar to how we already have iphonesim for iPhoneSimulator), and keep using darwin for all Mac OS X/OS X/macOS targets.
That seems to be consistent with the entire family of targets Apple introduced: watchOS, tvOS and MacCatalyst.
same CPU (for catalyst it's x86_64), different OS

jwdietrich

  • Hero Member
  • *****
  • Posts: 1253
    • formatio reticularis
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #12 on: June 22, 2020, 08:51:09 pm »
It seems to be true. While continuing to sell (and even introduce) new Intel-based Macs they will present a series of ARM-based machines with impressing performance. See https://developer.apple.com.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 3.7.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #13 on: June 23, 2020, 03:30:30 am »
Yep, transitioning to all Apple Silicon for Mac computers within two years. Rosetta 2 to run Intel binaries on Apple Silicon.

Developers can apply to be selected to pay $US 500 to obtain an Apple Silicon-based (A12Z processor + 16G + 512G SSD) Mac mini for development.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Apple leaving Intel for ARM - how will it affect Lazarus/FPC/Cocoa?
« Reply #14 on: June 23, 2020, 05:10:17 am »
Fat binaries and good old Rosetta

Developers can apply to be selected to pay $US 500 to obtain an Apple Silicon-based (A12Z processor + 16G + 512G SSD) Mac mini for development.
from here:
Quote
The program provides access to documentation, forums support, beta versions of macOS Big Sur and Xcode 12, and includes the limited use of a DTK, which will enable developers to build and test their Universal 2 apps. The DTK, which must be returned to Apple at the end of the program, consists of a Mac mini with Apple’s A12Z Bionic SoC inside and desktop specs, including 16GB of memory, a 512GB SSD, and a variety of Mac I/O ports. Developers can apply to the program at developer.apple.com, and the total cost of the program is $500.
« Last Edit: June 23, 2020, 05:13:01 am by skalogryz »

 

TinyPortal © 2005-2018