Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Rename cast constructors in Cmm

    James Rayman (@jra4)
  2. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Rename int ids without importing

    When we apply a name abstraction that was imported from another compilation unit, we first import the name from the original compilation unit into the grand table for the current compilation unit, possibly affecting it a new identifier, then create a fresh name for it and record the mapping between the imported identifier and the fresh name in a Renaming.t.

    Basile Clément (@bclement-ocp)
  3. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Replace `Slambdaident` with `Layout_ident`

    Slambda's Env now keeps idents and sort variables in separate maps, with sort variables mapping straight to layouts. That means Lambda only needs an identifier type for sort variables, so Slambdaident becomes Layout_ident. Behaviour doesn't change. Specifically Ident.ts and the layout vars never need to be represented in the same place so representing them w…

    Jack Rickard (@Skepfyr)
  4. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Restrict and freshen closure environments in slambda

    A closure now saves only its free variables and free sort variables, rather than the whole environment in scope, which was all written to the cmx. This means we keep less data alive longer than it needs to be and serialize much less in the cmx. This adds Lambda.free_sort_vars.

    Jack Rickard (@Skepfyr)
  5. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Result types for functions returning closures, and two fixes

    Posted for initial feedback; we may split it into several PRs (the two fixes at the base of the branch can go on their own).

    Mark Shinwell (@mshinwell)
  6. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Revert "Avoid useless copies of the same function produced when simplifying functions with no benefits"

    Reverts #7437, which is causing an optimized build failure.

    Max Slater (@TheNumbat)
  7. IssueW41.2026 · 5–11 Octoxcaml/oxcaml

    SIMD instruction for AMD64 emit AVX2 instructions on AVX hardware

    SIMD instruction for AMD64 emit AVX2 instructions on AVX hardware. It looks like the compiler is using at least vinserti128 possibly other AVX2 instructions.

    Tim McGilchrist (@tmcgilchrist)
  8. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Scope mode variables like type variables

    Generalize TyVarMap and TyVarEnv to both type and mode variables, so that they can easily share the same scoping rules.

    Jakub Bachurski (@jbachurski)
  9. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Shape.Uid distinguishes interface and implementation units

    Stacked on #7506 (third of four PRs splitting #7028; then #7028).

    Zesen Qian (@riaqn)
  10. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Simplify graph during mode unification

    Mode unification between m1 and m2 used to just call submode m1 m2 and submode m2 m1, which adds mode solver constraints between the two modes, but does nothing to try and collapse underlying mode variables. This PR optimizes the mode solver to collapse such variables, when they an unified at the same level.

    ainageorges
  11. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Sound layout generalisation and nicer errors in inclusion checks

    This raises a nice error when moregen accepts setting a weak variable to a generic one.

    Jakub Bachurski (@jbachurski)
  12. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Stop deriving global names by stripping pack prefixes

    First of four PRs splitting #7028 (then #7506, #7507, #7028). Groundwork: remove the places that manufactured a global name by stripping the pack prefix off an implementation.

    Zesen Qian (@riaqn)
  13. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Store argument block metadata in .cmi files

    Move argument projection metadata into .cmi files for instantiation and functorization.

    Zesen Qian (@riaqn)
  14. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Store int id data for code in file sections

    The exported data for names and continuations that are bound in exported code is currently stored in the main index for all int ids data, which must be deserialized before getting any exported information from a .cmx file.

    Basile Clément (@bclement-ocp)
  15. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Support mixed tuples

    Adds support for mixed tuples by extending various tuple-related data definitions with Jkind.Sort.ts, similar to the tracking done for unboxed tuples. This allows for code de-duplication between cases for unboxed and boxed tuples across the frontend.

    Zack Eisbach (@zackbach)
  16. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    TLS per preemptible fiber

    TLS state is now per-preemptable-fiber rather than per-systhread. Main stacks also count as preemptable. Non-preemptable fibers see TLS state from the nearest enclosing preemptable fiber. Creating a preemptable fiber or main stack splits TLS state.

    Max Slater (@TheNumbat)
  17. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    TMC now closes regions before recursing

    Previously, TMC annotated functions that had local allocation failed to close the region before recursing, leading to these functions using unbounded stack space. This commit changes the TMC pass to attempt to close the region when safe to do so. In the event it's not safe, we now raise a warning instead of silently producing a function that behaves unexpect…

    Aaron Eline (@aaronjeline)
  18. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Translate address patterns to lambda

    This PR finishes support for basic address patterns by implementing their translation to lambda.

    Benjamin Peters (@bn-peters)
  19. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Tweak `DLS` and `TLS` operations to reduce code size

    This tweaks both DLS and TLS operations to reduce size of generated code to what seems like less than half for get operations in particular.

    Vesa Karvonen (@polytypic)
  20. Pull requestW41.2026 · 5–11 Octoxcaml/oxcaml

    Type checking for address patterns `addr_` and `addr_imm_`

    Type checks address patterns, but raises an exception in the translation to lambda.

    Benjamin Peters (@bn-peters)