Found this on Mastodon:
There are also some interesting comments in this thread:
Would be nice to have a parallel sorting algorithm in Crystal as well, seems to be well worth it
Found this on Mastodon:
There are also some interesting comments in this thread:
Would be nice to have a parallel sorting algorithm in Crystal as well, seems to be well worth it
Maybe. The blog post presents a pathological example that rarely occurs in reality in any programming language β sorting an array of size 128M in memory with gobs of CPU cores available to a single process that are otherwise doing nothing.
Generally speaking, I follow 2 rules of thumb regarding parallelization of a single unit of work:
I had never heard of Chapel. So doing a little research I came across the below items where someone questioned the comparison of Chapel with Rust for the sort algorithm.
One of my enduring hopes is that Crystal will also (soon) develop a true parallel processing implementation (not based on fibers) to truly compete in the field of highly parallel arithmetic and numerical algorithms.