# Will Julia support Flang Fortran?

**URL:** https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293
**Category:** General Usage
**Tags:** fortran
**Created:** [October 13, 2020, 11:38am UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293 "2020-10-13T11:38:34Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [October 13, 2020, 11:38am UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/1 "2020-10-13T11:38:34Z")

</div>

Just released:  
[https://github.com/flang-compiler/flang/wiki](https://github.com/flang-compiler/flang/wiki)

Any comments?

---

<div class="post-metadata">

### Author: ![Keno](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keno/32/285_2.png) [@Keno](https://discourse.julialang.org/u/Keno)
#### Post date: [October 13, 2020, 11:41am UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/2 "2020-10-13T11:41:47Z")

</div>

It’s not capable of generating binaries yet. Once it matures, it might be a nice way to get fortran, in particular in a world where we want to also build dependencies as LLVM IR.

---

<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: [October 13, 2020, 12:14pm UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/3 "2020-10-13T12:14:44Z")

</div>

I assume you’re referring to [https://github.com/llvm/llvm-project/tree/002968a320463237f0ccea754a7482b229e34cf1/flang](https://github.com/llvm/llvm-project/tree/002968a320463237f0ccea754a7482b229e34cf1/flang) ([release notes for the version in LLVM 11](https://releases.llvm.org/11.0.0/tools/flang/docs/ReleaseNotes.html)) which is a completely different project, albeit they confusingly share the same name?

---

<div class="post-metadata">

### Author: ![traktofon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/traktofon/32/591_2.png) [@traktofon](https://discourse.julialang.org/u/traktofon)
#### Post date: [October 13, 2020, 1:37pm UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/4 "2020-10-13T13:37:30Z")

</div>

Not sure if they are “completely” different projects – the flang-compiler project lists two compilers (or frontends), “flang” based on the old PGI compiler, and “f18” which is a frontend rewrite from scratch. The [statement in the f18 repository](https://github.com/flang-compiler/f18) says that f18 has been migrated into the llvm repo, and in the process got (indeed confusingly) renamed to flang.

---

<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: [October 13, 2020, 2:05pm UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/5 "2020-10-13T14:05:10Z")

</div>

Not sure where you’re looking but [Home · flang-compiler/flang Wiki · GitHub](https://github.com/flang-compiler/flang/wiki) says

> Currently there are two active projects associated with Fortran and LLVM under the Flang umbrella:
> 
> - the currently released [https://github.com/flang-compiler/flang](https://github.com/flang-compiler/flang/wiki/Flang) compiler
> - the completely new [https://github.com/flang-compiler/f18](https://github.com/flang-compiler/flang/wiki/F18) compiler, a new front-end which will replace the current Flang.
> 
> In the short term, the current Flang is a production quality Fortran compiler supporting Fortran 2003, some features from Fortran 2008, and OpenMP.
> 
> We believe that starting in 2020, F18 will replace Flang as a complete implementation of Fortran 2018.
> 
> […]
> 
> The [[GitHub - flang-compiler/f18: F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler](https://github.com/flang-compiler/f18)](F18 front-end) is being written from scratch using modern C++. It will be closely aligned with LLVM best practices and written in the style of LLVM and clang.

And quoting from [https://github.com/llvm/llvm-project/blob/002968a320463237f0ccea754a7482b229e34cf1/flang/README.md](https://github.com/llvm/llvm-project/blob/002968a320463237f0ccea754a7482b229e34cf1/flang/README.md)

> It started off as the f18 project ([GitHub - flang-compiler/f18: F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler](https://github.com/flang-compiler/f18)) with an aim to replace the previous flang project ([GitHub - flang-compiler/flang: Flang is a Fortran language front-end designed for integration with LLVM.](https://github.com/flang-compiler/flang)) and address its various deficiencies.

Same goal, same name, but they look independent efforts.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [October 13, 2020, 3:54pm UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/6 "2020-10-13T15:54:47Z")

</div>

So which of them could be integrated nicely with Julia, perhaps with a package similar to Cxx.jl ?

---

<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: [October 13, 2020, 4:07pm UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293/7 "2020-10-13T16:07:45Z")

</div>

The flang that now lives in llvm-project, the one of which you probably saw the announcement yesterday
