Skip to content

Build Systems: Comparison ​

Build engines avoid repeated work by tracking dependencies and retaining enough evidence to reuse previous results. They differ in when dependencies become known, what counts as an unchanged result, and which parts of execution they control. A cache, a dependency evaluator, and a process sandbox answer different questions even when they belong to one product.

This comparison relates the surveyed mechanisms to the scheduler × rebuilder model in concepts. Its findings are bounded by the pinned sources in the deep-dives; they do not establish a universal architecture or rank whole products. Part 1 maps the model to implementation layers. Part 2 compares scheduling, rebuilding, dependency discovery, storage, hermeticity and distribution. Part 3 records findings and counterexamples, and Part 4 explains trade-offs. Part 5 identifies experiments that could strengthen the evidence.

NOTE

System claims cite deep-dives and their primary sources. Cross-system deductions are marked Catalog inference. The research method distinguishes source evidence from observed behavior and explains the limits of the inherited reviewed label.

FieldValue
Page typeSynthesis (capstone)
Covers5 foundations, 20 industry rows, 9 Nix projects, 14 themes
Grid vocabularyconcepts §2–§5, from JFP 2020
Evidence scopePinned deep-dives and their source statements; model deductions and catalog inferences are distinguished

Last reviewed: November 4, 2026 (synthesis and internal consistency; upstream revisions unchanged)


Part 1 — The master grid ​

1.1 The twenty industry rows ​

Reproduced from the master catalog and checked against each deep-dive's own placement section. — means the deep-dive declines to classify.

SystemSchedulerRebuilderLink
BuildXLtopologicalverifying tracesBuildXL
Bazelrestartingconstructive tracesBazel
Buck2suspendingverifying tracesBuck2
build2topological (recursive)mtime dirty bit + depdbbuild2
Pleasesuspendingverifying tracesPlease
Ninjatopologicalverifying traces (qualified)Ninja
GNU Maketopologicaldirty bitGNU Make
redosuspendingverifying step tracesredo
tuptopologicaldirty bit (observed)tup
Shakesuspendingverifying step tracesShake
Rattlespeculative (off-grid)constructive in spiritRattle
Earthlystatic DAG (via BuildKit)constructive traces + auto-skipEarthly
GNnot a cell (generator)—GN
Mesonnot a cell (generator)—Meson
Boba——Boba
Pants v2suspendingverifying step tracesPants
Moontopologicalconstructive (action cache)Moon
BitBaketopologicalsignature-stamp dirty bit + sigdata traceBitBake
sbttopological + suspensionper-invocation dirty bit + action cachesbt
BuildKittopologicalconstructive tracesBuildKit

Sixteen rows have a nearest grid placement, one is deliberately off-grid — Rattle is a forward system whose trace replaces the declaration, and perfect-dependencies argues no cell describes it — and three are not engines, since GN and Meson generate a Ninja graph (gn, meson) and Boba is Fuchsia's in-tree GN + Bazel dual-graph integration layer rather than an independent engine (boba). Two labels carry qualifiers that matter more than the label. Ninja's restat is a dirty-bit refinement bolted onto a trace, and the manual states both mechanism and limit:

"restat:: if present, causes Ninja to re-stat the command's outputs after execution of the command. Each output whose modification time the command did not change will be treated as though it had never needed to be built. This may cause the output's reverse dependencies to be removed from the list of pending build actions."

— doc/manual.asciidoc

That is early cutoff implemented as "the mtime did not move" — the false-negative class reproducibility names. sbt is a composite: Execute is topological, but Left(target) plus a Calling state adds suspension on demand (sbt). Composites are where the grid's orthogonality leaks.

1.2 The nine Nix projects: satellites, not cells ​

These projects primarily generate or lower work into Nix. Their planning logic can differ even when execution uses the same store and scheduler. The table identifies that contribution rather than counting each front end as an independent engine.

