Thicket thicket
ocaml
REPOS 27
W41.2026 · 5–11 Oct

All repository summaries

12 active · 15 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Windows process spawning merged by @avsm. Eio_unix.Process now supports CreateProcess-based spawning on Windows with restricted fd inheritance, sandbox cwd, and non-blocking cancellation. (#936)

  • Eio_unix.System_info merged by @talex5. Exposes uname fields (sysname, release, version, machine) for platform-conditional logic; Windows reports sysname only. (#952)

  • Win32 path normalisation merged by @avsm. Eio_unix.Nt_path gains to_win32, beneath, and a classify function covering reserved names, trailing dots/spaces, and long-path prefixes. (#947)

  • File and socket flow handlers split. Eio_unix.Pi.flow_handler is now separate for files and sockets, allowing independent implementations per OS. (#950)

Fixes

  • eio_posix SIGCHLD wake-up (open, by @samoht). A C handler writes to a scheduler-polled pipe so a child exit arriving just before poll(2) is handled immediately rather than at the next timer. Fixes #946 for SIGCHLD; general signal latency still tracked in ocaml/ocaml#13189. (#948)

  • MSG_DONTWAIT on all socket I/O (open, by @talex5). recvmsg/sendmsg always set the flag, preventing a peer process from changing blocking state mid-operation. Eio_unix.Net.import_socket_stream on non-sockets now raises Eio.Io Unix_error. (#951)

Compatibility and Releases

  • Minimum OCaml version raised to 5.4 (merged, by @talex5). Enables labelled tuples, immutable arrays, and atomic record fields; thread-pool workers are now named via Thread.set_current_thread_name. (#949)

ocaml/dune

Permalink

Features

  • js_of_ocaml and wasm_of_ocaml whole-program mode now pass -bytecode-hints when linking the bytecode executable, starting with OCaml 5.6. Merged in #16560.
  • Proposed (job_slots ...) rule lets a build compute and expose a slot count via an environment variable for polyglot sub-builds (e.g. Cargo). Requires a dune version bump. Open in #16475.

Compatibility and Releases

  • The installed-package version-gate regression (introduced by #16362) is backported to the 3.25.0-rc branch with its regression test. Merged in #16558.
  • The development ppxlib cap below 0.39 is lifted; Nix flake locks are refreshed and ppxlib 0.39 describe snapshots are promoted. Merged in #16566.

Fixes

  • 3.25.0-rc introduced a ~5× zero-build slowdown and ~9× peak-RSS increase on large Rocq workspaces (7 s → 34 s, 722 MiB → 6.7 GiB). A memoization patch reduces this to 11.5 s / 1.5 GiB; a follow-up alias-based cache brings it to 7.6 s. Open in #16543.
  • Merlin now selects the correct reader for preprocessed filenames without an extension, fixing wrong implementation/interface lookup in editors. Merged in #16536.
  • A SIGKILL after an action writes targets but before _build/.db is saved leaves stale targets that the next build trusts and stores in the shared cache, corrupting downstream builds across workspaces. Open in #16559.
  • Stdlib paths under _build are now localized only when they fall within a registered context, restoring the oxcaml trunk build broken by the sandboxed-stdlib change in #16374. Open in #16563.

ocaml/merlin

Permalink

Fixes

  • #2138 (open, updated 2026-10-05): Corrects diagnostic deduplication in query_commands.ml. Previously, two distinct diagnostics sharing the same start/end position were collapsed into one by a position-only comparison; the fix orders by severity then raw text before discarding duplicates. Affects editor error/warning display in Merlin 4.14.

ocaml/ocaml

Permalink

Features

  • Unix.openfile now accepts O_NOFOLLOW on POSIX systems; not available on Windows. Merged in #15121.
  • Native Atomic.exchange and Atomic.compare_and_set instructions for amd64, arm64, riscv, power, and s390x, eliminating C calls when the stored value is an immediate. Open in #14980.

Fixes

  • Closure conversion no longer recomputes free variables per nesting level; compilation of deeply nested local functions is now linear in depth. Merged in #15139.
  • The compiler reads source files exceeding Sys.max_string_length (16 MB on 32-bit) via a fallback path, restoring builds of large generated files. Merged in #15134.
  • Bytecode emits Hint_int_comparison on integer equality/inequality, replacing the unusable Hint_physical_comparison; unblocks js_of_ocaml optimisations. Merged in #15135.
  • Multiple command-quoting defects on Windows fixed (OSEC-2026-24). Merged in #15133.
  • Gc.compact no longer leaks pool_stats memory when a size class contains no live blocks. Merged in #15127.
  • A soundness bug in variance composition permits a segfault via functor abstraction of an invariant GADT parameter; a stricter fix is pending and may reject currently accepted programs. Open in #15142.

ocaml/ocaml-lsp

Permalink

Fixes

  • #2229 (opened, not merged): Corrects the getDocumentation server capability name in spec docs from handleDocumentation to handleGetDocumentation, matching what the server actually advertises. Also fixes typos in locate-spec.md, locate-types-spec.md, merlinJump-spec.md, phrase-spec.md, inferIntf-spec.md, and jumpToTypedHole-spec.md. Documentation only; no code changes.

Open Issues

  • #2143 (open, updated 2026-10-05): On OCaml 4.14, when multiple diagnostics share the same range, the LSP server reports only the first (a warning-as-error) and suppresses the subsequent real type error. A comment references a fix at #2138; the comment carries no timestamp, so its posting date is unconfirmed.

ocaml/ocaml.org

Permalink

Features

  • New ATOM feed for grim.cargocut.org added to OCaml Planet. Merged by gr-im. (#3837)
  • OCaml Planet now carries a post on Zostera, a new WireGuard implementation in OCaml, from robur.coop. (#3840)
  • New OCaml Planet posts include Tarides' "An Overview of OCaml Release Readiness" and the September 2026 Roundup. (#3839)
  • New OCaml Planet post: "OCaml's module language is the perfect fit for agentic programming" by anil. (#3841)
  • New OCaml Planet post: ".plan-26-40: A whole new world (of wall-to-wall Tessera embeddings)" by anil. (#3835)

Fixes

  • PR to remove five AI-generated tutorial/tool pages and revert AI rewrites of two opam tutorials; human-authored edits from #3574 and #3646 are preserved. Open, not yet merged. (#3834)
  • Fix for broken internal links on /docs and /install pages (compiler-backend anchors, memory-representation path, relative module links, opam install anchor). Open, not yet merged. (#3842)

Compatibility and Releases

  • opam 2.6.1 release announced on the site. Merged by kit-ty-kate. (#3838)

ocaml/odoc

Permalink

Features

  • Merged: OCaml 5.6 compatibility. Odoc now builds against OCaml 5.6 trunk. (#1472, closes #1470)
  • Open: OxCaml parameterized library support. Adds rendering and cross-references for Lib[Param:Impl] syntax. (#1464, by art-w)
  • Open: OxCaml kind abbreviation rendering and linking. Introduces a new namespace for kind abbreviations. (#1467, by art-w)
  • Open: Display [@atomic] annotation on mutable fields in generated docs. Requires OCaml 5.4+ or OxCaml. (#1496, by ElectreAAS)
  • Open: Tracking issue for new markup extensions (quotes, strikethrough, definition lists, details/spoiler, footnotes). Each extension is a separate ticket; no implementation merged yet. (#1497, #1498, #1499, #1500, #1501)

Fixes

  • Merged: Corrected inconsistent handling of type equalities in signatures containing include. Enables dropping include sig ... end bodies, a significant speedup on ppx_template-heavy code. (#1481, by jonludlam)
  • Merged: Suppressed non-actionable informational messages from crunch during builds to reduce noise. (#1493, by Leonidas-from-XIV)

ocaml/opam

Permalink

Features

  • opam now sets safe.directory=. when invoking git, allowing repositories owned by a different local user (e.g. in Docker containers). Fixes git ls-files failures under CI. #6980, backported to 2.6 in #7182.
  • Explicit Haiku platform support added: vmin handling corrected for Haiku's vmin=4, and platform-specific code paths adjusted. #7138 (merged 2026-10-08).

Compatibility and Releases

  • opam 2.6.1 released 2026-10-07. Includes the git safe.directory fix, the GIT_CONFIG_* Windows fix, and the lockfile update. See release notes.
  • FAQ now documents that since 2.6.0, global/system git config is ignored, and that GIT_CONFIG_COUNT, GIT_CONFIG_KEY_<n>, GIT_CONFIG_VALUE_<n> environment variables remain available for URL rewriting and similar use cases. #7187.

Fixes

  • FreeBSD/i386 build failure (ptrdiff_t typedef conflict in vendored checkseum) resolved by updating the lockfile to checkseum 0.5.4 and decompress 1.6.1. #7172, backported in #7181.
  • GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM now use /dev/null on Windows as well as Unix, working around a bug in Git-for-Windows 2.56.0.windows.1 that rejects NUL. #7085, backported in #7191.
  • opam install --depext-only now installs depexts only for newly added packages rather than all packages in the solution, preventing spurious system-package installs for packages being removed or updated. #7166.
  • Removed redundant set operations in OpamSwitchState.universe that caused opam to consider a larger package set than necessary, eliminating unwanted recompilation of already-installed packages. #7154.

ocaml/opam-repository

Permalink

Features

  • ppxlib 0.39.0 adds support for OCaml 5.6 primitive aliases and holes; also fixes attribute duplication in Ast_builder.Default.pexp_apply. Merged. (#30868)
  • mldsa.0.2.1, mlkem.0.2.1, slhdsa.0.2.1 — pure OCaml implementations of FIPS 204/203/205 post-quantum signatures and KEM. Merged. (#30907)
  • frei0r.0.1.3 (video effects) and lo.0.2.1 (OSC input controls) added as new bindings. Merged. (#30897, #30892)
  • liquidsoap 2.4.6 (4 packages) updates the multimedia streaming suite. Merged. (#30906)

Fixes

  • sedlex 3.8.1 corrects an infinite loop at end-of-input when a rule matching the empty string precedes the eof rule. Merged. (#30871)
  • conf-frei0r, conf-lilv, conf-liblo now require EPEL on CentOS and use correct SUSE/OpenSUSE package names. Merged. (#30905, #30904, #30903)

Compatibility and Releases

  • dream 1.0.0 (4 packages) is the first stable release; adds OCaml 5.5 support and adopts semantic versioning. Merged. (#30890)
  • opam 2.6.1 (8 packages) updates the package manager libraries. Merged. (#30880)
  • OCaml 5.7.0+trunk development packages (ocaml.5.7.0, ocaml-compiler.5.7, ocaml-variants.5.7.0+trunk) added for the next compiler cycle. Merged. (#30875)

ocsigen/js_of_ocaml

Permalink

Fixes

  • #2495 (merged 2026-10-07): inline_recursively no longer duplicates a closure at every nested-functor level. The fiat-crypto benchmark, which previously exhausted memory, compiles again in ~42 s / 1.4 GB.

  • #2492 (merged 2026-10-05): Str.string_partial_match no longer allows a group's start to exceed its end (OSEC-2026-21). The JS runtime also stops the matcher on a partial match instead of looping until heap exhaustion.

  • #2504 (merged 2026-10-09): The Wasm linker fixes instruction decoding (legacy exceptions, SIMD immediates, memory.atomic.fence, stack switching), segment/table retargeting, continuation-type equality, and export ordering.

  • #2499 (merged 2026-10-08): Array.make, Float.Array.create, Array.append/concat, Obj.new_block, Weak.create, and unmarshaling now enforce Max_wosize and raise the same exceptions as OCaml, instead of trapping or silently succeeding on oversized allocations.

Features

  • #2493 (merged 2026-10-05): The JS and Wasm runtimes implement Sys.filepath_exists (OCaml 5.6), returning false only on ENOENT/ENOTDIR and raising Sys_error otherwise.

  • #2423 (open): A new Split_toplevel pass outlines the Wasm toplevel function at liveness boundaries, controlled by the split-toplevel flag and toplevel_split_size parameter, to keep JIT compilers from stalling on a single huge function.

Compatibility

  • #2494 (merged 2026-10-09): With OCaml 5.6, EQ/NEQ carrying Hint_int_equality_test compile to a plain ref.eq in Wasm without boxing, removing unnecessary caml_js_strict_equals calls.

  • #2502 (merged 2026-10-09): The JS backend no longer emits ES2021 logical-assignment operators (&&=, ||=, ??=) and preserves blocks around a single block-scoped declaration, restoring compatibility with older engines.

oxcaml/opam-repository

Permalink

Fixes

  • Merged: #62 (dra27-js) updates all oxcaml-compiler patches to apply without fuzz. The ignore-opam.patch line-number drift that broke Dune builds is resolved.

  • Merged: #62 removes the faulty patch for oxcaml-compiler.5.4.0-ox2, replacing it with the command pattern already used in oxcaml-compiler.5.4.0-ox7 after upstream removed runtime4.

Compatibility and Releases

  • Closed (not merged): #51 and #60 addressed the same Dune patch-application failure; both superseded by #62. Dune's switch to a pure-OCaml patch implementation (ocaml/dune#14177) made line-number mismatches fatal.

  • Closed (not merged): #36 proposed adding 5.4.1 as a bootstrap compiler variant. The approach was superseded by a change in #42 that selects the closest OxCaml commit recipe.

oxcaml/oxcaml

Permalink

Features

  • A stacked PR series adds grammar, typing, and morphism translation for mode-polymorphic annotations such as 'a @ [< 'm] -> 'a @ [> 'm]. Currying constraints are generated implicitly; the typechecker rejects non-constant modes. (#7502, #7503, #7504, #7461)

  • Merged tests for omnidirectional constructor disambiguation establish expected behaviour across three implementation stages. Open PRs add the Scheduler/Ivar/Tivar infrastructure and labeled tuple projections as the first expression-level client of omnidirectionality. (#7372, #7418, #7432)

  • The reaper is split into traverse, solve, and rebuild stages, with cross-unit calls deferred to rebuild time. Merged groundwork covers analysis-scope parameterisation and exportable fields; open PRs add -support-lto, -reaper-solve, and -reaper-rebuild. (#7240, #7244, #7260, #7496, #7264, #7268)

  • Four PRs open a new SSA-based backend: post-dominator computation, loop analysis, inter-block move support in the reducer, and a partial dead-code-elimination (operation sinking) pass. All are labelled experimental. (#7514, #7515, #7517, #7518)

  • A new -bytecode-hints flag stores Lambda-level information (block immutability, closure layouts, immediate-ness, physical comparisons) in a HINT section of .cmo files, enabling downstream compilers such as wasm_of_ocaml to generate better code. (#7509)

  • Address pattern syntax addr_ and addr_imm_ is merged for parsing. Open PRs add type-checking (with mode interactions) and lambda translation via Pget_ptr. (#7410, #7456, #7458)

  • A prototype FDO (feedback-directed optimization) implementation and its counter types are in open PRs, introducing pseudo-instrumentation data for branch and switch-case profiling. (#7395, #7462)

Fixes

  • Merged: jkind constraints are rechecked after refining parameters from manifests, rejecting unsound instantiations (e.g. int -> int in a global position). Open: kind constraints propagate through with-bounds to support bidirectional typechecking of applications. (#7338, #7363)
15 repositories · no changes