tizoc / shen-scheme

Shen/Scheme implementation
Other
100 stars 8 forks source link

Question on shen-scheme on the Mac M1 #19

Open doug719 opened 3 years ago

doug719 commented 3 years ago

Hello Bruno. This is a question, not a problem report. If you have an email address where I can ask questions (instead of this issues report), please let me know. I now have a mini mac m1, which uses the Arm 64 bit instruction set. It will execute x86_64 code thru a translation. On linux I use a AMD 5600, and the single processor speed is about the same as that of a Mac m1. Shen-scheme on the Mac is X86_64, and runs about 2.5 times longer than the code on linux X86_64 native. Are there any plans to compile Shen-scheme on the M1 instruction set? Regards -- Doug I tried brew install but the compile failed.

tizoc commented 3 years ago

Hello @doug719. Shen/Scheme supports whatever Chez supports, but Chez doesn't support ARM64 yet. Once that happens, then Shen/Scheme will also support it.

NHALX commented 1 year ago

@doug719 shen-scheme works natively on the racket fork of Chez on Apple M1 and the performance is quite good. https://github.com/racket/racket/tree/master/racket/src/ChezScheme

sebeaumont commented 7 months ago

I have a chez-scheme 9.9.9 multithreaded which works fine on the m1 (arrch64) as a backend for Idris -- is there a way to compile the shen-scheme using this scheme?

tizoc commented 7 months ago

I see Chez 10.0.0 got released and one of the changes is:

AArch64 (64-bit Arm), RV64G (64-bit RISC-V), and LoongArch64 architectures are supported

I just pushed an updated Makefile that uses Chez 10.0.0 to the chez branch. Until I complete those changes so that it works for Windows too and make a new release, you can use that branch to build Shen/Scheme for those Apple chips in macOS version..