Live data from Hacker News

Fortran Package Manager

github.com

51–60 of 73 posts

Re: Fortran Package Manager

#51
post #33

I rely on FPM the Effing Package manager[0]. Occasionally, I run into php-fpm [1]. There's an unfortunate naming collision, at least with the first. [0]: https://github.com/jordansissel/fpm [1]: https://www.php.net/manual/en/install.fpm.php

We asked for and received a blessing from Jordan: https://github.com/fortran-lang/fpm/issues/90

Re: Fortran Package Manager

#52
post #4

Fortran has a lot of interesting current compiler work leveraging MLIR, a subproject of LLVM: Flang [0] and CIL for C/C++/Fortran [1]. It seems like Fortran tooling is making somewhat of a comeback. [0]: https://github.com/llvm/llvm-project/tree/main/flang [1]: https://llvm.org/devmtg/2020-09/slides/CIL_Common_MLIR_Abstr...

There is also LFortran, an interactive Fortran compiler:

https://lfortran.org/

Which has multiple backends, besides the default LLVM one, it also has a C++ backend (to translate Fortran projects to a readable C++), and once MLIR matures, we'll add an MLIR backend also.

(I am the original author.)

Re: Fortran Package Manager

#53
post #6

This is... built using Fortran, NICE. Writing a TOML parser in Fortran is precisely my definition of FUN.

It sounded like a crazy idea at first, but then we discussed it and realized this is exactly what we should do. It makes perfect sense.

Re: Fortran Package Manager

#54
post #14
post #6

This is... built using Fortran, NICE. Writing a TOML parser in Fortran is precisely my definition of FUN.

And it was built in Haskell in the first version. https://github.com/fortran-lang/fpm/pull/420

The first version was actually in Rust, then Haskell and finally in Fortran.

Re: Fortran Package Manager

#55

This is really cool. There are definitely problems with security when it comes to package managers, but I think it has become apparent that having a dedicated package manager for your language is almost as important as the language features your language offers. As a side note. I've never used Fortran, but I see it around from time to time (R & Python packages that have fortran dependencies). Is Fortran seeing a bit…

Matrix Fortran code can be faster (due to more information for the compiler)

Re: Fortran Package Manager

#56

This is really cool. There are definitely problems with security when it comes to package managers, but I think it has become apparent that having a dedicated package manager for your language is almost as important as the language features your language offers. As a side note. I've never used Fortran, but I see it around from time to time (R & Python packages that have fortran dependencies). Is Fortran seeing a bit…

It seems like there's a small resurgence. You'd use fortan over those other languages for scientific computing. It's built for number crunching. As so it has some language features that help, has been optimized for it (see the n-body problem benchmark), and a lot of the number curnching libraries are written in it.

One example of a project that I've used (but didn't work on) is GEMINI which is a newish prokect written in modern fortan. https://github.com/gemini3d/gemini3d

Re: Fortran Package Manager

#57
Is there any value in learning Fortran today, regardless if you work in a domain where it’s a thing or now?

From seeing a lot of job postings in the sort of domains one would expect it to be used(scientific stuff and similar “academic” and research fields) it seems like Python and maybe Julia has taken over for most stuff and Fortran requirements are written as if it’s a “nice to have” for any legacy maintenance.

Re: Fortran Package Manager

#58

Is there any value in learning Fortran today, regardless if you work in a domain where it’s a thing or now? From seeing a lot of job postings in the sort of domains one would expect it to be used(scientific stuff and similar “academic” and research fields) it seems like Python and maybe Julia has taken over for most stuff and Fortran requirements are written as if it’s a “nice to have” for any legacy maintenance.

A bunch of scientific libraries in Python and Julia are wrappers for really fast stuff made in Fortran, C/C++ so...

Re: Fortran Package Manager

#59

Is there any value in learning Fortran today, regardless if you work in a domain where it’s a thing or now? From seeing a lot of job postings in the sort of domains one would expect it to be used(scientific stuff and similar “academic” and research fields) it seems like Python and maybe Julia has taken over for most stuff and Fortran requirements are written as if it’s a “nice to have” for any legacy maintenance.

If you work in a 'number crunching' domain it's worth learning enough Fortran to be able to read it. You'll at some point probably have to look at some Fortran code and try understand how it works (or doesn't work).

However the chances that you'll be called upon to write new Fortran is tiny.

Re: Fortran Package Manager

#60

This is really cool. There are definitely problems with security when it comes to package managers, but I think it has become apparent that having a dedicated package manager for your language is almost as important as the language features your language offers. As a side note. I've never used Fortran, but I see it around from time to time (R & Python packages that have fortran dependencies). Is Fortran seeing a bit…

It seems like there's a small resurgence. You'd use fortan over those other languages for scientific computing. It's built for number crunching. As so it has some language features that help, has been optimized for it (see the n-body problem benchmark), and a lot of the number curnching libraries are written in it. One example of a project that I've used (but didn't work on) is GEMINI which is a newish prokect writte…

huh, ifort is slower than I remember compared other langs/impls: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Post reply on HN