Live data from Hacker News

First official release of LLVM Flang

blog.llvm.org

21–28 of 28 posts

Re: First official release of LLVM Flang

#21
post #9

How compatible is it with the current code bases developped under proprietary compilers ?

My approach throughout was to maximize portability of existing code to this new compiler. The list of extensions that are supported is quite long (https://flang.llvm.org/docs/Extensions.html), and the general policy is to support anything that people need so long as the feature is well defined and portable among compilers that support it.

Re: First official release of LLVM Flang

#22
post #10

> Whilst many alternative programming languages have come and gone, it [Fortran] has regained its popularity for writing high performance codes. I don't understand why sometimes people pluralize "code". It sounds a bit silly but maybe it's just me.

I'm seeing it here for the first time, and from multiple people. Maybe it's specific to the Fortran community?

I think "codes" is peculiar to what is now called HPC, where it's been common since at least the 70's. It's not specific to Fortran; there are C/C++ HPC codes too.

Re: First official release of LLVM Flang

#23
post #2

There doesn't appear to be a link to the release notes, it would be nice to know what are the current limitations.

Language-wise, it's all of F'2018 less coarrays and "LEN" derived type parameters, plus a pile of portable &/or popular language extensions.

Re: First official release of LLVM Flang

#24
post #6

> Whilst many alternative programming languages have come and gone, it [Fortran] has regained its popularity for writing high performance codes. I don't understand why sometimes people pluralize "code". It sounds a bit silly but maybe it's just me.

it's a fairly common usage in numeric computing. If you read, for example, the wikipedia entries for "computational fluid dynamics" you'll see that they consistently speak of "codes" when referring to programs. https://en.wikipedia.org/wiki/Computational_fluid_dynamics

Same for computational Chemistry, computational Physics (solid state, neutronics, astrophysics), etc.

Re: First official release of LLVM Flang

#25
post #16
post #4

Earlier quoted context omitted.

Q from out of the loop: what are you referring to? and if you could enlighten me how that then is a problem?

Not the OP, but I'll take a stab at it. In C99, C added the 'restrict' qualifier for pointers, which would make function arguments marked with it behave a bit like procedure arguments in Fortran. Idea being to allow the compiler to optimize more aggressively. Not specifically about making C more like Fortran, but there's been a lot of work over the years clarifying what compilers can and cannot assume. More recently,…

thanks for clarifying. this makes more sense than the unspecific Fortran bashing.

and as long as C gets features you may but don't have to use, so what?

Re: First official release of LLVM Flang

#26
post #2

There doesn't appear to be a link to the release notes, it would be nice to know what are the current limitations.

Language-wise, it's all of F'2018 less coarrays and "LEN" derived type parameters, plus a pile of portable &/or popular language extensions.

Also, it would be good to know how well it handles older codes of the f77/g77 era (as gfortran is not always well behaved on those).

Re: First official release of LLVM Flang

#27

Earlier quoted context omitted.

Language-wise, it's all of F'2018 less coarrays and "LEN" derived type parameters, plus a pile of portable &/or popular language extensions.

Also, it would be good to know how well it handles older codes of the f77/g77 era (as gfortran is not always well behaved on those).

Really well, actually. Unless you have a pre-'77 code that requires each DO loop execute at least one iteration, you should be fine.
Post reply on HN