Thicket thicket
ocaml
REPOS 27
W35.2026 · 24–30 Aug

All repository summaries

11 active · 16 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • #927 (open, by kentookura): Proposes Eio.Fiber.List.partition_map. Reviewers suggest a simpler one-liner via List.partition_map over map ?max_fibers rather than the initial fork-and-wait approach.
  • #926 (merged 2026-08-24, by talex5): Adds a hand-written index.mld for the eio package, replacing the auto-generated index for better documentation navigation.

Fixes

  • #928 (open, by avsm): Proposes rejecting out-of-range uid/gid in the portable chown layer while allowing −1 for "unchanged" per POSIX. Notes that uid_t/gid_t signedness varies across platforms, requiring explicit casts.

ocaml/dune

Permalink

Features

  • Dune 3.25: sandboxed pkg-config, MDX, and PPX lint actions. pkg-config queries, ocaml-mdx generators (extension 0.6), and PPX lint actions now run inside the sandbox by default, preventing them from reading undeclared workspace inputs. Earlier language versions retain prior behaviour. (#16178, #16177, #16176)

  • dune pkg lock: single SAT solve across all requested platforms. All platform roles are solved in one SAT problem; packages appearing on multiple platforms are constrained to the same version. Portable lock directories now produce a consistent cross-platform solution. (#15982, by Alizter)

  • dune trace cat: new --only-actions and --no-actions flags. Mutually exclusive options filter events collected from actions while leaving the default combined output unchanged. Applies to JSON, S-expression, Chrome, and followed output. (#16245)

Compatibility and Releases

  • Experimental (fdo ...) workspace field removed. The FDO integration with external OCamlFDO tooling has no known users and is deleted along with its compilation, linking, and documentation. Projects using the field must remove it. (#16198)

  • Dune 3.25: cram test names preserve the full .t basename. Generated aliases and dune test targets use the complete filename from language 3.25 onward; older projects retain the historical truncated form. (#16146)

Fixes

  • RPC: forwarded paths rebased to workspace root. Relative build, exec, and runtest paths sent to a running Dune process are now interpreted from the client invocation directory rather than the server's startup directory. Fixes editor-integration workflows where client and server start in different subdirectories. (#16267)

  • Merlin: mode-aware configurations for mixed libraries. OCaml and Melange .merlin configs are generated and persisted for mixed-mode libraries; exact file matches are preferred over extensionless fallbacks. Improves editor diagnostics in projects using both backends. (#16192, #16194, by anmonteiro)

  • dune build @opam: promotion restored after file deletion. Deleting a generated .opam file now causes @opam to regenerate and offer the file for promotion. Fixes a 3.24.2 regression where the stale build-tree copy was excluded from the sandbox. (#16234, #16233)

  • OCAMLFIND_CONF toolchain-only config crashes (open). Setting OCAMLFIND_CONF to a findlib.conf that defines a tool only under a toolchain predicate raises Filename.of_string_exn: invalid filename since 3.24.2. A fix distinguishing "no matching predicate" from "invalid value" is in review. (#16226, #16239)

ocaml/merlin

Permalink

Fixes

  • locate with an explicit identifier no longer returns "Already at definition point" when the cursor sits on a different declaration. Context detection now compares the cursor declaration's name against the requested identifier before short-circuiting. Covers value and type declarations. (#2118, opened by aryemans; not yet merged)

ocaml/ocaml

Permalink

Fixes

  • Unmarshaling overflow guard (merged): Marshal.from_string and Marshal.from_channel now reject marshaled data whose header_len + data_len overflows, preventing ineffective bounds checks. Backported to 4.14 in #15030. (#15019)

  • Runtime events ring buffer size overflow (merged): The ring buffer file size is now a size_t with an overflow check. Previously, e=21,d=128 caused SIGBUS and e=22+ silently corrupted event names. (#15000)

  • Win32 thread starvation regression (open): A non-yielding thread on Windows 5.5.0 held the runtime lock indefinitely, starving other threads in its domain. The fix corrects an invalid backup-thread handle passed to caml_plat_thread_equal. Reported in #15028; fix in #15029.

  • Win32 Unix.select descriptor mapping (open): Two bugs caused out-of-bounds lookups or wrong descriptors when a socket appeared in multiple fd lists or duplicates existed within one list. The fix replaces positional indices with per-mode handle sets. Reported in #14758; fix in #15025.

  • POWER assembler error for frames > 32 KB (open): Frame-management offsets exceeding the 16-bit immediate range now use addis-based sequences. Previously, functions with ~6000 locals failed with "operand out of range". (#15021)

Features

  • Bit counting primitives (open): Int.popcount, Int.leading_zeros, and Int.trailing_zeros become %popcount, %clz, %ctz primitives. arm64 emits native clz/ctz; all backends gain a speedup over the prior OCaml-level implementations. (#15018)

  • Global roots debugging (open): Adds Gc.check_roots (runtime abort on corrupted root) and a GDB ocaml roots command that reports the registration site of a damaged root. XOR-stamped cells and a provenance skiplist track origin. (#15027)

  • ocamldebug 64-bit headers (open): The REQ_GET_HEADER protocol now transmits the full 64-bit object header on 64-bit platforms, fixing incorrect array sizes for objects > 2²² words. May require patches in earlybird. (#15022)

ocaml/ocaml-lsp

Permalink

Features

  • Document and range formatting now support ocp-indent. Formatter selection walks up from the document directory to the workspace root; .ocamlformat takes precedence over .ocp-indent. (#2148)
  • textDocument/onTypeFormatting is implemented for OCaml and ocamllex files via a persistent ocp-indent-rpc helper. Newline-triggered requests update only the new line's leading whitespace; missing helpers degrade to no edits. (#1986)

Compatibility

  • workspace/symbol, textDocument/codeLens, textDocument/signatureHelp, textDocument/selectionRange, textDocument/rename, and workspace/workspaceFolders now accept the nullable and variant result shapes defined by LSP 3.18. (#2154, #2153, #2152, #2151, #2025)
  • Merlin diagnostic relatedInformation locations were emitted with one-based line numbers instead of zero-based LSP positions. Reported by Alizter; closed 2026-08-31. (#2145)

Fixes

  • textDocument/inlayHint responses are now filtered to the client-requested range. Hints whose insertion positions fall outside the viewport are no longer returned. (#2155)
  • Edit ranges for replacements ending with a newline now advance the end position to the next line. Previously the trailing newline was discarded, causing ranges to end on the prior line. (#2159)
  • Destruct-line code actions now reject Merlin recovery locations whose endpoints escape the queried source line. This prevents edits targeting unrelated source or splitting UTF-8 scalars. (#2063)
  • ocamlformat-rpc startup negotiation failures no longer terminate the LSP session. The server reports the failure as a LogMessage and falls back to unformatted hover output. (#2132)

ocaml/ocaml.org

Permalink

Features

  • Planet scraper now uses a 30 s timeout, a descriptive User-Agent header, and 3-attempt retry with exponential backoff (2 s, 4 s) per feed. Merged 2026-08-25. (#3752)
  • Dune 3.24.1 platform release announcement and changelog published on the site. Merged 2026-08-26. (#3723)

Compatibility and Releases

  • An opt-in repair: flag for per-feed HTML void-element self-closing was proposed for the MirageOS feed but closed unmerged (2026-09-02) after the upstream feed was fixed directly. (#3756)

Fixes

  • ocaml-book and emilpriver planet sources marked disabled: true after both authors confirmed their blogs are gone; archived posts remain published. Merged 2026-08-26. (#3755)
  • Five planet sources (mirage, ocaml-book, patricoferris, dinosaure, emilpriver) fail scraping for non-timeout reasons (malformed XML, DNS failure, 404). Open issue tracking per-source resolution. (#3753)

ocaml/odoc

Permalink

Features

  • OxCaml modes (@ local, @ unique, @ once, etc.) now render in generated documentation. Merged 2026-08-27. (#1454)
  • include functor support: odoc will display that items were included via a functor. Open, under review. (#1452)
  • Kind abbreviations (kind_) get a new namespace with rendering and cross-reference links. Open, under review. (#1467)

Performance

  • Removing the internal id wrapper reduces generated documentation disk usage by ~30% with no measurable speed change. Open, not yet merged. (#1479)

Fixes

  • odoc no longer raises Failure("invalid core type") when a with-bound contains an arbitrary type (e.g. 'a M.t). Fixes documentation builds for base. Merged 2026-08-28. (#1466)
  • odoc_driver now uses Findlib's own logic to locate the stdlib directory, fixing builds where stdlib lives in $prefix/lib64 (e.g. openSUSE Tumbleweed). Merged manually 2026-08-27. (#1474)

Compatibility and Releases

  • OxCaml 5.2.0minus39 compatibility: module types with with kind expressions are handled; opam constraint updated. Merged 2026-08-26. (#1469)

ocaml/opam

Permalink

Features

Compatibility and Releases

  • OpamFilename.in_dir removed in 2.6.0~beta1 (closed 2026-08-25): the function was deleted in #6910. Migration path: use Opamfile.exec/OpamSystem.command for in-directory execution, or reimplement the three-line chdir wrapper. Affects external tools such as orb.

Fixes

ocaml/opam-repository

Permalink

Features

  • opam 2.6.0~beta1 (8 packages: opam-client, opam-core, opam-devel, opam-format, opam-installer, opam-repository, opam-solver, opam-state) merged. First beta of the 2.6 series. (#30542)
  • A cluster of Eio-native packages merged: aws-eio.0.1.0 (SigV4 signing, credential resolution, HTTP transport), kafka-eio.0.1.1 (librdkafka-backed producer/consumer), https-eio.0.1.0 (TLS wrapper for cohttp-eio), and obs-eio.0.1.0 (tracing, structured logging, metrics). (#30589, #30557, #30570, #30595)
  • New packages merged: owebview.0.1.0 (cross-platform webview bindings), cdp/cdp-gen.0.1.0 (Chrome DevTools Protocol types), hpke.0.1.1 (RFC 9180), highway.0.0.1 (HTTP router), fxmacrodata.0.1.0, mfetch.0.1.0, ucharset.0.1.0, uniq.0.1.0, ease-caml.0.1.7, locswijch.0.1.1, river.0.5, forcamla.0.4.0. (#30577, #30594, #30590, #30555, #30575, #30573, #30572, #30383, #30599, #30553, #30554, #30558)

Fixes

  • mirage-crypto 2.4.1 (6 packages) merged with security hardening: CCM/GCM/ChaCha20 block-count limits, RSA encoding validation, poly1305 negative-length rejection, RNG fork-duplicate fix, X25519 constant-time zero check. (#30568)

Compatibility and Releases

  • wire 1.2.0 merged with multiple breaking changes: fixed-width integer fields now decode to typed carriers (e.g. uint8→Wire.UInt8.t), uint63/uint63be removed, Wire.uint decodes to Optint.Int63.t, OCaml ≥ 5.3 required, Codec.encode raises Invalid_argument on out-of-range values. (#30580)
  • miou 0.9.0 merged. Breaking: internal Self effect no longer yields; Miou.Ownership functions enforce atomicity for finalizer attachment. Benchmarks on httpcats show no throughput regression. (#30582)
  • quickjs 0.5.0 merged with breaking API changes: RegExp.exec returns match_result option, captures are string option array, indices are UTF-16 code units, Libregexp/Atod/Dtoa/Cutils/Bindings wrapped under Quickjs_c.*/Quickjs_bindings. (#30212)
  • mnet 0.0.5 (7 packages) merged. Breaking: TCP.get renamed to TCP.read, TCP.{really_,}read renamed to TCP.{really_,}input. Also adds Mnet_dhcp.Or_static and IPv6 gateway specification. (#30584)

ocsigen/js_of_ocaml

Permalink

Features

  • wasm_of_ocaml gains a --setenv option to set environment variables in the generated WASI runtime. Open PR by vouillon. #2415
  • Wasm output will emit a sourcemap mapping at the start of each function, improving stack-trace resolution in browser devtools. Open PR by vouillon. #2417

Compatibility and Releases

  • Merged: The dev CI doc build now runs wodoc --strict-refs, failing on dead intra-manual links or unrendered wiki images. Release builds are unaffected. By balat. #2411

Fixes

  • Merged: Wasm Node runtime now resolves .wasm assets relative to the runtime file (module.filename) instead of require.main.filename. Programs loaded via require, symlinks, or worker threads no longer crash. By vouillon. #2389
  • Open: Wasm sourcemap support probe on Windows redirected stderr to /dev/null, which does not exist there, silently disabling sourcemaps. Replaced with Filename.null. By vouillon. #2418
  • Open: Typed array constructors (Int32Array, Float64Array, etc.) now accept number_t js_array t instead of float js_array t, correcting the OCaml type signature. By vouillon. #2416
  • Open: OCaml-to-JS string conversion uses TextDecoder with ignoreBOM:true so a leading BOM is preserved rather than stripped. By vouillon. #2414

oxcaml/oxcaml

Permalink

Features

  • Mode solver levels and operations (merged): Adds level tracking, generalize, copy, and alloc-mode-as-locality to the mode solver, providing the infrastructure for mode polymorphism. Stacked as #6966 over #5478–#5482.

  • Box kinds (open): Introduces the k box kind constructor, where k box < scannable always holds and specific subkinds (e.g. bits64 box < value non_float) are enumerated. Box kinds are not yet linked to types. #6956

  • Addressable kinds (merged): Adds an idempotent addressable operator to the kind system, distinguishing kinds whose boxed form is a block (pointer-takeable) from those that are immediates. Enables ptr_of on bits64 box but rejects bits8 box. #6712

  • LTO solution files (merged + open): -reaper-solve now writes .ltosol files and unions dependency graphs from .cmr inputs; -reaper-rebuild reads them. Full solution serialisation and calling-convention threading are in progress. #6752, #6731, #6895, #6964

  • SSA empty-loop deletion (open): A -ssa-delete-empty-loops pass uses Fourier-Motzkin entailment over affine facts to prove loop termination and side-effect-freedom, then rewrites the header exit to an unconditional jump. Off by default. #6948

  • Experimental Eval.inject (open): Runtime value injection for metaprogramming quotes, with a %reify_approx primitive that marshals middle-end approximations so the second compilation can drive inlining. Polymorphic values require monomorphisation annotations. #6560

Fixes

  • DWARF size and correctness (merged): A series of changes reduces ocamlopt's DWARF from 361 MiB to ~46 MiB on macOS: assembler-local temporaries, free-depth cache keys, shared enum DIEs, compact forms, and correct file paths for inlined frames. #6915, #6916, #6945, #6882, #6877, #6517

  • CFG block-layout pass (merged): New -cfg-block-layout pass reorders blocks to maximise fallthrough and sink cold blocks, removing ~15% of intra-function unconditional jumps at +0.3% text size. #6918

16 repositories · no changes