# Blog post on compiling R for new Apple ARM-based computers

**URL:** https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462
**Category:** Offtopic
**Created:** [November 2, 2020, 3:07pm UTC](https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462 "2020-11-02T15:07:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dmbates](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmbates/32/44_2.png) [@dmbates](https://discourse.julialang.org/u/dmbates)
#### Post date: [November 2, 2020, 3:07pm UTC](https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462/1 "2020-11-02T15:07:22Z")

</div>

[https://developer.r-project.org/Blog/public/2020/11/02/will-r-work-on-apple-silicon/](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.

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [November 2, 2020, 3:40pm UTC](https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462/2 "2020-11-02T15:40:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![dmbates](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmbates/32/44_2.png) [@dmbates](https://discourse.julialang.org/u/dmbates)
#### Post date: [November 2, 2020, 4:25pm UTC](https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462/3 "2020-11-02T16:25:19Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [November 2, 2020, 5:03pm UTC](https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462/4 "2020-11-02T17:03:25Z")

</div>

It was this tweet:

> <https://twitter.com/StefanKarpinski/status/1292983717212893191>
>
> Jim Hester @jimhester\_

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.

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [November 2, 2020, 5:07pm UTC](https://discourse.julialang.org/t/blog-post-on-compiling-r-for-new-apple-arm-based-computers/49462/5 "2020-11-02T17:07:47Z")

</div>

> [@Tamas\_Papp](#):
>
> but apparently it is now too much of a niche application for Apple to prioritize.

All the help they’ve provided to this effort is answering some questions:  
[https://twitter.com/fxcoudert/status/1302569403536547840](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.
