other-languages 2024-11-24

Oh ye wise programming crowd, do you have book/podcasts/talks to recommend for learning how to write high-performance numerical C programs? To give you an idea, the context is that we're writing C extensions for a Python program that simulates wildfire spread. This is a CPU-bound problem - GPUs not applicable.

👀 1
➕ 1

Thanks @afoltzm @emccue. This course was on my radar. I also found this online book, and I heavily recommend it: https://en.algorithmica.org/ > as much as i'm loathe to be a rust fanboy: It probably will be legitimately easier to write high performance rust and bind it to python I don't disagree 🙂 but I don't make this call. If I were to start again from scratch I'd probably try that.

👀 1

Happy New Year, btw!

That sounds like the right place to start^

but as much as i'm loathe to be a rust fanboy: It probably will be legitimately easier to write high performance rust and bind it to python

(assuming the python part of that program is big enough to be a fixed point)

https://www.computerenhance.com/p/welcome-to-the-performance-aware I haven't taken it so I can't speak to it, but by reputation I think Casey Muratori's course might be a good starting point.

👍 1
➕ 1