Reproduce “Repairing and Mechanising the JavaScript Relaxed Memory Model” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Conrad Watt, Christopher Pulte, Anton Podkopaev, Guillaume Barbier, Stephen Dolan, Shaked Flur, Jean Pichon-Pharabod, Shu-yu Guo
Researchers from the University of Cambridge and collaborators identified and corrected deficiencies within the JavaScript relaxed memory model, including incompatibilities with ARMv8 compilation and failures to guarantee sequential consistency for data-race-free programs. They formally mechanized the corrected model in Coq, proving compilation correctness for mixed-size accesses to ARMv8 and achieving its adoption into the JavaScript specification.
Key insights
- Subtle flaws can arise in relaxed memory models, especially with mixed-size accesses, leading to discrepancies between language specifications and actual hardware behavior.
- Formal mechanization using tools like Coq and model checking with Alloy are crucial for identifying precise counter-examples and rigorously verifying complex concurrent language features.
- Direct engagement with standards bodies (ECMA TC39) is essential for translating academic findings into practical, adopted improvements in programming language specifications.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.