10. Parallel Computing

Published

Tuesday, November 17, 2026

This week …

Sometimes, embarrassing is good. Like when a task is embarrassingly parallel.

Required Reading

This post introduces in_parallel(), the new way of running purrr’s map() functions in parallel, using mirai as the back end. It’s what we’ll use in class.

Examples

This week’s example runs a small bootstrap two times. The first run uses an ordinary map(). The second run uses in_parallel() with a set of mirai workers. The example also shows the most common error: a worker cannot find an object that you did not supply.

Slides

View all slides in new window