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

Programmer Humor

33575 readers
18 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@sh.itjust.works 6 points 1 week ago (3 children)
[–] DannyBoy@sh.itjust.works 14 points 1 week ago (1 children)

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

[–] abraham_linksys@sh.itjust.works 8 points 1 week ago (1 children)

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

[–] DannyBoy@sh.itjust.works 4 points 1 week ago

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

[–] joshcodes@programming.dev 10 points 1 week 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.

[–] 4am@lemm.ee 4 points 1 week ago* (last edited 1 week 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

[–] joshcodes@programming.dev 3 points 6 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...

[–] weker01@sh.itjust.works 7 points 1 week ago

Numpy can use BLAS packages that are partly written in Fortran