ProjectWhat it contributesCell
nixceptionREAPI actions bridged into recursive-nix derivationsNix's cell, entered through a proxy
nix-ninjaNinja edges lowered to content-addressed derivationstopological × deep constructive, split
sandstonePer-module Haskell derivations with an object/interface splitNix's cell, derivation set built at run time
drowsenix-instantiate + crate2nix as build steps emitting derivationsno cell — a lowering layer
dgdGo builds planned from go build -nNix's cell, plan produced at run time
nixgggcc/g++ invocations intercepted into per-invocation derivationsa front end into Nix's cell
nix-cargo-unitCargo's unit graph rendered as per-unit derivationsNix's cell at unit granularity
MakeNixA Makefile expanded into one derivation per object, mid-buildNix's cell over a Make-discovered graph
nix-dynamic-derivationsDerivations whose output is a derivationNix's cell with the key set open

Dynamic derivations allow derivations produced during realization to extend the work to be realized (nix-dynamic-derivations). This changes when the key set becomes known; it does not introduce another scheduler coordinate in the paper's grid. The front ends explore how to express work through that boundary.

1.3 What the grid cannot express ​

Four absences, each a gap in the vocabulary rather than a misclassification:

  1. Change-driven cancellation — PIE needs a changed-file set as an argument (pie); a file-watch scheduler has no cell (concepts §7, from JFP §8.9).
  2. Forward builds — Rattle runs the command and reconstructs edges after (perfect-dependencies); Build has nowhere to put that graph.
  3. Generator phases — GN and Meson build a description, then build from it (gn, meson); the grid starts after that phase.
  4. Eviction policy and provenance — neither is a grid coordinate. The paper discusses eviction and hash passthrough, but does not specify an eviction policy or an attestation scheme (concepts §6).

1.4 Classify the layer before the product ​

The summary grid identifies a nearest theoretical analogue. It does not assert that every layer in a product uses that mechanism.

Product / layerMechanismModel correspondence and boundary
Bazel / Skyframerestarting dependency evaluationOrdering and reuse of graph values; external actions still need complete inputs (Bazel rebuilding)
Buck2 / DICEsuspending computes, revision certificatesVerifying analogue with concurrent branches; the core state does not execute actions (Buck2 mechanics)
Buck2 / action cacheaction digest and retained artifactsConstructive layer alongside DICE, rather than evidence that DICE itself stores action results (Buck2 store)
Ninja / executorready graph, timestamp checks, command hash, restatQualified verifying analogue; content equality is not implied (Ninja mechanics)
Earthly / BuildKitrecipe lowering into LLB and snapshot reuseInherited execution machinery; the two rows are not independent corroboration (Earthly, BuildKit)
GN or Meson / generationemits a build descriptionA preceding phase; Ninja's execution guarantees do not establish generator correctness (GN, Meson)

Part 2 — Per-dimension comparison ​

2.1 Task model & scheduling ​

QuestionMechanisms representedExemplars
Static or dynamic graph?Fixed execution graphs and dependencies requested during evaluation both occurMake, Ninja vs Shake, Buck2
Which scheduler?Topological, restarting and suspending mechanisms serve different task modelsConcepts §2, Bazel, Shake
Parallelism budgetPools constrain selected work; a jobserver shares tokens with child buildsNinja, Make
Conditional edgesDependencies consumed can depend on values obtained during evaluationPants, Shake

2.2 Rebuilding & correctness ​

RebuilderEarly cutoffDynamic depsRepresentative state (not total cost)
Dirty bitno in base model; implementations can add cutoffover-approxone field or one mtime (gnumake, tup)
Verifying tracesyesyesresult and dependency identities; step variants use timestamps and dependency records (shake, redo)
Constructive tracesyesyesresult value + dependency hashes (bazel)
Deep constructivenoyesone hash over terminal inputs (nix-thesis)

Early cutoff depends on the unchanged-result signal. Shake's step traces use built and changed alongside dependency records and result comparison; the two integers are not the total verification or persistence cost (shake); BitBake reaches it through a second, output-derived identity when paired with OpenEmbedded's hash-equivalence handler and bb.hashserv (bitbake); Please through an Unchanged outcome (please). Nix's deep constructive cell buys cloud capability and single-round-trip lookups by giving that cutoff up (nix-thesis).

The behavioral suite also observes GNU Make skipping a consumer when its generator preserves the output timestamp. Tup's ^o explicitly compares outputs. Neither observation is captured by an unqualified statement that every implementation in the dirty-bit row lacks early cutoff.

