#today I did some recreational code #parallelisation (hey, that's what I did my MSc in, kinda, before it was fashionable), while recovering from the #nightclubbing!

https://www.earth.org.uk/note-on-site-technicals-104.html#2026-01-18

On Website Technicals (2026-01)

Tech updates: mail chatter but little bufferbloat, new energy series, SSES peak tweak, Zenodo archives, data correction, grid dither, parallelisation...

I am using dask to do some parallel calculations on a massive matrix. After the calculation, I just want the data to be written as int16 into an f.bin. The chunks are too large to compute the entire array and use numpy with tofile etc.

Any help/ideas/tips ?

Why is this so hard O__O

#dask #python #compute #parallelisation #io

Just ran across this on the Other Site - good info about and new approaches to #parallelisation in #RStats https://www.jottr.org/2022/12/05/avoid-detectcores/
Please Avoid detectCores() in your R Packages

The detectCores() function of the parallel package is probably one of the most used functions when it comes to setting the number of parallel workers to use in R. In this blog post, I’ll try to explain why using it is not always a good idea. Already now, I am going to make a bold request and ask you to: Please avoid using parallel::detectCores() in your package! By reading this blog post, I hope you become more aware of the different problems that arise from using detectCores() and how they might affect you and the users of your code.

JottR
Depuis plusieurs semaines, la #parallélisation des tâches avec #joblib dans #Python plantait quand le script était compilé. Solution : mettre à la fonction joblib.Parallel() un paramètre explicite prefer="threads" (je ne sais pas pourquoi, je suis sûr que c'est très logique, mais maintenant ça marche et je peux retravailler sur #Bibliostratus)
Romain (@rmaziere_85) | Twitter

Die neuesten Tweets von Romain (@rmaziere_85). N'a de convictions que celui qui n'a rien approfondi. Lectures, info, ia, éthique, santé, philo, psy, neuro, penser le Monde et tout le reste. Dans une mauvaise dimension

Twitter