Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add Datalog-based validators to various CFG passes.

    Adds validators to Cfg_liveness, Cfg_dominators, Cfg_simplify.Eliminate_dead_code using Datalog. Their purpose is to both to verify the CFG stage of the compiler and check whether using Datalog for this purpose is a good idea.

    hwasilewskijs
  2. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add RUNPARAM to make test to allow OCAMLRUNPARAM to be set

    This lets me run, for examnple, make test-one TEST=foo RUNPARAM=v=0x1000. Setting OCAMLRUNPARAM in the naive way sets it for all the various things run by the make (such as the compiler).

    Nick Barnes (@NickBarnes)
  3. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add SSA intermediate representation between Cmm and CFG

    TL;DR

    ttebbi-janestreet
  4. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add `const` qualifiers to `argv` in `caml_startup` functions

    The OxCaml runtime never modifies the pointers argv points to, or any of the strings those pointers point to. It would be nice to express that constraint in the relevant function prototypes.

    Nick Barnes (@NickBarnes)
  5. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add `module-type-impls` query

    This PR adds the Merlin query module-type-impls that returns the modules that are required to implement the specified module type. This analysis will unlock broader functionality within Merlin, specifically for the Interface Strengthener, which annotates an .mli file with modes, modalities, and kinds.

    Gavin Gray (@gavinleroy)
  6. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add acquire/release atomic load and store primitives

    Add %atomic_load_acquire and %atomic_store_release (with _field and _loc variants) alongside the existing sequentially consistent atomics.

    Aspen Smith (@glittershark)
  7. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add atomic ext_ptr and remove user atomics caml_domain_alone optimization

    This PR implements the %unsafe_atomic_*_ext_ptr family of primitives, intended

    Joe Kerrigan (@joe-kerrigan)
  8. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add flambda2 primitives for bit-counting ops (clz, ctz, popcnt, etc.)

    Alternative to #6726 (I'll add the other primitives from that PR in a follow-up).

    Basile Clément (@bclement-ocp)
  9. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add local abstract kind substitutions

    This PR adds local kind substitutions in signatures:

    julesjacobs
  10. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add module type information to compiler artifacts (cms/merlin-index)

    This PR adds module facts to build artifacts. The module facts help us answer module flow queries such as "which modules must implement a given module type".

    Gavin Gray (@gavinleroy)
  11. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add more examples of bad `select` codegen

    Demonstrates missed optimizations related using selects as if conditions and match scrutinees.

    James Rayman (@jra4)
  12. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add slambda evaluation of value kinds

    This was almost certainly just accidentally missed when this was first implemented and is necessary for array support.

    Jack Rickard (@Skepfyr)
  13. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Add validation of the cfg reachability pass

    Adds a validator for dead-code elimination, which independently computes reachability using the internal Datalog engine (using Z3 as a fallback) and compares it. It introduces additional CFG fact infrastructure and the -cfg-eliminate-dead-code-validate flag.

    hwasilewskijs
  14. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Allow [@@or_null] GADTs

    Summary

    julesjacobs
  15. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Allow all-`void` records

    e.g. type t = { field : unit# } (note that unboxed type u = #{ field : unit# } already works).

    Will Sturgeon (@wrsturgeon)
  16. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Allow bodies of `if`s without `else`s to have type `unit#`

    Done via type-directed disambiguation. type_if_no_else_branch is similar to type_statement so I probably will refactor the shared bits. Since Texp_ifthenelse doesn't have a parameter for a layout, the disambiguated unit# case is instead translated with ifnot = Some { exp_desc = Texp_unboxed_unit; .. } instead of ifnot = None.

    James Rayman (@jra4)
  17. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Allow interoperation with third-party signal handlers

    The existing Sys.signal_behavior type does not encompass third-party signal handlers, installed by external code (such as another language's runtime). With this PR, such a handler is expressed as Signal_external e, with an abstract value e. The external handler can be re-installed in the usual way with Sys.signal.

    Nick Barnes (@NickBarnes)
  18. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Allow non-values in tuples

    Draft

    Zack Eisbach (@zackbach)
  19. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Annotation hint

    This PR creates a new leaf hint for annotations. If a mode can be explained by an annotation, the hint will now print the location of the annotation.

    ainageorges
  20. Pull requestW36.2026 · 31 Aug – 6 Sepoxcaml/oxcaml

    Apply modality to the base of the curry mode in the parser and printer

    When parsing 'a @ m1 -> 'b -> 'c @@ m2 in a signature, the implicit curry mode was constructed as the join between m1 and legacy, ignoring the value's modality m2. For

    ainageorges