Correctness claims concern different objects. An unconditional statement about a core data structure does not imply unconditional correctness of external builds.

Claim / objectPropertyAssumptions and exclusionsEvidence
Skyframe graph evaluationCorrect incremental results when function inputs are recordedDependency completeness; does not validate arbitrary process readsUpstream design claim, Skyframe; analysis
DICE core stateReturned revisions are justified by the operation historyUnconditional at this interface; the core does not execute computes or validate reported dependenciesStated theorem and algorithm, DICE §§1, 3; mechanics
DICE execution environmentFrom-scratch consistencyFunctional certificates, honest traces and complete change reportingConditional argument, DICE §3.4; analysis
Nix dynamic-derivation resolutionMissing realisations leave tryResolve unresolvedLocal fail-closed behavior, not a whole-engine correctness proofInspected implementation, dynamic derivations
PIE incremental executionConsistency and partial optimalityTask/resource contracts; partial optimality differs from JFP minimalityPaper argument, PIE correctness

Formal verification separately identifies machine-checked models and their external-execution assumptions. A source inspection or a design argument is not a mechanized proof of the implementation.

2.3 Dependency discovery ​

FamilyMechanismWhere it is the primary answer
Declaredthe description names inputs and outputsBazel, Buck2, Please, Pants, Nix
Compiler-emitteddepfile written by the toolNinja .ninja_deps, build2 depdb, Meson
Tracedsyscalls via ptrace, FUSE, eBPF, interpositiontup, Rattle, BuildXL
Hybriddeclared edges plus observed validationBitBake [file-checksums], BuildXL fingerprints

Compiler-emitted dependencies reuse the compiler's knowledge, but this corpus does not measure their marginal emission cost. Observation serves runtime discovery in Rattle and tup and declaration validation in BuildXL. Using it only as an audit is an application choice (graph-autogeneration). Rattle's overhead belongs to its measured workloads, not to all tracers (sandboxing-overheads). A failed file probe or empty glob can affect output; detecting a later appearance requires representing that observation or conservative invalidation (buildxl, bitbake).

2.4 Store & caching ​

ConcernObserved mechanism or constraintPage
Two tiersaction key → result and blob → bytes; shared or separate storage must preserve referencescas-eviction
Orderingtouch the action entry before its blobs, or check presence on readcas-eviction
Key compositionconfig, rule, sources, secrets — named separately so a miss is diagnosableplease
Content over identitykey on what the consumer's tool reads, not the producer's whole outputsemantic-caching
Evictionwatermarks, sweeps and bounded caches trade enforcement precision against write-path costcas-eviction

The deepest divergence is about what a key is for. Nix keys on terminal inputs so a target is current without materialising anything between it and the sources — a shallow build (nix-thesis); Bazel keys on the action and its declared inputs so every intermediate is reusable and early cutoff works (bazel). Both are correct, and cas-eviction's "shallow builds and hash passthrough" is the only place the corpus reconciles them.

2.5 Hermeticity & provenance ​

SystemDeterminism isSandbox mechanismAttestation shipped
Nixan assumption behind input identitynamespaces and restricted store view when sandboxing is enabledsignatures on the object
Bazelan author obligationstrategy dependent; sandboxfs removed in 7.0.0execution metadata; no attestation identified in cited paths
Buck2the environment's obligationlocal-only actions lack filesystem isolation; RE has an input boundaryno attestation identified in cited paths
BuildKita mode of the exportercontainer per stepprovenance as a product
BitBakea property of the recipenetwork namespace + Landlock; no fs sandboxno attestation identified in cited paths
BuildXLan assumptionDetours (Windows); Linux interposition and tracing pathsno attestation identified in cited paths

The cited accounts use different baselines and are not comparable: BuildXL's "1-5% of time overhead to running a process" on Windows (Documentation/Specs/Sandboxing.md), Rattle's 7% Linux / 46% Windows over a fixed command list (perfect-dependencies §5.2), and Bazel's qualitative sandboxfs account — "setup costs are lower, but you have to pay a penalty for the use of each input" — before its 7.0.0 removal (sandboxing-overheads). An absent measurement is an evidence gap, not evidence of zero cost.

