this post was submitted on 15 Feb 2025
393 points (98.8% liked)

Programmer Humor

33509 readers
335 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] abraham_linksys 4 points 3 days ago (3 children)
[–] weker01 7 points 3 days ago

Numpy can use BLAS packages that are partly written in Fortran

[–] DannyBoy 14 points 3 days ago (1 children)

What does it say under the Languages section for that repo?

[–] abraham_linksys 8 points 3 days ago (1 children)

That I need to quit posting drunk because I can't read obvious shit

[–] DannyBoy 4 points 3 days ago

Hope you're feeling okay this morning Mr. Linksys, I love your username!

[–] [email protected] 10 points 3 days ago (1 children)

It provides:

  • a powerful N-dimensional array object
  • sophisticated (broadcasting) functions
  • tools for integrating C/C++ and Fortran code
  • useful linear algebra, Fourier transform, and random number capabilities

Not according to the repo I sourced from your message.

[–] [email protected] 4 points 3 days ago* (last edited 3 days ago) (1 children)

“Tools for integrating” is not “written in”, try again

“* A Fortran compiler is needed only for running the f2py tests. The instructions below include a Fortran compiler, however you can safely leave it out.” from https://numpy.org/devdocs/building/index.html#building-from-source

[–] [email protected] 3 points 2 days ago

Yeah look that was the front page of the repo talking about how it has C/C++ and Fortran code, sorry for not reading the docs and finding out that yes they still use C/C++ and Fortran code in the form of OpenBLAS which is a dependency... f2py is just a method of doing the following:

F2PY facilitates creating/building native Python C/API extension modules that make it possible

  • to call Fortran 77/90/95 external subroutines and >Fortran 90/95 module subroutines as well as C functions;

  • to access Fortran 77 COMMON blocks and Fortran 90/95 module data, including allocatable arrays

from Python.

Correct me if I'm wrong here but if you're implementing an api for one programming language to talk to another then that means you have 2 programm-

I wake up as a lizard. The meaning of kernels, subroutines and programming languages is already fading. I realise the rock I am lying on is slightly in a shadow and move into the sun. Might eat a bug later...