Thicket thicket
ocaml
REPOS 27
W05.2026 · 26 Jan – 1 Feb

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • eio PR #827: open proposal to handle POLLNVAL on macOS block devices by waking all readers and writers; resolves issue #757. Updated 2026-01-29; not yet merged. (link)

ocaml/dune

Permalink

Features

  • Dune --pkg flag: New CLI option --pkg enabled|disabled overrides the pkg field in dune-workspace to toggle package management per invocation. Merged in #13458.
  • Dune 3.22 sandboxed tests: Test execution now runs in sandboxes starting from lang 3.22, consistent with preprocessing and inline tests. Merged in #13510.
  • Dune mdx sandboxing: The mdx action now runs in a sandbox starting from mdx version 0.5. Merged in #13504.
  • Dune OxCaml workspace support: (using oxcaml 0.1) is now accepted in dune-workspace files, not just dune-project. Merged in #13395.

Fixes

  • Dune cram promotion: Fix a spurious rename error when converting a single-file cram test to a directory test of the same name. Closes #4067; merged in #13516.
  • Dune sandboxed promotions: Promotions from failed diff actions inside sandboxes are now copied to the staging area before cleanup, preventing data loss. Merged in #13520.

Compatibility and Releases

  • Dune odoc config generation: Open #13476 would generate and install odoc-config.sexp from :with-doc dependencies, enabling cross-package documentation linking.
  • Dune patch_back_source_tree: Open #13495 introduces a sandbox mode letting linters modify dependencies; changes are registered as promotions applied via dune promote.

ocaml/merlin

Permalink

Features

  • Merlin enclosing command (proposal): PR #2029 proposes a -stop flag so editor extensions can select a specific enclosing expression by index rather than always receiving the first match. Affects locate-types, annotate-type, and related LSP actions. Still open; maintainer has not yet reviewed the logic.

Fixes

  • Merlin signature help: PR #2023 (merged 2026-01-27) stops the signature-help response from looping over parameters after the parameter list is exhausted. Affects in-editor parameter hints.

  • Merlin type-enclosing Reason output: Issue #2019 reported that ocamlmerlin single type-enclosing returned OCaml syntax instead of Reason syntax under OCaml ≥ 5.3. Closed 2026-02-01 as not reproducible on main with OCaml 5.4; no code change made.

ocaml/ocaml

Permalink

Fixes

OCaml compiler (trunk): fixes a miscompilation in string read/write operations where incorrect Cmm machtypes allowed derived pointers to remain live across a GC, causing obscure crashes. Backported to 5.4 and 5.5. #14010

OCaml compiler (trunk): open fix for a soundness bug where a polymorphic pattern like ([ bad ] : 'a. 'a list) passes a raw Tpoly to the exhaustiveness checker, causing a segfault. #14480, issue #14434

OCaml runtime (trunk): open fix for a multidomain minor-GC bug where promoting an infix pointer could expose an uninitialized major-heap block to another domain, causing SEGVs. Marked for backport to 5.5. #14495

Features

OCaml stdlib (proposal): open PR adding Lazy.Mutexed, a mutex-protected lazy thunk safe for concurrent forcing across domains or threads. Naming under active discussion; the module intentionally signals its domain-level blocking limitation. #14393

ocamllex (proposal): open PR adding an exhaustiveness warning that reports a nonmatching input example when a rule can fail, with a suggested fix for the empty-string and eof cases. #14448

OCaml language (proposal): open PR implementing modular explicits (fun (M : S) -> ...), allowing a module parameter's name to appear in the return type. A major extension of first-class modules for higher-kinded abstraction. #13275

Compatibility and Releases

OCaml C headers: merged changes suppress -Wpedantic / -Wc99-extensions warnings in bigarray.h under strict C++ mode via CAML_flexible_array_member_start/_end macros, and add a CI test that compiles all public headers in C++ with SARIF diagnostics. #14496, #14421, #14498

ocamltest: merged not <action>; negation syntax (e.g. not windows;), removed the legacy **** tree syntax and its translation layer, and added an ocamltest; action for testing ocamltest scripts themselves. #14502, #14499, #13317

ocaml/ocaml-lsp

Permalink

Features

  • ocaml-lsp (merged): Adds a custom LSP request for destruct (case analysis), letting ocaml-eglot trigger pattern-matching generation directly instead of via a code action. Merged 2026-01-28. #1583

  • ocaml-lsp (proposal): Introduces a merlin-locate-types custom request returning a compact set of reachable types. Protocol design discussion is ongoing; not yet merged. #1584

  • ocaml-lsp (RFC): Proposes OCAMLLSP_PROJECT_BUILD_SYSTEM and OCAMLLSP_PROJECT_ROOT environment variables to configure an arbitrary merlin config server, falling back to current behaviour when unset. Open, not merged. #1581

Fixes

  • ocaml-lsp (proposal): Applies ocamlformat to signature_help output so long function signatures render with proper line breaks in editors. Open, not yet merged. #1580

ocaml/ocaml.org

Permalink

Features

ocaml.org /packages page: proposes an "Automatic Documentation Generation" section explaining odoc and ocaml-docs-ci, plus a redesigned "Documentation not found" page with a pre-filled issue link to ocaml-docs-ci. Open PR by cuihtlauac. #3471

ocaml.org contributor docs: merged documentation for all OCAMLORG_* environment variables with defaults and the sage.ci.dev external documentation server. Previously undocumented. #3470

Compatibility and Releases

Platform release backfill: open PR adds missing release entries for dune 3.21.0 α0–α5, merlin v5.6.1-504, ocaml-lsp 1.25.0, ocamlformat 0.28.0/0.28.1, opam 2.5.0, and ppxlib 0.37.0. Scraper had been broken. #3444

Governance page: merged updates refresh the active teams listing, maintainer list, and security-team contact links (cross-referencing /security). #3460, #3467, #3462

Fixes

lwt 6.0.0 documentation: docs for lwt, lwt_direct, and lwt_runtime_events are missing from ocaml.org. Root cause is an opamh build failure (OpamStd.String.starts_with unbound), unrelated to lwt itself. Open issue, updated 2026-01-29. #3451

QCheck 0.90/0.91 documentation: docs for these versions are absent from ocaml.org despite function renames (e.g. Gen.frequency → Gen.oneof_weighted). Open issue, updated 2026-01-27. #3437

Package docs 404: eio and domainslib overview pages load but their /doc/index.html paths return 404. Open issue filed 2026-01-26. #3461

Infrastructure

Build tooling: open PR replaces ood-gen (≈119 MB generated .ml) with data-packer (17 MB binary) and data-scrape, reducing CPU time 2.5×. Not yet merged. #3463

ocaml/odoc

Permalink

Features

  • Odoc (PR #1398, merged): Adds %{ocaml-config:ox} support for detecting the OxCaml compiler via dune 3.21. Renames empty.t cram tests because dune 3.20 now validates the @empty alias. Link

  • Odoc (PR #1399, open): Rebase of OxCaml patches from oxcaml/odoc onto the main tree, building on #1398. Uses cppo conditionals to handle multiple OCaml AST versions. Link

Fixes

  • Odoc (PR #1400, open): Proposes a fix for issue #930, a crash (Invalid_argument in List.fold_left2) triggered when substituting the same type name at different arities across nested include ... with type module type signatures. Link

Compatibility and Releases

  • Odoc (PR #1398, merged): Requires dune ≥ 3.21 for OxCaml detection; the @empty alias check introduced in dune 3.20 forbids cram test files named empty.t. Link

ocaml/opam

Permalink

Features

  • opam (PR #6854): Open PR by WardBrian adds source-level compatibility with cmdliner 2.0 while retaining the vendored 1.3.0. Enables future upgrades to 2.1.0+ and completion-handler support. Link

  • opam (PR #6841): Open PR adds license as a queryable field in opam list output. Useful for automated license-auditing workflows. Link

  • opam (issue #6853): Open feature request for PowerShell tab-completion, dependent on the cmdliner 2.0 upgrade tracked in #6854. Would extend Windows shell integration. Link

  • opam (issue #6852): Open proposal to print the source repository name when a package exists in multiple opam repositories. Affects opam install, opam remove, and opam upgrade output. Link

Fixes

  • opam (issue #6848 / PR #6851): After a failed default-switch build, opam init silently skips switch creation on retry. Open PR #6851 would print a working opam switch create default 'ocaml>=4.05.0' command in the error note. Issue · PR

  • opam (issue #6850): opam remove --force on an uninstalled package does not clear its entry from the switch-state roots list, so opam install --restore keeps retrying it. No fix merged yet. Link

Compatibility and Releases

  • opam (issue #6849): The vendored cmdliner copy (1.3.0) is missing upstream fixes including dbuenzli/cmdliner#191. Maintainers confirmed no formal upgrade plan but are open to contributions. Link

ocaml/opam-repository

Permalink

Features

Menhir 20260122: Merged 2026-02-01, updating menhir, menhirLib, menhirGLR, menhirCST, and menhirSdk. The --strict flag now treats unused-token and unreachable-symbol warnings as errors, breaking downstream parsers. #29263

OCaml 5.6 dev packages: Merged 2026-01-26, adding ocaml.5.6.0, ocaml-variants.5.6.0+trunk, and ocaml-compiler.5.6 to track the development branch. #29290

New packages: First-time submissions merged this week include intel_hex (0.2, 0.3), mset.0.1.0, calendars.2.0.0, ocaml-yescrypt.0.1.1, lrgrep.0.3, smtml.0.20.0, libbinaryen.125.0.0, markdown_monolith.0.1.1, and rowex/bank/bancos 0.0.1. intel_hex, mset, calendars, ocaml-yescrypt, lrgrep, smtml, libbinaryen, markdown_monolith, bancos

Mosaic / Matrix / Toffee 0.1.0: Open PR submitting three interdependent terminal-UI packages (Elm-architecture framework, low-level terminal runtime, CSS layout engine). Awaiting resolution of a ppx_expect build issue. #29312

Fixes

dune-release 2.2.0: Merged 2026-01-29. Breaking: updated to cmdliner 2.0.0; shortened command-line arguments no longer work. #29307

ezcurl 0.3: Merged 2026-01-26. Breaking: Curl.t is now wrapped in a record. Also adds Ezcurl.Cookies and http_stream. #29257

Compatibility and Releases

OCaml 5.4 upper bounds: Merged bounds on fstar (≤2025.09.04) and MlFront_Cli (≤2.3.0) to address the Longident.t AST change in OCaml 5.4.0. fstar, MlFront_Cli

lwt 6.1.0: Open PR (labelled "consider for merge") for lwt and lwt_ppx. macOS/FreeBSD runtest failures from sandboxed bind calls remain unresolved; mirage-runtime carries a temporary lwt < 6.0.0 bound. #29295, bound

ocsigen/js_of_ocaml

Permalink

Features

js_of_ocaml Wasm runtime: exposes the JavaScript eval function to Wasm-compiled code. Merged by vouillon, 2026-01-30. #2108

js_of_ocaml: adds a CI job testing the internal JavaScript parser against the test262 suite. Merged by hhugo, 2026-01-26. #2149

js_of_ocaml: rewrites the user manual, consolidating bindings and library pages into a single JavaScript interop guide; adds quickstart and error-handling pages. Merged by hhugo, 2026-01-30. #2150

js_of_ocaml: opens a draft PR experimenting with static evaluation in the compiler. By vouillon, 2026-01-30. #2153

Fixes

js_of_ocaml: fixes miscompilation of loops placed at the start of exception handlers. Merged by vouillon, 2026-01-30. #2151

Compatibility and Releases

js_of_ocaml 6.3: release-preparation PR opened by hhugo, 2026-01-30; lists pending decisions on several open PRs and a TODO to re-export runtime_value into Js_of_ocaml.Js. #2152

oxcaml/merlin

Permalink

Features

  • Merlin kind-enclosing: Merged new kind-enclosing query, the jkind analogue of type-enclosing for hover. Supports -index to print a single kind. (#208)
  • Merlin mode-enclosing: Open PR adds mode-enclosing, a mode analogue of type-enclosing. Currently limited to variable bindings and usages; targets a branch for a new compiler version and is not yet releasable. (#210)

Compatibility and Releases

  • Merlin OxCaml sync: Merged OxCaml changes from 5.2.0minus-26 through 5.2.0minus-29 into Merlin, updating the compiler backend. (#212)

Fixes

  • Merlin record field completion: Merged fix importing upstream changes to correct record field completion behaviour. (#209)
  • Merlin locate-types: Merged cherry-pick of two upstream PRs improving locate-types, with an oxcaml-specific adjustment for Tpoly-wrapped parameter types. (#207)
  • Merlin signature help: Open PR proposes restricting signature-help responses to function parameters only, excluding the function name. (#206)

oxcaml/opam-repository

Permalink

Fixes

  • OxCaml opam-repository: PR #33 (merged) patches opam-core.2.5.0+ox and opam-format to work around a missing implicit cast from _ @ local -> _ to _ @ global -> _ in OxCaml. The author suggests OxCaml could handle this transparently upstream.

  • OxCaml opam-repository: PR #34 (merged) adds odoc and sherlodoc to the CI package-installation test list. odoc currently fails to compile under OxCaml (tracked in oxcaml/odoc#22).

oxcaml/oxcaml

Permalink

Features

OxCaml arm64 binary emitter: Merged a native machine-code emitter for arm64 with a typed DSL, making the ocaml-jit library architecture-independent. Enables JIT compilation on arm64 without an external assembler. #5177

OxCaml preemption (experimental): Open PR implementing runtime, effects-based preemption: a domain can be preempted at the next GC poll point, performing a Preemption effect that may go unhandled. A companion PR moves the per-domain tick thread into the runtime (configurable via OCAMLRUNPARAM T), paving the way for fiber preemption. #4881, #5349

OxCaml borrowing: Open PR adds a borrow_ operator for temporary aliased access to unique values without consuming uniqueness, following the DRFCaml type system. Borrowed values are local and aliased; the original regains uniqueness after the borrow scope. #5215

OxCaml unboxed keywords and #() literals: Merged #() literals and the abstract unit# type (kind void mod everything). Open PRs add bool# with #false/#true and a parallel set of #-prefixed keywords (#if, #assert, #while, etc.) that typecheck against unboxed types. #5156, #5151, #5166, #5167

OxCaml layout-polymorphic types: Open PR introduces the repr_ type operator, Ptyp_repr/Ttyp_repr AST nodes, and a Trepr type-expression constructor for kind-polymorphic layout types. Types are currently uninhabited; instantiation is deferred. #5068

OxCaml vec256 on arm: Open PR translates 256-bit vectors to pairs of 128-bit vectors on arm, splitting loads/stores into two 128-bit operations with preserved bounds and alignment checks. Enables 256-bit SIMD tests on arm without AVX intrinsics. #5291

Fixes

OxCaml Gc.stat: Merged fix reports heap_chunks for runtime 5 and includes free pools in heap_words and free_words, matching runtime 4 semantics more closely. #5226

Compatibility and Releases

OxCaml dissector 64-bit .eh_frame: Merged support for 64-bit .eh_frame sections required by large executables using the dissector. Adds --enable-assembler-suitable-for-dissector configure option (uses llvm-mc) and a -dissector-assume-lld-without-64-bit-eh-frames compiler flag as a workaround for missing lld/glibc support. #5303

14 repositories · no changes