https://developer.r-project.org/Blog/public/2020/11/02/will-r-work-on-apple-silicon/
For those not familiar with the internals of R, much of the discussion is about ensuring that the missing data value, NA, for floating point arrays is propagated in some computations. The NA value is one of the NaN patterns and it is important in R that the same pattern be returned from a calculation like 1.0 * NA
.
That part of the discussion is not relevant to Julia compilation but other parts will be of interest.
5 Likes
Fascinating read. I would have thought that all platforms under the sun would have a Fortran 90 compiler (otherwise, the engineers would be ashamed to release the chip), but apparently it is now too much of a niche application for Apple to prioritize.
1 Like
One of the first people I saw chastising Apple about the lack of a Fortran compiler was @StefanKarpinski in, I believe, a tweet. I went to his twitter feed to see if I could find the tweet but got too distracted in reading his other tweets and retweets.
4 Likes
It was this tweet:
Which did lead to a productive discussion with some folks at Apple and progress on this issue, ultimately leading to gfortran being ported enough to build Julia, R and NumPy.
6 Likes
All the help they’ve provided to this effort is answering some questions:
https://twitter.com/fxcoudert/status/1302569403536547840
GCC is not a project they want to support (part of GNU, GPL-licensed…). Interestingly enough there is now a Fortran front-end for LLVM called Flang, but currently it can only parse the source code, it still can’t translate it to LLVM IR. It took less to port GCC to the new architecture than to make Flang actually work.
3 Likes