Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    arm64: address store-release review nits

    emit.ml: drop redundant sign check; emit_addimm already delegates to emit_subimm for negative offsets.

    Sebastian Pop (@sebpop)
  2. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    arm64: bit tests (`x land m <> 0`, `(x lsr k) land 1 <> 0`) are not compiled to `tbnz`/`tst`

    On arm64 a single-bit test of an int takes four or five instructions

    Thomas Gazagnaire (@samoht)
  3. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    arm64: no register-offset addressing (`[xn, xm, lsl #s]`) for untagged indices

    backend/arm64/arch.ml documents why reg + shifted reg is not supported:

    Thomas Gazagnaire (@samoht)
  4. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    arm64: same 64-bit constant materialised twice in one block

    On arm64, a 64-bit integer constant used twice in one basic block is materialised twice, even with registers to spare:

    Thomas Gazagnaire (@samoht)
  5. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    compare on an int64# array raises in native code and answers in bytecode

    compare, =, Hashtbl.hash and Marshal on an int64# array or a #(int * int) array raise Invalid_argument ("mixed block value") in native code and give an answer in bytecode. float# arrays are compared in both.

    Mark Shinwell (@mshinwell)
  6. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    feat(typing): omnidirectional mode crossing (eager defaulting)

    The future is now (under -extension omnidirectionality):

    Alistair (@johnyob)
  7. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    feat(typing): omnidirectionality with lazy defaulting

    This PR makes defaulting ivars lazy. Previously, every ivar was added to a global pool

    Alistair (@johnyob)
  8. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    feat(typing): scheduler monitors

    Delayed jobs now run in the error handling context it was registered in.

    Alistair (@johnyob)
  9. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    fix(extensions): remove `omnidirectionality` from extension universes

    -extension omnidirectionality is incompatible with mode_polymorphism.

    Alistair (@johnyob)
  10. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    fix(parsing): do not emit ghost `Pexp_constraint`s in source annotations

    Some Pexp_constraints (e.g. (e : t), (e : t @ m), (e :> t)) were given ghost locations, so type errors on them lost their "because …" explanation.

    Alistair (@johnyob)
  11. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    fix(typing): check record field mutability at the field's instance type

    Record construction and the kept fields of { r with ... } checked mutability (and crossed kept fields) at the generic lbl_arg. Use the field's instance instead, so e.g. a mutable 'a field at int crosses portability.

    Alistair (@johnyob)
  12. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    fix(typing): only ensure variances matches on constrained parameters

    The original code would ensure that variance annotations match on constrained (i.e. non Tvar) type parameters. #7418 required that variance annotations match on unconstrained type parameters (flipping the condition).

    Alistair (@johnyob)
  13. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    flambda2: dedup switch arms that differ only by debuginfo

    Fixes #8111.

    stussysenik
  14. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    flambda2: preserve lifted constants in Rewritten case of simplify_let0

    simplify_let0 clears pending lifted constants from dacc before simplifying the defining expression and only restores them in the Simplified branch. In the Rewritten branch, continuing with the emptied dacc dropped any constants lifted just before, leading to missing-name fatal errors.

    Leo Lee (@smjleo)
  15. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    flambda: Store free_names and cost_metrics on rebuilt expressions

    Instead of accumulating the information in the upwards env, which is brittle and fails whenever we forget to set UA.with_name_occurrences and UA.with_cost_metrics (for instance, the name occurrences were not properly updated when elimininating a switch, see tests).

    Basile Clément (@bclement-ocp)
  16. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    gcrate refactor

    refactor the gcrate test following review by @gasche on ocaml/ocaml#15280

    Nick Barnes (@NickBarnes)
  17. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    int64 ref boxed at every update in a loop with two exits

    I was looking at why a decoding loop allocates on OxCaml and not on upstream OCaml. It comes down to an int64 ref that the loop updates. When the loop has two exits, or updates the ref on some iterations only, the ref is boxed again at every update.

    Thomas Gazagnaire (@samoht)
  18. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    js_of_ocaml: emit long non-constant lists as flat arrays

    A list literal whose cells are not compile-time constants, for example one with a computed tail such as [@@deriving enumerate] with an [@enumerate.custom] field, is a chain of Block (0, [|hd; tl|]) whose single-use cells the expression queue inlines into one nested array literal. About 690 levels overflow the parser stack of Chrome on Windows ("Maximum call …

    Ricky Vetter (@rickyvetter)
  19. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    js_of_ocaml: upgrade to fe94806 with upstream portint

    Merge upstream fe94806 (Oct 5) with upstream portint implementation refined by @vouillon.

    Robin Ricard (@rricard)
  20. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    ldexp uses only the low 32 bits of the exponent

    ldexp x n uses only the low 32 bits of n: ldexp 1.0 (1 lsl 32) is 1.0 and ldexp 1.0 (1 lsl 31) is 0.0. Float32.ldexp, Float32_u.ldexp and Float_u.ldexp do the same.

    Mark Shinwell (@mshinwell)