Why R Runtime Engineering Matters

ORIENTATIONSTATUS: STABLELEVEL: INTROREVIEWED: 2026-11-18

R is one of the main languages of statistical computing, and it runs on a runtime designed in the 1990s, when a desktop processor had one core and that core got faster every year. Nothing in that design had to cope with two threads running R code at the same time.

The single-core era

For about a decade that cost nothing. Moore’s law, the observation that the number of transistors on a chip doubles about every two years, came with rising clock speeds, so a program written for one core ran faster on each new machine without any change to the program.

The hardware stopped cooperating

Around 2003 and 2004 clock speeds stopped climbing, a turn Herb Sutter documented in “The Free Lunch Is Over” (2005). Transistor counts kept growing, and chip makers spent them on more cores. A laptop now commonly has eight cores or more, and a two-socket server can have several hundred. Each new core is still somewhat faster than the last, but a program that runs on one core leaves most of a modern machine idle.

%%{init: {"themeVariables": {"xyChart": {"backgroundColor": "transparent", "titleColor": "var(--mermaid-fg-color)", "xAxisLabelColor": "var(--mermaid-fg-color)", "yAxisLabelColor": "var(--mermaid-fg-color)", "xAxisTitleColor": "var(--mermaid-fg-color)", "yAxisTitleColor": "var(--mermaid-fg-color)", "xAxisLineColor": "var(--mermaid-edge-color)", "yAxisLineColor": "var(--mermaid-edge-color)", "xAxisTickColor": "var(--mermaid-edge-color)", "yAxisTickColor": "var(--mermaid-edge-color)", "plotColorPalette": "var(--mermaid-node-fg-color), var(--mermaid-fg-color)"}}}}%%
xychart-beta
  title "Core counts (bars) climb, per-core speed (line) stalls"
  x-axis [2000, 2005, 2010, 2015, 2020, 2025]
  y-axis "relative to year 2000 (stylized)" 0 --> 36
  bar [1, 2, 4, 8, 16, 32]
  line [1, 3, 4, 5, 5, 5]

A stylized trend: core counts keep doubling while per-core speed levels off, so a single-threaded runtime gains little from new hardware.

The gap keeps widening

R users want to analyze bigger data on more cores, and the interpreter runs R code on one thread. Packages work around that in two ways. parallel <https://stat.ethz.ch/R-manual/R-devel/library/parallel/html/00Index.html>, which ships with R, and future <https://future.futureverse.org/> run R code in several worker processes, each with its own interpreter. data.table <https://r-datatable.com/> runs its C code on several threads through OpenMP, while the R code that calls it stays on one. Both approaches work, and both go around the interpreter instead of changing it.

Other languages changed their runtimes. Python’s PEP 703 <https://peps.python.org/pep-0703/> makes the Global Interpreter Lock optional: in CPython’s free-threaded build, threads in one process run Python code in parallel. Ruby added Ractors <https://ruby-doc.org/3.2.0/Ractor.html>, still marked experimental, for isolated parallel execution. The JVM and Go were designed with threads from the start.

R needs the same work

R’s community is smaller than Python’s, but R code runs analyses in finance, pharmaceutical research, government and science, and each new machine leaves a larger share of its cores unused by single-threaded R code.

Closing that gap takes work inside the runtime: on the environments that hold R’s variables, the garbage collector and the execution model, and on the native interface that thousands of compiled CRAN packages call.

Read next: why R is difficult to parallelize covers the specific constraints in the R runtime. The projects as experimental vehicles explains how I test solutions.

Further reading

Where this appears

  • threaded-r Patches GNU R so that several interpreters, each owned by one thread, run in one process.
  • r-in-rust (rrs) Explores what a modern R runtime looks like without the 1990s design constraints.

Where to go next

Back to top