The surveyed detection mechanisms differ: Nix exposes --check, Bazel documents a comparison procedure, and DICE leaves external-compute determinism to its environment. BuildKit's exporter options control selected sources of variation. Nix's environment control narrows nondeterminism without eliminating it (reproducibility). In the provenance paths examined, BuildKit emits attestations, REAPI carries execution metadata, and Nix signs store objects. These observations do not exclude integrations outside the inspected paths (provenance).

2.6 Distribution ​

QuestionAnswer the corpus supports
Wire protocolREAPI: Bazel, Buck2, Please, Pants, moon's cache client, nixception
What crosses the seaman input root and a command — not a graph (dynamic-deps-distributed)
Dynamic deps + remote executioneach action needs its input closure at dispatch; a published plan is one approach
Daemon stateamortizes work; state affecting results needs an explicit reuse contract (daemon-compilers)

An REAPI action is closed: the server receives a Command and a Directory tree. Inputs needed by that dispatched action must already be available as content. Nix publishes derivations and Ninja patches a local manifest with dyndep; these are different coordination mechanisms (dynamic-deps-distributed). Catalog inference: a cacheable plan can make discovery reusable. The action boundary does not require every coordinator to persist its entire graph.


Part 3 — Findings, assumptions and counterexamples ​

These findings describe the inspected corpus. A theoretical guarantee, a common mechanism and an application recommendation have different evidential weight. The research method defines the evidence labels; related front ends do not count as independent confirmations of their inherited engine.

FindingSupporting evidenceCounterexamples or limitsAssumptions and scopeAssessment
Content checks distinguish edits that timestamps cannotNinja rebuilding, reproducibilityMake and tup deliberately retain timestamp-based checksCorrectly captured inputs; hashing and metadata costs are workload dependentMechanism distinction; no universal speed claim
Dependency reporting and observation are alternative sources of edgesNinja depfiles, Rattle tracing, tupRattle and tup use observation in the build path; tracing is not only an auditCompiler reports and tracers each have coverage limitsSource-supported diversity; no universal winner
Early cutoff needs an unchanged-result signalShake, Please, Ninja restattup adds opt-in ^o to dirty-bit propagation; deep constructive traces omit intermediate resultsEquality may mean bytes, an mtime proxy or a revision; these are not interchangeableModel property with implementation qualifications
Cache results and their bytes have distinct lifetimesCAS evictionShared storage and separate AC/CAS budgets both occurA returned result needs retrievable outputs, or a safe miss/recompute pathIntegrity constraint; storage layout remains a choice
Dynamic evaluation requires a way to obtain late dependenciesSchedulers, Ninja dyndep, dynamic derivationsRestarting can re-evaluate; suspension is not the only solutionA closed remote action needs inputs at dispatch; a persistent plan is one designModel and protocol constraints, with multiple implementations
Generation and execution are separate analysis layersGN, Meson, EarthlyA product can host both phases; one cell cannot describe every layerState which phase a classification describesClassification convention
Environment control reduces variance but does not prove determinismReproducibilityNix offers --check; tools can still use entropy or vary with execution orderRepeated comparisons cover only the variations exercisedSource-supported limitation; detection coverage remains partial
Isolation does not by itself discover readsSandbox mechanisms, Buck2 discoveryBuildXL combines enforcement and observationPlatform, executor and configuration must be namedMechanism distinction
Attestation is a separate product capabilityProvenance, BuildKitNix object signatures and REAPI metadata establish different factsSearch limited to cited implementations and integrationsBounded observation, not an exhaustive absence claim
Proofs establish properties of their named modelsFormal verificationCloudMake models execution axiomatically; Nix-language proofs concern evaluatorsExternal tools, reporting and termination have their own assumptionsEvidence of model properties; no implementation proof inferred

Catalog inference: the corpus supports choosing mechanisms by workload and failure model. It does not establish that a small local executor needs the same cache, sandbox, daemon or distribution architecture as a remote build service.


Part 4 — Architectural trade-offs ​

DecisionRationaleTrade-off
Deep constructive traces for cheap cloudone lookup on terminal inputs; shallow builds; single round tripno early cutoff; determinism becomes a correctness requirement (nix-thesis)
Restarting over suspendingno continuation machinery; the engine re-derives what it needsrepeated work; cost depends on repeated work and memoization (bazel)
Trace dependencies instead of declaring themobserves accesses on the executed path; reduces declaration workworkload-dependent overhead; coverage gaps can cause silent misses (perfect-dependencies, sandboxing-overheads)
Sandbox for isolation, not observationthe container cost is already paid for reproducibilitya sandbox is not an input oracle (please)
One cache for AC and CASone budget, one eviction order, simplest configurationeviction order becomes an integrity invariant (cas-eviction)
Keep the plan staticvalidation, cycle diagnosis, deterministic presentation come freea plan-producing node cannot extend the graph (drowse, makenix)
Daemon-resident graphamortizes loading, dep-file reuse, deferred materializationlifecycle, expiry, permission boundary, stale state (daemon-compilers)
mtime as the dirty bitno hashing on the hot path; the filesystem already maintains itrequires a separate cutoff signal; preserved mtimes can hide content changes (ninja)
Generate BUILD files from observationno authoring; the graph is what ranthe trace is a bet on the next run (graph-autogeneration)
Hash the interface artifact, not the ASTthe compiler already knows what changed; no extractor to keep honestone more artifact; width and tool identity become API (semantic-caching)

Two patterns in the corpus are not trade-offs but mistakes with a long half-life: hashing a declared graph rather than the resolved one (nix-dynamic-derivations), and letting a name stand in for content when the two can drift (drowse).


Part 5 — Research gaps and experiments ​

The behavioral evidence separates model predictions from observed engine behavior. It is a small scenario suite, not a performance ranking. The following protocols address remaining cross-system questions. Application priorities belong to a separate design analysis.

QuestionHypothesis and minimal experimentMeasurements and confoundersResult that changes the finding
When does hashing repay its cost?Compare timestamp, content and step-trace checks on one edit sequence with identical tasksScan, hash, metadata I/O, avoided execution and no-op latency; separate warm OS cache from cold stateCheap tasks or large inputs make verification slower than rerunning; narrow the workload scope
Does observation find dependencies declarations miss?Run a command with generated inputs, a failed probe and directory enumeration under each available mechanismDetected reads and stale outputs against a clean execution; record platform and static/dynamic linkingA missed access falsifies completeness for that configuration
Must discovery produce a persistent plan?Compare an in-memory coordinator with a serialized plan before dispatching the same closed actionsPlanning work, restart recovery and action keys; keep input closure identicalEqual correctness without plan persistence rules out a protocol-level necessity
How should a cache survive eviction?Delete selected output blobs while retaining result metadata, then request the targetMissing-blob detection, restoration, execution, bytes transferred; separate AC and CAS lifetimesA successful result naming unavailable bytes falsifies the completeness check
What does a correctness claim cover?Reproduce a documented invariant with a deliberately incomplete dependency reportGraph-value correctness and external-artifact correctness separatelyA justified graph revision with stale process output demonstrates the layer boundary

No experiment here establishes a universal cost threshold. Report tool revision, configuration, input sizes, edit history, expected executions and observed executions alongside a clean-build artifact comparison.


Evidence coverage ​

The index inventories five foundations, twenty industry rows, nine Nix subjects and fourteen themes. Each deep-dive carries its source pins and qualifications. This comparison audits their synthesis without advancing those pins or claiming executable validation of every row.

The method distinguishes source statements, inspected mechanisms, model deductions, executable observations and catalog inferences. The historical reviewed labels establish coverage of the source-review process, not a uniform level of assurance. Behavioral evidence supplies a separate, explicitly scoped record of observed executions.

Sources ​

  • Build Systems à la Carte (JFP 2020) via concepts, for the grid and its vocabulary; the paper's DOI is JFP.
  • The 34 system and 14 theme deep-dives listed above, each carrying its own pinned citations. This page adds no clone; it re-opened four files to quote them exactly — Ninja's manual at a7d7504, Bazel's Skyframe doc at 2105aec, Buck2's DICE document at 08b403b, BuildXL's sandboxing spec at ea34998 (restat, skyframe, incrementality, sandboxing).