stdlib VS fpm

Compare stdlib vs fpm and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
stdlib fpm
14 12
975 812
3.8% 3.9%
9.6 8.8
3 days ago 18 days ago
Fortran Fortran
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

stdlib

Posts with mentions or reviews of stdlib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
    8 projects | news.ycombinator.com | 18 May 2023
    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?
    2 projects | /r/fortran | 25 Mar 2023
    They're currently working on a Fortran standard library and it's pretty far along: https://github.com/fortran-lang/stdlib
  • Why Fortran?
    2 projects | news.ycombinator.com | 6 Nov 2022
    I also like FPM and the ecosystem. In case anyone is just getting started with Fortran, definitely checkout the Fortran Standard Library project:

    https://github.com/fortran-lang/stdlib

  • return value of get_command_argument() and allocatable 1D array
    2 projects | /r/fortran | 1 Nov 2022
    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
    2 projects | /r/u_Pure-Ability-2363 | 19 Oct 2022
  • A Modern Fortran Scientific Programming Ecosystem
    4 projects | news.ycombinator.com | 13 Oct 2022
    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.
  • "The State of Fortran" -- accepted for publication in Computing in Science and Engineering
    1 project | /r/fortran | 1 Apr 2022
    FYPP syntax is ugly, but is the best tool available for now to build the Fortran stdlib. People do not have to use the FYPP version of stdlib. There is also a clean post-processed version of the stdlib completely free of FYPP or any other FPP, which looks great: https://github.com/fortran-lang/stdlib/tree/stdlib-fpm
  • Cube-root and my dissent into madness
    1 project | /r/fortran | 8 Mar 2022
    What if we try to evaluate this using standard-compliant Fortran? Interestingly, this is an open issue in the fortran-lang/stdlib project. f90 real(8) function f(x) real(8) :: x f = x**(1d0/3d0) endfunction I know real(8) isn't standard compliant but fixing that for this tiny example would be a headache. Then, compiling with -O3 gets us f_: movsd xmm1, QWORD PTR .LC0[rip] movsd xmm0, QWORD PTR [rdi] jmp pow .LC0: .long 1431655765 .long 1070945621
  • Learning Functional programming. Which languages to learn.
    1 project | /r/functionalprogramming | 25 Sep 2021
    learn Fortran (supports both FP and OO, but when we say Fortran we think FP mostly). And the best way to learn is contributing. You can checkout their GitHub org (Fortran-lang) and you might be astonished to see that you too can make contributions there. But you should be ready to learn and search things on your own as well. They have a discourse group too, if you get stuck somewhere. Good luck. At the moment of writing this post they have a good first issue (Greatest Common Divisor) on their stdlib repo.
  • Fortran Web Framework
    2 projects | news.ycombinator.com | 13 Sep 2021
    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.

fpm

Posts with mentions or reviews of fpm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-24.
  • Fortran Package Manager (FPM): Package Manager and Build System for Fortran
    1 project | news.ycombinator.com | 15 Sep 2023
  • Fortran Package Manager
    1 project | news.ycombinator.com | 29 Aug 2023
    1 project | /r/patient_hackernews | 29 Apr 2021
  • How do I use fortran github package.
    4 projects | /r/fortran | 24 May 2023
    Make sure you have the latest fpm binary installed somewhere so that your $PATH can see it: curl -o ~/.local/bin/fpm -L https://github.com/fortran-lang/fpm/releases/download/v0.8.2/fpm-0.8.2-linux-x86_64 && chmod 0755 ~/.local/bin/fpm
  • SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
    8 projects | news.ycombinator.com | 18 May 2023
    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.

  • The Skills Gap for Fortran Looms Large in HPC
    1 project | news.ycombinator.com | 3 May 2023
    Anyway, first release of Fortran Package Manager was in November 2020: https://github.com/fortran-lang/fpm/releases/tag/v0.1.0 - more recently than I expected.
  • [RANT] I really, really wish working with compiled languages is as easy as working with Python.
    7 projects | /r/learnprogramming | 26 Apr 2022
    There is actually a Fortran Package Manager that will hopefully make things easier in the future. It's quite new, so it might not be entirely mature yet.
  • Toward Modern Fortran Tooling and a Thriving Developer Community
    2 projects | news.ycombinator.com | 16 Sep 2021
    Author here, so I'm biased toward Fortran, though I've been enjoying learning Rust as well. I think there are a few reasons.

    First, Rust's multidimensional arrays are either limited and/or difficult to use. Fast, flexible, and ergonomic multidimensional arrays and arithmetic are essential for HPC. They are possible with Rust, but my two favorite Rust books not mentioning them suggests to me that they're not the focus of the language. This may or may not change in the future.

    Second, Rust may be too complex to learn for scientists who aren't paid to write software but to do research. Fortran is opposite--multidimensional whole-array arithmetic looks like you would write it as math on a whiteboard. While scientists can sure learn to program Rust effectively, I think most scientists don't think like Rust, but they do think like Fortran. For somebody not familiar with Fortran but familiar with Python, I'd say Fortran very much feels like NumPy.

    Third, such ecosystem would be built in Rust from scratch. In Fortran, most of the value is already there, but needs to be made more accessible with better and more modern tooling. For example, Fortran's fpm (https://github.com/fortran-lang/fpm) is largely modeled after Rust's Cargo because we recognize the importance of good user experience when it comes to building and packaging software. With the recent Fortran-lang efforts, we study many programming language ecosystems and communities (e.g. Python, Julia, Rust, etc.) to find what could work best for modern Fortran tooling.

  • Fortran Web Framework
    2 projects | news.ycombinator.com | 13 Sep 2021
    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.

  • Assembly of course!
    1 project | /r/ProgrammerHumor | 30 Apr 2021
    FPM has entered the chat https://github.com/fortran-lang/fpm

What are some alternatives?

When comparing stdlib and fpm you can also consider the following projects:

Fortran-code-on-GitHub - Directory of Fortran codes on GitHub, arranged by topic

json-fortran - A Modern Fortran JSON API

MYSTRAN - MYSTRAN is a general purpose finite element analysis solver

OpenCoarrays - A parallel application binary interface for Fortran 2018 compilers.

fortran-lang.org - (deprecated) Fortran website

NASTRAN-95

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.