fortran-lang.org
DISCONTINUED
stdlib
Our great sponsors
fortran-lang.org | stdlib | |
---|---|---|
16 | 14 | |
126 | 951 | |
- | 3.8% | |
8.1 | 9.2 | |
over 1 year ago | 10 days ago | |
HTML | Fortran | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fortran-lang.org
-
Fortran, not as main language but I find it fascinating
A good starting point: https://fortran-lang.org/
-
Are there any good FORTRAN IDEs on Linux?
Glad you're interested in Fortran. Not sure how old that book is, but take a look at https://fortran-lang.org/ for the latest news and best practices for modern Fortran (for example, there's now a standard library and package manager).
- Modern Fortran logo
- Fortran Newsletter: September 2021
-
Old programming language is suddenly getting more popular again
As I understand it, the TIOBE index is calculated based on search engine rankings. What I believe helped Fortran's ranking was our hard work on its web presence [1] (started April 2020), modern tooling [2] (started December 2019), and community building [3] (started May 2020).
Maybe Intel making its Fortran compilers for Windows and Linux has helped. Fortran Discourse https://fortran-lang.discourse.group/ is a recent, active discussion site, and Fortran-lang https://fortran-lang.org/ is a recent information hub. On GitHub the Fortran Programming Language group https://github.com/fortran-lang is active, creating a Fortran standard library and package manager.
That said, although I'm a Fortran fan and programmer I doubt its relative popularity has truly jumped so much in 1 year.
-
Resurrecting Fortran
Good catch! Thank you:
stdlib
-
SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
Hopefully, the SciPy community can stay open-minded about modern Fortran libraries.
Modern Fortran is quite different from Fortran 77, while being as powerful, if not more.
In addition, there has been a significant community effort on improving and modernising the legacy packages, the ecosystem, and the language itself.
With projects like LFortran (https://lfortran.org/), fpm (https://github.com/fortran-lang/fpm), and stdlib (https://github.com/fortran-lang/stdlib), I believe that Fortran will enjoy prosperity again.
-
Have you used Fortran for anything other than scientific programming? How is it, and how does it compare to other languages?
They're currently working on a Fortran standard library and it's pretty far along: https://github.com/fortran-lang/stdlib
-
Why Fortran?
I also like FPM and the ecosystem. In case anyone is just getting started with Fortran, definitely checkout the Fortran Standard Library project:
-
return value of get_command_argument() and allocatable 1D array
In general, it is necessary to know the length of a string in Fortran before using it. There is no general string with unspecified strength. Some libraries do provide such an object (e.g. Fortran Standard Library, but it is not available in the standard language. To obtain the length of the string in your example, you could use the length option in get_command_argument as integer :: clen character(len=:), allocatable :: string_b call get_command_argument(2, length=clen) allocate(string_b(clen)) string_b = '' call get_command_argument(2, string_b) write(*,*) string_b deallocate(string_b)
- Boost:Boost
-
A Modern Fortran Scientific Programming Ecosystem
If you need to clear memory in the local scope, you need to deallocate a variable explicitly. Otherwise, all Fortran variables are cleared automatically when they go out of scope. One exception are Fortran pointers (different from C pointers) which are discouraged unless really necessary. We have a discussion for a high-level wrapper for files here: https://github.com/fortran-lang/stdlib/issues/14. So, it's in scope we just haven't gotten far with the design and implementation.
-
Fortran Web Framework
I recently started learning Fortran for a lark. It reminds me a lot of R, in some respects. It's clearly a very, very good language for doing the parts of one's job that are very math-centric. But it's equally underwhelming as a general purpose programming language.
Largely, I think, due to gaps in the library ecosystem. But there are other challenges. You can see from the install instructions on the linked page, for example, that Fortran still lacks a package manager.
What's interesting, though, is that that's changing. There are currently serious efforts to give it a "standard" library (https://github.com/fortran-lang/stdlib) and package manager (https://github.com/fortran-lang/fpm).
And I've been watching the new LFortran compiler (https://lfortran.org) with extreme interest.
- Fortran Newsletter: September 2021
-
Any experience with the "stdlib" project?
So, when searching for an unofficial standard library, I came across stdlib.fortran-lang.org. But, looking through the documentation, none of the things I mentioned above are present. It is yet more math, and nothing helping with managing the data that goes into the math.
What are some alternatives?
Fortran-code-on-GitHub - Directory of Fortran codes on GitHub, arranged by topic
fpm - Fortran Package Manager (fpm)
MYSTRAN - MYSTRAN is a general purpose finite element analysis solver
neural-fortran - A parallel framework for deep learning
pyplot-fortran - For generating plots from Fortran using Python's matplotlib.pyplot 📈
prima - PRIMA is a package for solving general nonlinear optimization problems without using derivatives. It provides the reference implementation for Powell's derivative-free optimization methods, i.e., COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA. PRIMA means Reference Implementation for Powell's methods with Modernization and Amelioration, P for Powell.
json-fortran - A Modern Fortran JSON API
focal - A modern Fortran abstraction layer for OpenCL
SELF - Spectral Element Library in Fortran
Bessels.jl - Bessel functions for real arguments and orders
Optimization-Codes-by-ChatGPT - numerical optimization subroutines in Fortran generated by ChatGPT-4
ftl - The Fortran Template Library