© J.J. Merelo 2020
J. MereloRaku Recipeshttps://doi.org/10.1007/978-1-4842-6258-0_15

15. Speeding Up Processing

J. J. Merelo1 
(1)
Granada, Granada, Spain
 

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 ...

Get Raku Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.