Modern computers have much more than a single processor where instructions are run one by one; multiple cores and multiple threads can help you make stuff faster by the simple procedure of doing several things at the same time. But you need a language that gives you a nice layer of abstraction to really speed up programming. Raku, having been designed in the 21st Century, includes a whole array of capabilities to leverage hardware parallel-processing capabilities. We’ll look at several ways of doing that in this chapter.
Recipe 15-1. Use Data Parallelism with Hyper/Race
Problem
You need to process ...