CreRecombinase 1 day ago

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.

3
t-kalinowski 1 day ago

Or, don't even write the fortran manually, just transpile the R function to fortran: https://github.com/t-kalinowski/quickr

_Wintermute 1 day ago

R kinda sucks at anything that isn't a dataframe though.

okanat 1 day ago

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.

dismalaf 1 day ago

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.