The REAPER Stack: Compiling a Chemical Mechanism at Run Time
A chemistry model repeats the same reaction bookkeeping in many cells and at many times. The concentrations change; the identities of the reactants usually do not. REAPER uses that fixed structure to write a small set of specialized programs after the model has loaded its mechanism. A system compiler turns them into a library that the solver attaches and later runs reuse. We explain the construction, and six appendices explain the computer science from the ground up, after Feynman’s lectures on computation. TurboMICM provides working examples of the generated kernels, and has measured such kernels at five to six times the generic path inside one solver. The complete run-time loading and caching path remains a design; its own startup cost has not been measured.
Authors
- David Fillmore (ORCID: https://orcid.org/0000-0001-7726-4352)
Institutions
- National Aeronautics and Space Administration (US)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-10-26
- DOI
- https://doi.org/10.5281/zenodo.23654084
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint