haskellings icon indicating copy to clipboard operation
haskellings copied to clipboard

Use GHC 8.10.7 for basic M1 support

Open damien-biasotto opened this issue 3 years ago • 0 comments

I'd like the help of anyone with M1 hardware and Haskell knowledge. I was trying to address issue #63 but in all honesty, I'm out of my depth.

The haskellings binary is successfully compiling, but any commands (but help) will hang, and the memory consumption for the process will start increasing. So far only M1 machines are affected. (It works well on my Linux x64 machine).

EDIT: So it does not hang, but it is hella slow (surely because ghc 8.10.7 support for AArch64 is basic (not native)):

running haskellings version command on M1:

→ time /nix/store/n3cajvdc6iklh5kcqs7ih6brpydnkj6a-haskellings-0.9.1.0/bin/haskellings version                                                                                                    [94c7336]
0.9.1.0
 version  52.08s user 106.05s system 255% cpu 1:01.89 total

running haskellings version command on my linux:

[nix-shell:~/Code/Perso/Haskell/haskellings]$ time /nix/store/wps8lj22p54g1iz1hwb1nldyywxl7vbb-haskellings-0.9.1.0/bin/haskellings version
0.9.1.0

real	0m0.163s
user	0m1.333s
sys	0m1.355s

damien-biasotto avatar Dec 29 '21 04:12 damien-biasotto