Thicket thicket
ocaml
REPOS 27
W08.2026 · 16–22 Feb

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio (proposal): introduces Eio.Stdenv.tmp and Path.open_temp_dir / Path.with_temp_dir for managed temporary-directory creation with automatic cleanup on release. Open proposal; no implementation merged. #831

Fixes

  • Eio (bug report): Eio.Net.run_server terminates all running fibers when accept fails (e.g. FD exhaustion), with no per-connection error recovery. Also reports a semaphore not released in that path. Open issue; discussion suggests an on_accept_error callback. #830

ocaml/RFCs

Permalink

No user-facing language, compiler, or core tooling changes were merged in this interval. The sole activity (a cosmetic fix to contributor avatar rendering in the RFCs repository) is routine maintenance and does not affect software behaviour.

ocaml/dune

Permalink

Features

Dune OxCaml: merged support for js_of_ocaml with parameterised libraries, enabling separate compilation for OxCaml projects. Closes #12564 via #13414.

Dune pkg: open proposal to detect relocatable OCaml compilers (5.5 or the relocatable-compiler meta-package) and build them as regular packages, eliminating toolchain rebuilds. See #13321 and tracking issue #13229.

Dune pkg: three open issues split from #11868 to unify portable lock directory solving into a single SAT pass, default the platform set to the current OS, and enforce cross-platform version consistency (#13645, #13646, #13647).

Compatibility and Releases

Dune 3.21.1: release branch merged to main on 2026-02-19 via #13627. A NetBSD build fix was found to be missing from the vendored LMDB; the changelog is being amended (#13076).

Fixes

Dune C stubs: build rules now declare dependencies on *.h files in the OCaml runtime directory, so switching compilers under the same prefix triggers C stub recompilation. Merged in #13652, fixing #13651.

Dune Rocq: multiple rocq.extraction stanzas in one directory no longer produce a "multiple rules" error. Merged in #13531, fixing #8042.

Dune pkg: the := and =: operators in withenv now add trailing/leading separators when the variable is unset, matching opam's documented semantics. Merged in #13634, fixing #10440.

Dune jsoo: library archive rules are generated on demand per requested configuration instead of upfront for all variants, reducing rule volume and enabling more incremental builds. Merged in #13611.

ocaml/merlin

Permalink

Features

  • Merlin enclosing command: open RFC (#2029) proposes a -stop flag so enclosing returns only nodes spanning a range rather than a single point. Intended to fix locate-types and annotate-type LSP actions that currently select the wrong sub-expression.

  • Merlin code actions: open issue (#2037) requests that the "Destruct-line (enumerate-cases, use existing match)" action be available on the match token itself, not only on individual pattern lines. Currently, jumping to a diagnostic on match does not surface the fix.

Fixes

  • Merlin signature help: merged (#2032, 2026-02-18) corrects signature-help output when labelled or optional parameters are present in the function being called.

  • Merlin signature help (let..in): open PR (#2036) addresses incorrect signature-help results for let..in bindings. CI shows a regression in the issue_fun_name test; the PR is not yet merged.

ocaml/ocaml

Permalink

Features

OCaml language (proposal): nested record definitions in record fields, e.g. type t = { a : { b : int } }, extending the existing inline-record mechanism from constructors. Arbitrary nesting and polymorphic parameters are supported; standalone construction of inner records is rejected. Open PR #14527.

Compatibility and Releases

OCaml 5.4.1 / 4.14.3: bug-fix releases published 2026-02-17. See 5.4.1 and 4.14.3.

OCaml C API: removes the long-deprecated caml_fatal_error_arg and caml_fatal_error_arg2 symbols (absent from headers since 5.0). Merged as #14559.

OCaml 5.5 (type system): removes the special treatment of local abstract type definitions, so patterns matching on such types now require an explicit discriminating definition (e.g. private sum types). Code relying on the old implicit non-aliasability assumption will produce spurious partial-match warnings. Clarified in closed issue #14562.

Fixes

OCaml 5.5 trunk: fixes a let module value-restriction regression introduced by #13839, where type variables in let module bindings were incorrectly flagged as non-generalizable. Merged as #14556; cherry-picked to the 5.5 branch.

OCaml 5.4.1 (aarch64): assembler emits "immediate out of range" when compiling large files (e.g. guestfs.ml) with ocamlopt -g. Confirmed regression from 5.4.0; open issue #14574.

OCaml s390x backend: PLT lazy-binding trampolines corrupt the heap when r15 points to an OCaml fiber stack, causing segfaults with libasmrun_shared.so. Fix replaces @plt calls with GOT-indirect calls. Open PR #14547.

OCaml runtime (trunk): rewrites the minor-GC oldify_one hot path to inline allocation and avoid global-variable access, yielding a measured 2–3% total-runtime improvement on promotion-heavy workloads. Open PR #14571.

ocaml/ocaml-lsp

Permalink

Features

  • ocaml-lsp (PR #1584): proposes a custom LSP request exposing Merlin's locate-types data, including a compact field-set of all reachable types. Still open; not yet merged.

Fixes

  • ocaml-lsp (issue #1588): the "Construct an expression" code action sends the VSCode-specific command editor.action.triggerSuggest, which Helix and other editors reject. Discussion suggests restricting the action to clients that declare support. Open.
  • ocaml-lsp (issue #1587): hover does not trigger for some_class or super in class inheritance syntax (e.g. inherit [some_ty] some_class as super). Open.

ocaml/ocaml.org

Permalink

Features

  • OCaml Planet: adds Rocq Prover as a new blog source and disables the dead ujamjar and coq feeds. Existing posts under those paths still resolve. #3514
  • ocaml.org security page: adds a link to the security reports. #3516
  • OCaml Platform Newsletter: PR opened to add the November 2025 through January 2026 issues. #3519

Fixes

  • QCheck 0.90/0.91 documentation: issue updated; a comment reports the docs are now published at ocaml.org/p/qcheck-core/latest. The issue remains open. #3437

Compatibility and Releases

  • YouTube RSS feeds: nine video sources return 404 due to a platform-wide YouTube RSS outage; no code change needed, tracked for upstream resolution. #3512
  • Planet scraper: proposal to increase the HTTP timeout from 3 s to 10 s and set a User-Agent header to reduce feed fetch failures. #3513
  • River dependency: proposal to remove the pin on the aantron/river fork and use stock river 0.4 from opam-repository. #3515

ocaml/odoc

Permalink

Features

  • odoc PR #1399: Open proposal (updated 2026-02-19) to upstream OxCaml support, building on #1398 for ocaml-config:ox detection. Replaces the prior OCAML_VERSION heuristic with exact identification available since dune 3.21. PR link.

ocaml/opam

Permalink

Fixes

  • opam (PR #6489, merged): Depexts availability is now computed during opam update (repository cache reload) instead of on demand. Resolves the opam show slowdown from 2.0.7 to 2.1.0-alpha and aligns depexts support across platforms.

  • opam (PR #6860, merged): Adds a regression test confirming opam switch link does not corrupt an existing local _opam switch.

Features

  • opam (PR #6859, open): Proposes the opam init shell hook update the switch bin directory in place within PATH rather than prepending it, preserving the user's original directory ordering. Does not affect eval $(opam env).

Compatibility and Releases

  • opam (issue #6857, open): Reports opam switch link silently breaking an existing _opam switch. A comment notes the latest opam version handles this correctly; the issue remains open pending confirmation.

ocaml/opam-repository

Permalink

Features

testcontainers 0.1.0: 11 new packages providing Docker-based integration testing for OCaml, covering PostgreSQL, MySQL, Redis, Kafka, Elasticsearch, MongoDB, RabbitMQ, Memcached, LocalStack, and MockServer. Merged 2026-02-18. #29350

mnet 0.0.1, mhttp 0.0.1, mcrunch 0.0.1, flux 0.0.1~beta3: First public releases of a unikernel networking and I/O stack from robur-coop: TCP for Miou/Solo5, HTTP for unikernels, a file-to-module crunched-code generator, and composable streaming abstractions. All merged 2026-02-18. mnet mhttp mcrunch flux

opam-publish 3.0.0: Major version bump for the package-publishing tool, opened 2026-02-20. Still open. #29443

Fixes

OCaml 5.4.1 / 4.14.3: Bug-fix compiler releases merged 2026-02-18. 5.4.1 restores -pack support on macOS; both include runtime fixes. 4.14.3 required a patch for GCC 7 (__has_builtin guard) before merging. #29408

js_of_ocaml 6.3.0 / 6.3.2: Merged 2026-02-18. Adds Wasm number unboxing, reference unboxing, a constant-sinking pass, import/export attributes, decorators, and using resource management in the JS parser. 6.3.2 fixes shell-completion file installation. 6.3.0 6.3.2

Compatibility and Releases

containers 3.18: Merged 2026-02-16 with breaking changes: CCListLabel.compare/equal now take named arguments, CCFloat.{min,max} NaN semantics and CCInt.rem negative-number semantics align with Stdlib, CCMap.add_seq argument order changed. #29372

ambient-context 0.2: Open PR (2026-02-18) with breaking API changes: create_key → new_key, with_binding → with_key_bound_to, storage type changed from first-class module to Storage.t record. Downstream opentelemetry-* packages need upper bounds. #29418

qcow 0.13.0: Open PR (2026-02-18) with breaking changes to qcow_stream: allocated data clusters now returned in Qcow_mapping.t, reducing memory usage. Awaiting dependency fixes. #29420

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml variable coalescing (PR #2166): Open proposal to merge variables with disjoint lifespans in generated JavaScript. Reduces V8 stack slots by 74–91% and gzip size by 10–16% on benchmarks. Affects output size and runtime stack pressure for large programs.

  • js_of_ocaml --build-config / --apply-build-config (PR #2177): Open proposal adding two compiler flags. --build-config prints build-relevant settings as key=value pairs; --apply-build-config overrides them, taking precedence over other flags. Enables coherent compilation when linking units that must share settings.

  • js_of_ocaml Wasm dynlink/toplevel (PR #2187): Open proposal to support dynlink and toplevel execution in the Wasm backend. References existing compiler/tests-toplevel and toplevel/examples/lwt_toplevel as test targets.

  • js_of_ocaml Wasm native effects (PR #2189): Open proposal to emit native Wasm effects, extending the Wasm backend's capability set.

Fixes

  • js_of_ocaml Wasm string/arraybuffer (PR #2124): Merged 2026-02-17. Optimises string conversion and copy operations to and from ArrayBuffer in the Wasm backend.

  • js_of_ocaml Wasm safepoint table (PR #2165): Open workaround for V8 safepoint-table bloat caused by large array.new_fixed calls. Introduces a 100-element threshold above which explicit stores replace inline initialisation, reducing safepoint size from 8.5 MB to 435 KB on the PRT benchmark. A Chrome 147 canary commit may make the workaround unnecessary.

  • js_of_ocaml stack overflow with menhir parsers (issue #2122): Open bug, updated 2026-02-19. Menhir-generated AArch64 parsers trigger stack overflow in Firefox on macOS with js_of_ocaml 5.5.0; other browsers and platforms work. A fix in PR #2166 did not resolve the Firefox/macOS case.

oxcaml/merlin

Permalink

Fixes

  • Merlin (oxcaml): fixes go-to-definition for punned record patterns. In let f { a; b } = ..., selecting a now navigates to the label definition rather than reporting the cursor is already at the definition. #147

  • Merlin (oxcaml): open PR fixes type recovery in function applications within local opens. In Foo.(bar baz) with a type mismatch, locate on bar previously failed with "Not in environment"; the fix preserves the function identifier in the typed tree. #222

Compatibility and Releases

  • Merlin 5.2.0minus-31: merged sync from OxCaml bringing experimental Format_doc and abstract jkind infrastructure. The Format_doc migration changes type error printer evaluation from lazy to eager, altering type variable naming in reported errors. #221

Features

  • Merlin (oxcaml): open PR adds tests for signature help on functions with only labelled arguments. #205

oxcaml/oxcaml

Permalink

Features

  • OxCaml static computations: proposes a new compilation pass between transl and simplif that splits tlambda into static and dynamic parts for compile-time evaluation. Currently a no-op; all tests pass unchanged. (#5430, open)

  • OxCaml type-level eval: adds Tquote_eval to the type system, distributing eval through concrete type constructors for runtime metaprogramming. Introduces evals-to constraints for inference with non-injective eval. (#5402, open; parent #5288)

  • OxCaml mode morphisms: restructures morphism representation into three layers (core, simple, full) to guarantee a finite number of left- or right-allowed morphisms. Part of ongoing mode-system research. (#5453, open)

  • OxCaml chamelon: adds dune-project integration with minimize-failure and minimize-stdlib Makefile targets, parsing dune build --debug-dependency-path and dune show rules to locate and minimize failing targets. (#5423, merged)

  • OxCaml expect_asm: merged support for asserting on generated assembly in expect tests, with architecture-specific expectations (X86_64 only) and an only-default-codegen action. (#5350, merged)

Fixes

  • OxCaml unboxed products (bytecode): fixes aliasing of nested unboxed product fields in records by deep-copying blocks on read and write. Previously ocamlc and ocamlopt could produce different results. (#5386, merged)

  • OxCaml register allocation: replaces spill instructions for set-but-never-read temporaries with a no-op Dummy_use operation, eliminating useless spills that had become common. (#5429, merged)

  • OxCaml inlining attributes: reports that [@inlined always] at a call site overrides [@inline never] at the definition in non-classic mode. A fix lowering the call-site priority is in draft. (#5438, open; #5439, draft)

14 repositories · no changes