other-languages

val_waeselynck 2024-11-24T12:11:04.532759Z

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
val_waeselynck 2025-01-02T09:13:50.869039Z

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
val_waeselynck 2025-01-02T09:13:57.044869Z

Happy New Year, btw!

emccue 2024-11-25T20:04:14.799269Z

That sounds like the right place to start^

emccue 2024-11-25T20:05:04.502029Z

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

emccue 2024-11-25T20:05:24.192829Z

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

respatialized 2024-11-24T15:50:34.780099Z

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