Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming
Hyper and race 🆕
The functional list operations you met earlier — map,
grep — process their elements one after another. When the
work on each element is independent and substantial, Raku can run it
in parallel across several CPU cores, with almost no
change to your code.
Two methods switch this on: .hyper, which keeps the
results in order, and .race, which does not but can be a
little faster. This section shows both.
Topics in this section
Practice
Complete the quiz that covers the contents of this section.
Exercises
This section contains 3 exercises. Examine all the topics of this section before doing the coding practice.