Announcement

Collapse
No announcement yet.

FLANG Fortran Compiler Preparing To Land In The LLVM Source Tree

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AKing
    replied
    It is used in new projects, in particular, in the world of Monte Carlo simulations, basically wherever there is heavy math involved.

    Leave a comment:


  • Vistaus
    replied
    Originally posted by Marc Driftmeyer View Post

    Fortran has better precision for Numerical Analysis and more than C.
    Funny. As the Apple fanboy that you normally are, I thought you would drop a comment about great Swift is. Refreshing to see a non-Apple comment from you

    Leave a comment:


  • wizard69
    replied
    This is good news as it fleshes out the LLVM project.

    The use of FLang has me hoping the trend continues into the future. SLang would be good for Swift once it migrated back into mainstream LLVM. RLang would work for Rust. PLang for a pascal if somebody ever does that. The more that I think about it the more I like.

    Leave a comment:


  • sabian2008
    replied
    Originally posted by Marc Driftmeyer View Post

    Fortran has better precision for Numerical Analysis and more than C.
    Care to expand on this? I don't see any way in which this can be true, precision is defined by the number of bits used for representation and the operations performed with them (and their order).

    Originally posted by Elv13 View Post
    edit: Legend has it that it's faster than C because of aliasing. However, that has not been true since the 80's.
    Aliasing can be prevented in C, but is definitely cumbersome. I have read that it is easier for the compiler to produce proper SIMD assembly in Fortran than in C. Inlining it is easier to decide to.

    Another advantage of Fortran (in lowercase for the last 30 years) is that math is legible and easy to write.

    It all comes down to what you are doing. If you are writing 95% math, 5% general purpose programming, you will be okay with Fortran (and perhaps some bindings to C/C++ libs for GP stuff).
    If you are writing 95% general purpose and 5% math, you will be better with C/C++ and eventually if you have a very strong motive you can bind to Fortran or inline assembly yourself.

    Leave a comment:


  • Marc Driftmeyer
    replied
    Originally posted by Elv13 View Post

    New code is being written in FORTRAN, but less and less. However that's irrelevant. FORTRAN is used in simulations on literally all of the top super computers. Some of those codebase have been evolving for half a century and are not going away, ever. Many of those projects are funded by the military and/or UN/EU and/or universities backed with serious funding. So tl;dr;, they have unlimited (other people) money and making new compilers is worthwhile. *Someone* will pay for it just because it can be done and billed.

    edit: Legend has it that it's faster than C because of aliasing. However, that has not been true since the 80's.
    Fortran has better precision for Numerical Analysis and more than C.

    Leave a comment:


  • Elv13
    replied
    Originally posted by cl333r View Post
    I thought FORTRAN support is only needed to support legacy apps but judging by the support it gets it seems to be thriving, so is it better than C/C++/Java/C#/whatever at something other than supporting legacy FORTRAN code?
    New code is being written in FORTRAN, but less and less. However that's irrelevant. FORTRAN is used in simulations on literally all of the top super computers. Some of those codebase have been evolving for half a century and are not going away, ever. Many of those projects are funded by the military and/or UN/EU and/or universities backed with serious funding. So tl;dr;, they have unlimited (other people) money and making new compilers is worthwhile. *Someone* will pay for it just because it can be done and billed.

    edit: Legend has it that it's faster than C because of aliasing. However, that has not been true since the 80's.

    Leave a comment:


  • cl333r
    replied
    I thought FORTRAN support is only needed to support legacy apps but judging by the support it gets it seems to be thriving, so is it better than C/C++/Java/C#/whatever at something other than supporting legacy FORTRAN code?

    Leave a comment:


  • Meteorhead
    replied
    Would be good to see if MSVC can actually build the source tree. I was keeping an eye out for Flang as a means to compile multiple projects with Fortran components outside compat layers like MinGW or Cygwin. MSVC just simplifies bootstrapping the process, ultimately if it builds with Clang / libstdc++ that's enough.

    Leave a comment:


  • Michael
    replied
    Originally posted by pyler View Post
    Benchmarks ?
    Put it on my TODO list earlier today when seeing it was close to merging, might have out some initial data by next week.

    Leave a comment:


  • pyler
    replied
    Benchmarks ?

    Leave a comment:

Working...
X