Repository activity
40458 results across all weeks
refactor(melange): share runtime dependency evaluation
Antonio Nuno Monteiro (@anmonteiro)refactor(memo): add Option.value
Several memoized rule paths repeat the same operation: return an optional value when present, otherwise lazily compute a monadic default.
Rudi Grinberg (@rgrinberg)refactor(memo): remove unused phase arguments
Stack_frame_with_state.create accepted a computation phase but ignored it. As a result, Computation.force's phase parameter existed only to forward it.
Rudi Grinberg (@rgrinberg)refactor(memo): require names for lazy nodes
Rudi Grinberg (@rgrinberg)refactor(menhir): clarify context reuse
Reuse the Menhir functor super context and distinguish its inference compilation context. Follow-up to #16092.
Antonio Nuno Monteiro (@anmonteiro)refactor(menhir): share rule mode expansion
Share rule-mode expansion across one-step and inferred Menhir rules.
Antonio Nuno Monteiro (@anmonteiro)refactor(ml-sources): share source file scanning
Share source filename parsing and duplicate detection between OCaml and Melange module discovery.
Antonio Nuno Monteiro (@anmonteiro)refactor(modules): share container folding
Share representation traversal between module object-map construction and folding.
Antonio Nuno Monteiro (@anmonteiro)refactor(obj-dir): share external public directory layout
Share the OCaml and Melange public-directory mapping between external object-directory construction and decoding.
Antonio Nuno Monteiro (@anmonteiro)refactor(odoc): share support files rule
The legacy and new odoc pipelines duplicated construction of the odoc support-files rule. Expose the shared rule from Odoc and reuse it for both support directories.
Rudi Grinberg (@rgrinberg)refactor(package-deps): resolve library support with install rules
Description
Ali Caglayan (@Alizter)refactor(parser): share generated module map lookup
Select each parser generator module map once for both lookup and failed-lookup diagnostics.
Antonio Nuno Monteiro (@anmonteiro)refactor(pkg): add platform to solver roles
Summary
Ali Caglayan (@Alizter)refactor(rpc): share connection error construction
Centralize RPC connection error construction for socket conversion and connection failures.
Antonio Nuno Monteiro (@anmonteiro)refactor(rpc): share server notification declarations
Rudi Grinberg (@rgrinberg)refactor(rules): centralize executable targets
Executable and melange.emit targets were represented independently as raw strings and ad hoc variants across object-directory layout, dependency resolution, source lookup, and Merlin identifiers.
Rudi Grinberg (@rgrinberg)refactor(rules): centralize project-root scope lookup
Several rule generators independently translate an optional project root into a build directory before looking up its scope. Add Scope.DB.find_by_project_root to centralize this translation and use it for JavaScript, parameterised, and preprocessing rules.
Rudi Grinberg (@rgrinberg)refactor(rules): reuse project from expander
Reuse the project stored in Expander for version-sensitive action and dependency expansion.
Antonio Nuno Monteiro (@anmonteiro)refactor(rules): share executable pps resolution
Executable compilation, installation, artifact loading, and utop generation independently applied instrumentation and collected the resulting PPX dependencies before resolving libraries.
Rudi Grinberg (@rgrinberg)refactor(rules): share unused library setup
Centralize unused-library rule setup shared by library and executable compilation contexts.
Antonio Nuno Monteiro (@anmonteiro)