@HenrikBengtsson

Paris, France, November 25, 2026
That’s it — thank you for your attention! 👋


Before: sequential, readable, auditable
💡 Futureverse design goal
- I want your focus to stay here!
After: parallel, hard to read, hard to maintain
library(parallel)
if (parallel) {
if (.Platform$OS.type == "windows") {
cl <- makeCluster(8)
res <- parLapply(cl, patients, fit_model)
stopCluster(cl)
} else {
options(mc.cores = 8)
res <- mclapply(patients, fit_model)
}
} else {
res <- lapply(patients, fit_model)
}Code coverage (Linux CI)
hit never run
only mclapply() and lapply() are hit
Before: sequential, readable, auditable
After: parallel, readable, maintainable
Developer declares what may run in parallel
End user decides how and where it runs

+40% reverse dependencies yearly
(~575 direct, ~1,300 recursive)

Top 0.6% most downloaded packages


futurize()plan() |
Environment | Use case |
|---|---|---|
sequential |
Single machine | Sequential (default, debugging) |
multisession |
Single machine | Parallel across multiple cores |
mirai_multisession |
Single machine | Same as above; powered by mirai |
mizu_multisession |
Single machine | Same as above; shared memory via mizu (new) |
cluster |
Many machines | Parallel across many machines (desktops, cloud) |
batchtools_* |
Slurm/SGE/LSF | Scheduler-based HPC clusters |
Source-to-source code translation
futurize() inspects the expression on the leftEliminates the refactoring tax
purrr, foreach, etc.)Automatic code rewriting
The pipe is just syntax
is parsed as
Toy example: swap + with -
lapply(xs, f) |> futurize() does the exact same thing:
Captures the call: substitute() captures lapply(xs, f) without evaluating it
Inspects root symbol: expr[[1]] is lapply
Rewrites the AST: swaps lapply to future_lapply
Evaluates: runs the parallel version in caller’s environment

| CRAN Package | Use |
|---|---|
| boot | Bootstrap resampling |
| caret | Machine learning training |
| DiceKriging | Kriging models |
| ez | Easy analysis of variance |
| fwb | Fractional weighted bootstrap |
| gamlss | Generalized additive models |
| glmmTMB | Generalized linear mixed models |
| glmnet | Lasso & elastic-net |
| kernelshap | Kernel SHAP explanations |
| lme4 | Linear mixed-effects models |
| metafor | Meta-analysis models |
| mgcv | Generalized additive models |
| mlr3 | Machine learning framework |
| mlr3tuning | Hyperparameter tuning |
| modelsummary | Model summaries & tables |
| parameters | Model parameters |
| partykit | Recursive partitioning |
| CRAN Package | Use |
|---|---|
| pls | Partial least squares |
| pvclust | Hierarchical clustering |
| riskRegression | Risk regression (survival) |
| rugarch | GARCH time-series models |
| sandwich | Robust covariance estimators |
| seriation | Data ordering |
| shapr | Shapley value explanations |
| Sim.DiffProc | Stochastic differential equations |
| SimDesign | Monte Carlo simulation studies |
| stars | Spatiotemporal data cubes |
| strucchange | Structural change tests |
| SuperLearner | Super Learner ensembles |
| terra | Spatial raster data |
| tm | Text mining |
| TSP | Traveling salesperson problem |
| vegan | Community ecology |
| Bioc Package | Use |
|---|---|
| BiocParallel | Map-reduce infrastructure |
| bumphunter | Differentially methylated regions |
| DESeq2 | Differential gene expression |
| fgsea | Fast gene set enrichment |
| GenomicAlignments | Genomic alignments (BAM) |
| GSVA | Gene set variation analysis |
| Rsamtools | Rsamtools utilities |
| scater | Single-cell transformations |
| scuttle | Single-cell utilities |
| SingleCellExperiment | Single-cell containers |
| sva | Surrogate variable analysis |
R CMD check runs nightly across Linux, macOS, Windows, and R versions.
Best: declared once, by the maintainer of fit_model():
Declare operational goals, not low-level hardware:
Deadlines: finish before morning (by = "08:00").
Cost ceilings: cap commercial cloud or spot-instance spend (budget = 25*USD).
Automated backend routing: dynamically negotiate across local cores, HPC clusters, and cloud resources to meet deadlines within budget.

COMPUTE! 2026, Henrik Bengtsson, futureverse.org