Re:I Don't Like NumPy
by CreRecombinase on Thursday May 15, 2025 @03:05PM
(#43998231)
It’s kind of wild how much work really smart people will do to get python to act like Fortran. This is why R is such a great language IMO. Get your data read and arrays in order in dynamic, scheme-like language, then just switch to Fortran and write actual Fortran like an adult.
[ Parent
| on HN ]
Re:I Don't Like NumPy
by t-kalinowski on Thursday May 15, 2025 @03:09PM
(#43998270)
Or, don't even write the fortran manually, just transpile the R function to fortran: https://github.com/t-kalinowski/quickr
This. Writing Fortran is easy as hell nowadays.
But yeah, I learned Fortran to use with R lol. And it is nice. Such easy interop.
Re:I Don't Like NumPy
by _Wintermute on Thursday May 15, 2025 @04:42PM
(#43999138)
R kinda sucks at anything that isn't a dataframe though.
R sucks for any real programming tasks that you don't hardcode every single thing. It sucks at loading modules from your own project. It sucks to find the path of the script you're executing.
Bacially everything is stateful in R. You call standard library functions to install third party libraries ffs. And that operation can invoke your C compiler.
Putting R and a repo in a docker container to run it in a pipeline where nothing is hardcoded (unlike our datascience guy's workspace) was the worst nightmare we had to deal with.