ChezScheme
ChezScheme copied to clipboard
Apple Silicon support
This changeset adds an arm64mac machine type, with draft implementations for the define-registers and section 2 define-instructions in arm64.ss. The arm64.ss file is based off of arm32.ss, and so the section 3 assembler is unchanged from arm32.ss. The code included compiles, but (unsurprisingly) fails to bootstrap.
I've left changes in the arm64mac workarea, so the diff is larger than the actual changeset. Changes are primarily in arm64.ss and cpnanopass.ss.
Will this be merged? If so, about how long will it take for this to be merged?
It can't be merged in its current state because it effectively has no assembler and doesn't pass the mats. There's no set timeline for merging it, but I see the mentioned issue that Idris can't be installed on Apple Silicon via Homebrew without it.
Until this PR is complete, is it possible to install the Intel version of Idris via Homebrew and run through Rosetta 2?
Idris can use the racket fork of chez scheme on M1 to run natively.
Despite Apple's current preferred branding, I would strongly advocate for calling the machine type arm64osx (i.e. not arm64mac):
- for consistency with the existing machine types
i3osx,a6osx, andppc32osx; - for consistency with Racket's variant of Chez Scheme, which already supports a machine type called
arm64osx; and - in keeping with, for example, the fact that the machine types for Illumos/OpenIndiana are
i3s2anda6s2, despite the fact that even Sun/Oracle Solaris has long since stopped branding itself as "Solaris 2" (since c. 1998, IIUC?).
Apple Silicon support is included in v9.9.9 merge 47daa9b34016de84fd111801d9d589d15a523abe.
Can you cut off a new release per this issue close?
relates to https://github.com/Homebrew/homebrew-core/pull/152760
Yes, the next release will include this support.