stdlib VS SciPy

Compare stdlib vs SciPy and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
stdlib SciPy
14 50
975 12,431
3.8% 1.7%
9.6 9.9
3 days ago 6 days ago
Fortran Python
MIT License BSD 3-clause "New" or "Revised" 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.

SciPy

Posts with mentions or reviews of SciPy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-04.
  • What Is a Schur Decomposition?
    2 projects | news.ycombinator.com | 4 Mar 2024
    I guess it is a rite of passage to rewrite it. I'm doing it for SciPy too together with Propack in [1]. Somebody already mentioned your repo. Thank you for your efforts.

    [1]: https://github.com/scipy/scipy/issues/18566

  • Fortran codes are causing problems
    2 projects | /r/rstats | 13 Sep 2023
    Fortran codes have caused many problems for the Python package Scipy, and some of them are now being rewritten in C: e.g., https://github.com/scipy/scipy/pull/19121. Not only does R have many Fortran codes, there are also many R packages using Fortran codes: https://github.com/r-devel/r-svn, https://github.com/cran?q=&type=&language=fortran&sort=. Modern Fortran is a fine language but most legacy Fortran codes use the F77 style. When I update the R package quantreg, which uses many Fortran codes, I get a lot of warning messages. Not sure how the Fortran codes in the R ecosystem will be dealt with in the future, but they recently caused an issue in R due to the lack of compiler support for Fortran: https://blog.r-project.org/2023/08/23/will-r-work-on-64-bit-arm-windows/index.html. Some renowned packages like glmnet already have their Fortran codes rewritten in C/C++: https://cran.r-project.org/web/packages/glmnet/news/news.html
  • [D] Which BLAS library to choose for apple silicon?
    2 projects | /r/MachineLearning | 24 May 2023
    There are several lessons here: a) vanilla conda-forge numpy and scipy versions come with openblas, and it works pretty well, b) do not use netlib unless your matrices are small and you need to do a lot of SVDs, or idek why c) Apple's veclib/accelerate is super fast, but it is also numerically unstable. So much so that the scipy's devs dropped any support of it back in 2018. Like dang. That said, they are apparently are bring it back in, since the 13.3 release of macOS Ventura saw some major improvements in accelerate performance.
  • SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
    8 projects | news.ycombinator.com | 18 May 2023
    First, if you read through that scipy issue (https://github.com/scipy/scipy/issues/18118 ) the author was willing and able to relicense PRIMA under a 3-clause BSD license which is perfectly acceptable for scipy.

    For the numerical recipes reference, there is a mention that scipy uses a slightly improved version of Powell's algorithm that is originally due to Forman Acton and presumably published in his popular book on numerical analysis, and that also happens to be described & included in numerical recipes. That is, unless the code scipy uses is copied from numerical recipes, which I presume it isn't, NR having the same algorithm doesn't mean that every other independent implementation of that algorithm falls under NR copyright.

  • numerically evaluating wavelets?
    1 project | /r/math | 3 May 2023
  • Fortran in SciPy: Get rid of linalg.interpolative Fortran code
    1 project | news.ycombinator.com | 27 Apr 2023
  • Optimization Without Using Derivatives
    2 projects | news.ycombinator.com | 21 Apr 2023
    Reading the discussions under a previous thread titled "More Descent, Less Gradient"( https://news.ycombinator.com/item?id=23004026 ), I guess people might be interested in PRIMA ( www.libprima.net ), which provides the reference implementation for Powell's renowned gradient/derivative-free (zeroth-order) optimization methods, namely COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA.

    PRIMA solves general nonlinear optimizaton problems without using derivatives. It implements Powell's solvers in modern Fortran, compling with the Fortran 2008 standard. The implementation is faithful, in the sense of being mathmatically equivalent to Powell's Fortran 77 implementation, but with a better numerical performance. In contrast to the 7939 lines of Fortran 77 code with 244 GOTOs, the new implementation is structured and modularized.

    There is a discussion to include the PRIMA solvers into SciPy ( https://github.com/scipy/scipy/issues/18118 ), replacing the buggy and unmaintained Fortran 77 version of COBYLA, and making the other four solvers available to all SciPy users.

  • What can I contribute to SciPy (or other) with my pure math skill? Iā€™m pen and paper mathematician
    5 projects | /r/Python | 17 Apr 2023
  • Emerging Technologies: Rust in HPC
    3 projects | /r/rust | 24 Mar 2023
    if that makes your eyes bleed, what do you think about this? https://github.com/scipy/scipy/blob/main/scipy/special/specfun/specfun.f (heh)
  • Python
    3 projects | /r/ProgrammerHumor | 29 Dec 2022

What are some alternatives?

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

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

SymPy - A computer algebra system written in pure Python

fpm - Fortran Package Manager (fpm)

statsmodels - Statsmodels: statistical modeling and econometrics in Python

MYSTRAN - MYSTRAN is a general purpose finite element analysis solver

NumPy - The fundamental package for scientific computing with Python.

fortran-lang.org - (deprecated) Fortran website

Pandas - Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

neural-fortran - A parallel framework for deep learning

astropy - Astronomy and astrophysics core library

pyplot-fortran - For generating plots from Fortran using Python's matplotlib.pyplot šŸ“ˆ

or-tools - Google's Operations Research tools: