Invented here, untestedComputation

The Plant Compiler

A compiler for factories. Give it what to make, how much, from what and where; it returns a plant design, the code that runs it and the bill to build it, all checked against physics before anything is bought.

A specification entering at the centre, candidate designs branching out and failing, and one passing through to a built plant.

The Plant Compiler

Drag to turn, scroll or pinch to zoom.

How it works

A software compiler turns a specification into a program and refuses anything that breaks the language's rules. The Plant Compiler does the same with matter and energy. Its library holds unit operations (reactors, pumps, heat exchangers, electrolysers, filters, dryers), each as an executable physics model: mass and energy balances, reaction kinetics, phase equilibria, pressure and temperature ratings. A flowsheet of 10 units drawn from a first library of 40, each in 3 sizes, has about 6 × 10^20 possible forms, so the compiler never enumerates them: a language model proposes a few thousand flowsheets and a search tunes their sizes. Every candidate is type-checked by physics: mass must balance within 0.1 percent, energy within 1 percent, and every vessel must stay inside its rating with a margin of 1.5. At about a second of steady-state simulation each, 10,000 candidates take under 3 hours on one machine. The compiler then writes the control program, in the languages industrial controllers already run, and tests design and code together in a dynamic simulation with 100 injected faults: a pump fails, a feed runs impure, power drops. Only a design that meets its specification through all of them is emitted, with a bill of materials and assembly steps. The A-Lab, which planned with no physics check of this kind, made 36 of its 57 targets, 63 percent; the compiler aims at 4 in 5 working first time on the bench and 9 in 10 by the pilot. Every plant built feeds its measured performance back into the library, so the models sharpen with each one.

The first experiment

$600,000estimated cost
10months
Goal
Find out whether a compiled plant design works the first time it is built, with no human design changes.
Setup
A first compiler built on an open process simulator and a library of about 40 benchtop unit operations, each calibrated on the bench. Five specifications for small plants: a brine electrolyser making sodium hypochlorite, a solar water still, a packed column absorbing carbon dioxide into a hydroxide solution, a continuous yeast fermenter, and a vacuum dryer for food. A technician who has not seen the designs builds each plant from the compiler's bill and steps alone, in a pilot hall with standard lab parts and a programmable logic controller.
Measure
For each plant, output rate, purity and energy use on its first run against its specification; hours to build; every point where the technician had to ask or improvise.
Succeeds if
At least four of the five plants meet their specified rate and purity within 10 percent on their first run, with no change to the compiled design.

Run it, or report a result

From the bench to civilization scale

  1. On the bench5 plants, 1 to 10 litres an hour each.Five compiled benchtop plants, each built by a technician from the compiler's output. Proves: Physics-checked designs work first time at bench scale.
  2. Prototype1 plant, about 1 tonne a day.A compiled skid-mounted plant for a real product, such as water treatment or fertiliser for one village. Proves: The compiler handles scale-up, real feedstocks and real faults.
  3. Pilot12 plants, about 10 tonnes a day each.Compiled plants for a dozen products, built by contractors in several countries and run under AI operators within human-set limits. Proves: Designs and their measured results feed back into a library that gets better with each plant.
  4. First plant1 plant, about 300 tonnes a day.A full-scale chemical or metals plant designed by the compiler and certified by regulators. Proves: Compiled designs can be trusted at the scale industry builds.
  5. FleetAbout 1,000 plants a year.The compiler as the normal way to design plants, with the open unit-operation library shared like a standard. Proves: Design stops being the bottleneck on the buildout.
  6. Civilization scaleEvery plant the industry adds as it doubles every 2 yearsThe compiler designs factories for regolith and sunlight, the parts of the seed factories that fly from 2045. Proves: Industry can grow as fast as it can build, not as fast as it can design.

What it builds on

  • Coscientist, an AI that designed, planned and ran chemistry experiments on its own. nature.com, 2023
  • The A-Lab, which planned, ran and interpreted 17 days of continuous inorganic syntheses and made 36 of 57 targets. nature.com, 2023
  • Reinforcement learning that lays out chip floorplans as well as human experts in under six hours, a precedent for searching a design space under hard physical rules. nature.com, 2021
  • DWSIM, an open-source chemical process simulator with steady-state and dynamic models of unit operations. dwsim.org, 2026
  • DeepMind's data centre cooling controller, which cut the energy Google's data centres use for cooling by up to 40 percent. deepmind.google, 2016
  • Yokogawa's reinforcement-learning controller, which ran a distillation column at an ENEOS Materials plant for almost a year and became the first such AI formally adopted to control a plant directly. yokogawa.com, 2023

What could go wrong, and what to try next

The physics models may be good enough on paper and wrong in a real plant, through fouling, corrosion or a reaction nobody modelled; the fallback is to compile only from unit operations measured on the bench, and to grow the library slowly. Designs may meet the specification and still be unsafe in a way the checks miss; every compiled plant runs behind a verified safety controller (the Governor) and through a normal hazard review. Plant data is private; the project would publish the library openly and invite firms to add to it.