Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Build ppxlib and js_of_ocaml in the compiler's main dune context

    Stacked on #7538 (which is on #7465, rricard's js_of_ocaml distribution work), so this diff only shows this PR. Follows up the discussion on #7425: rather than a staging install and a nested build, ppxlib, js_of_ocaml and their dependencies are built as ordinary libraries in the main context of the compiler build, against the compiler and libraries being bui…

    Jacob Van Buren (@jvanburen)
  2. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Bytecode: Deeply copy "unboxed" product fields for large functional updates

    This fixes the same bug as in #7468, #6123, and #5386 but for functional updates of large records (compiling to a Pduprecord).

    Zack Eisbach (@zackbach)
  3. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Change most stdlib/built-in parameterised types to take `any`

    Do for the rest of stdlib what #5462 did for option. The only real difficulty is ref, which we access using externals rather than OCaml syntax.

    Luke Maurer (@lukemaurer)
  4. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Check and propagate functor staticity for include functor and F ()

    [include functor F] applied a functor without the staticity checks that [F (X)] performs: a dynamic functor (e.g. one loaded via plain -I) could be included where a static one is required, and the included items were given the functor type's declared result mode rather than inheriting the functor's staticity. It was also always compiled as a plain [Lapply], …

    Jack Rickard (@Skepfyr)
  5. IssueW42.2026 · 12–18 Octoxcaml/oxcaml

    Constant propagation in classic mode

    Vincent Laviron (@lthls)
  6. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Delay template capture computation to slambda eval

    Lkindtemplate and Ltemplate no longer carry an explicit environment of captured variables. Instead, slambda works out a template's captures from its free variables when it evaluates the template. It uses layouts recorded in its environment, and the closure is allocated with the function's own mode. Notably getting the layouts form the slambda eval environmen…

    Jack Rickard (@Skepfyr)
  7. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    FDO: Add counter fields and flag

    This adds Fdo_annotation, the set of counters of a program point, and the fields that will carry counters through Flambda:

    yusumez-js
  8. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    FDO: Declare counters for new FDO implementation

    This adds types and utility functions for the pseudo-instrumentation counters to be propagated throughout compilation.

    yusumez-js
  9. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    FDO: Function body hash

    Adds function body hashes.

    yusumez-js
  10. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    FDO: Function identities from Lambda

    Adds Fdo_fingerprint, which maintains the identity given to functions for FDO. Fdo_fingerprint.t contains:

    yusumez-js
  11. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Fix TMC calls in the body of a try

    The dps version of [try] blocks were generated incorrectly: Firstly, the body of the try was marked as tail, which is incorrect, as it needs to pop exception handler.

    Aaron Eline (@aaronjeline)
  12. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Fix `-flambda2-match-in-match` bug

    I don't quite understand what's happening here, but it seems to be the right fix.

    dkalinichenko-js
  13. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Fix `box` record disambiguation

    Fix

    dkalinichenko-js
  14. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Fix `scrape_ty` to still look through `[@@unboxed]` types containing `or_null`

    Typeopt.scrape_ty promises to scrape away [@@unboxed] types, which it looks through using Ctype.get_unboxed_type_approximation. However, get_unboxed_type_approximation also looks through or_null types, and if it reported it did, then we currently throw away the whole result and incorrectly use the un-scraped input type.

    Ryan Tjoa (@rtjoa)
  15. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Fix fiber preemptibility at creation

    We plan to make preemptable fibers have distinct TLS states, so it no longer makes sense for fibers to change between preemptable and non-preemptable depending on how they're resumed. This PR adds an is_preemptable flag set at creation time and splits the stdlib continuation type into preemptable and non-preemptable.

    Max Slater (@TheNumbat)
  16. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Fix kind of flambda unboxing `Block_{g,s}et`

    In Block_get and Block_set, apply the rewrites

    Xavier Clerc (@xclerc)
  17. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Flambda2: define all names for recursive closures before adding equations

    With -dflamdba-heavy-invariants, this was (rightfully) reported as an error.

    Vincent Laviron (@lthls)
  18. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Flamdba2: fix duplicate variable bindings with binary join

    The old join can end up creating a level where the same variable is bound with multiple, different binding times (when the variable is present in both join inputs but one has gone through a join and not the other). This is mostly harmless (we're using maps/sets for variables most of the time, so we won't iterate twice on the variable) but it is arguably a bu…

    Vincent Laviron (@lthls)
  19. Pull requestW42.2026 · 12–18 Octoxcaml/oxcaml

    Flatten representation of product-containing singleton blocks on bytecode

    Today, the following two types have the same layout but are represented differently on bytecode:

    Zack Eisbach (@zackbach)
  20. IssueW42.2026 · 12–18 Octoxcaml/oxcaml

    Function specialization

    Mark Shinwell (@mshinwell)