Thicket thicket
ocaml
REPOS 27
W40.2026 · 28 Sep – 4 Oct

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/domainslib

Permalink

Fixes

  • #125 (DarioHett): Closed without merge on 2026-10-02. Proposed a Parray module providing iterators that mirror Stdlib.Array for the domainslib parallel-array type. No merged change; the API is not available.

ocaml-multicore/eio

Permalink

Features

  • Eio.Fiber.List.partition_map is now available. Merged in #927 (by kentookura).

  • Eio.Path.sync_dir flushes a directory entry to stable storage. Merged in #943; closes #912. Windows is a no-op.

  • Windows process spawning is under review in #936 (by avsm). Uses CreateProcess with restricted fd inheritance; layered over pipe support in #929.

Fixes

  • On macOS/BSDs, a signal arriving between the runtime's last pending-signal check and poll(2) is not delivered until the next timer fires. Reported in #946; a kqueue EVFILT_SIGNAL patch is proposed.

Compatibility and Releases

  • uring-dependent tests are skipped when io_uring is unavailable, preventing false failures. Merged in #945.

  • Eio.Net.run_server documentation now notes that an accept failure (e.g. fd exhaustion) terminates the server; operators should set max_connections or raise the OS limit. Merged in #944; closes #830.

ocaml-multicore/ocaml-uring

Permalink

Fixes

  • Tests in tests/main.md now call mdx_skip to skip blocks that require kernel features absent on the host (e.g. Uring.Op.writev_fixed, Linux 6.15+). This prevents test hangs on older-kernel build environments. Merged in #162 by @talex5; closes #161.

  • The fix relies on two MDX tooling additions (separate repository): hang-location reporting in #476 (shipped in MDX 2.6.0) and the mdx_skip function in #483. These allow test authors to conditionally skip the remainder of a block with a diagnostic message.

ocaml/dune

Permalink

Features

  • PR #15622 (open): (instrumentation (backend X) (libraries ...)) links the listed libraries only when the backend is active. Requires dune lang 3.26.
  • PR #16475 (open): (job_slots ...) rule exposes a computed parallelism count via an environment variable for polyglot builds driven by Dune.
  • PR #13758 (open): dune format-dune-file preserves multi-line block-string syntax (\|, \>) for lang 3.25+ instead of lowering to quoted strings.

Compatibility and Releases

  • 3.25.0~alpha0 published (2026-10-02). Breaking: generated files are read-only even before lang 2.4; : is rejected in context names; (warnings (duplicate_deps ..)) now requires lang 3.22.
  • PR #16523 (merged): RPC and supported Dune language version bumped to 3.26.

Fixes

  • PR #16515 (merged): dune build now shows curl's own error text (e.g. "could not resolve host") instead of "invalid error code 6" on offline fetch failures.
  • PR #16519 (merged): Empty patches are treated as no-ops, matching Opam behaviour.
  • PR #16529 (merged): Installed packages discovered through a local package's library closure are accepted on language versions before 2.9, fixing a regression from #16362.
  • PR #16536 (merged): Merlin reader selection disambiguates preprocessed filenames without extensions, fixing lookup for .ml/.mli pairs.

ocaml/merlin

Permalink

Fixes

  • #2135 (merged, @voodoos): merlin single outline no longer emits compiler-generated (ghost) bindings as children. The LSP selectionRange containment invariant is now upheld; editors receiving outline data will not see invalid line 0, col -1 selections. Supersedes the earlier #2111 approach.

  • #2138 (open, @PizieDust): Proposes fixing diagnostic deduplication so that multiple errors spanning the same source range are all reported, ordered by severity. Currently List.sort_uniq drops all but one diagnostic per range. Affects merlin single diagnostics output in editors.

  • #2118 (closed without merge, @aryemans): A fix for locate returning "Already at definition point" when the cursor is on a different declaration than the requested identifier was closed pending a better solution. The underlying bug (#2033) remains unfixed.

Compatibility and Releases

  • #2086 (merged, @Tim-ats-d): CI compiler updated from OCaml 5.3 to 5.5; Irmin lock file regenerated for 5.5.0. No user-facing API change.

ocaml/ocaml

Permalink

Features

  • Optional polymorphic parameters are now supported in function signatures, e.g. let f (?x: 'a. 'a -> 'a) () = (). Merged 2026-10-01. #14985
  • Bytecode .cmo files now carry hints for immediate-value reads and variant-type tests, usable by downstream bytecode compilers such as wasm_of_ocaml. Merged 2026-10-02. #15122

Compatibility and Releases

  • The instrumented runtime is no longer compiled by default. Complete removal of the code is planned after the 5.6 branch. Merged 2026-10-01. #15117
  • A follow-up PR proposes removing the instrumented runtime code entirely, including the ?alloc and EV_ALLOC event paths. Open. #15130

Fixes

  • The pattern-matching compiler no longer uses GADT equations from a single row to classify shared record fields as immediate, preventing unregistered GC roots. Merged 2026-09-30. #15114
  • Three security fixes merged 2026-09-29: Unix.map_file overflow guard (OSEC-2026-22), Str.string_partial_match invalid captured groups (OSEC-2026-21), and Marshal demarshaling issues (OSEC-2026-23). #15112 #15113 #15115
  • Int64.of_float, Int64.to_float, and Int32/Nativeint equivalents now compile to native instructions instead of C calls, roughly doubling throughput on amd64. Merged 2026-09-29. #15084
  • s390x now permits unaligned memory accesses, eliminating byte-at-a-time sequences in Bytes.get_int64 and similar operations. Merged 2026-09-28. #15090

ocaml/ocaml-lsp

Permalink

Fixes

  • #2228 (closed unmerged, 2026-09-29): Attempted UTF-16 position-encoding conversion for LSP clients, partially addressing #2138. The fix was not merged; the encoding bug remains open.

Features

  • #1546 (closed unmerged, 2026-09-29): Refactored the "extract" code action to delegate to a new Merlin command (#1948). Closed after ~14 months without merging; the previous broken code action remains in place.

ocaml/ocaml.org

Permalink

Fixes

  • ocaml.org was down ~6 h on 3 Oct due to a socket fd leak in gluten (the I/O runtime under Dream). A patched fork is now pinned; the upstream fix is at #90. (#3831, merged)
  • Fixed broken links and type errors in tutorials: the error-handling guide's Yaml/Result example, the loops/recursion range reference, the cookbook Dream templates link, and the CONTRIBUTING.md success-stories URL. (#3819, merged)
  • The Planet scraper pulled ~200 non-OCaml Terraform posts from the terrateam feed after its RSS URL redirected to a general blog. publish_all is now false so the "caml" keyword filter applies. (#3809, merged)

Infrastructure

  • The /mcp endpoint is disabled in the deployed image (reverts #3786). The route returns 404; the implementation remains in-tree and can be re-enabled via OCAMLORG_MCP_ENABLED=true. (#3832, merged)
  • The data-packer now serialises the embedded blob with stdlib Marshal instead of bin_prot, removing 9 packages from the dependency closure. Blob size is ~1.3 % smaller. (#3824, merged)

Compatibility

  • Upgrades OCaml 5.2.0 → 5.4.1 and Dream alpha7 → alpha8. Stacked on #3821 (ocamlformat 0.29.0); 5.5 is blocked by ppx_import. (#3822, open)

Content

  • "The Functional Programmer" blog source was removed from the Planet and its scraped posts deleted. The source was identified as low-quality or fraudulent. (#3829, #3830, merged)
  • The OCaml-CI tutorial was edited: a leaked AI-chat artifact was removed, stale example output (alpine-3.10-ocaml-4.08) was replaced with current variants, and a master/main branch inconsistency was fixed. (#3823, merged)

ocaml/odoc

Permalink

Features

  • Display [@atomic] annotations in record fields (PR #1496, opened 2026-10-01, in progress). Parses the annotation from .cmi/.cmti and renders it on mutable fields. Resolves issue #1405.

  • OxCaml parameterized library support (PR #1464, ongoing). Adds link resolution for Lib[Param:Impl] syntax and fixes broken references to instantiated parameterized libraries. Fixes #1390.

Fixes

  • ocamllex exhaustiveness warning (PR #1494, merged 2026-09-28). Handles the missing-match case explicitly instead of relying on a Failure exception, silencing the new OCaml 5.6 warning. Error messages now start character numbering at 1.

  • Incremental build broken by stale module hashes (issue #1396, closed 2026-09-28). odoc compile previously resolved modules without hash checks, causing silent link failures. Fixed in PR #1402.

Compatibility and Releases

  • OCaml 5.6 support (PR #1472, ongoing). Addresses compatibility issues with the 5.6 toolchain. Fixes #1470.

  • Silence crunch build output (PR #1493, ongoing). Suppresses informational messages from the crunch build rule to match other dune rules and reduce noise.

ocaml/opam

Permalink

Fixes

  • opam install <pkg> --deps-only now installs the target package's own depexts, restoring 2.5.2 behaviour. Merged in #7158 and backported to the 2.6 branch in #7174.

  • Merged #7170 replaces the internal Map.union with the Stdlib version (OCaml ≥ 4.03), improving one benchmark by ~23%. The API change is breaking for opam-rt and requires a matching update there.

Compatibility and Releases

  • Open issue #7165 documents a git-cache race: parallel fetches to the same repository cause redundant network traffic and cache pushes. --global download-jobs=1 is a workaround; a targeted fix is proposed.

Features

  • Open PR #7179 detects an interactive shell via $- instead of [ -t 0 ], so env_hook.sh and complete.sh are sourced under VSCode remote-SSH where stdin is not a tty. Fixes #6606.

  • Open PR #7180 creates symlinks atomically (temp name + rename(2)), eliminating EEXIST failures when concurrent opam processes write the same download-cache path. Fixes #5739.

  • Open PR #7172 updates the vendored checkseum and decompress lockfile to restore FreeBSD/i386 compilation. Tracks #7163, targeted at 2.6.1.

  • Open PR #6980 allows opam install to read git repositories owned by another local user via GIT_CONFIG_* environment variables. Fixes #6963.

ocaml/opam-repository

Permalink

Features

  • windtrap 0.2.0 (merged): Complete rewrite adding stateful and mutation testing alongside unit, expect, and property tests. The API is substantially changed; a migration guide ships with the package. #30817

  • dune 3.25.0~alpha0 (open): Adds shell completion, %{git-sha}, sandboxed PPX lint actions, and concurrent dependency-cutoff restore. Breaking: generated files become read-only; colons are rejected in context names. #30850

  • New packages (merged): reeve 0.1.0 (SLATEC math library port), hpke 0.4.0 (RFC 9180), mutaml 0.4 (mutation tester), and six ohttp 0.1.2 packages (RFC 9458). #30857, #30858, #30861, #30860

Fixes

  • zmq 6.0.0 (merged): Fixes EINTR handling to prevent inconsistent multipart socket state and corrects Eio multipart sending. Async bindings remain compatible with Async v0.15. #30824

  • ocsipersist 3.1.2 (merged): First release targeting Ocsigen Server 8; requires ocsigenserver >= 8.0.0 < 9.0.0. Adds a Decoding_error exception to JSON frontends. #30819

Compatibility and Releases

  • OCaml 5.6 branch: ocaml-compiler.5.6 and ocaml-variants.5.6.0+trunk now point to the 5.6 branch rather than trunk. The trunk version will be updated to 5.7 after propagation. #30855

  • License metadata (merged, ongoing): Three PRs added license fields to 107 opam files across 20 packages, each verified against its release tag. #18343 remains open with ~998 files still missing the field. #30835, #30848, #30849

  • shakuhachi 0.4.0 (merged): Adds float variables from the command line and artist statistics. Breaking: %album_count now returns 1; skhc-modify no longer prompts for cover kind. #30859

ocsigen/js_of_ocaml

Permalink

Features

  • Recursive-descent JavaScript parser (open, by hhugo): Replaces the Menhir-based parser with a hand-written one over the same Flow lexer. Parsing concatenated runtime files drops from 0.313 s to 0.258 s and promoted memory from 92 MB to 59 MB; the compiler library no longer links menhirLib. Syntax errors now name the unexpected token and expected rule. #2467

Compatibility and Releases

  • OCaml 5.6 support (merged, by vouillon): Updates the compiler for the OCaml 5.6 toolchain. #2469

Fixes

  • JS syntax-error reporting (merged, by vouillon): Columns are now 1-based as editors expect; lines split at \r\n, \n, \r, U+2028, U+2029; long lines show a 100-code-point window. Fixes a crash on OCaml 4.13 where In_channel.input_line is absent. #2471

  • Parse_info.Debug / Parse_info.Diagnostic printers (open, by hhugo): Splits the single to_string into a debug variant (0-based, for IR and --debug-info) and a diagnostic variant (1-based, for all user-facing errors). Lexer errors gain the source excerpt and print location first. #2491

  • Reference unboxing codegen (merged, by vouillon): The dominator tree was built from Structure.build_graph extra edges, so a reference allocated in a loop and read after leaving it had its allocation removed but not its reads, producing an unbound variable. The pass now uses the actual CFG dominator tree. #2489

  • Wasm land normalization (merged, by vouillon): x land y was typed as 31-bit-normalized whenever one operand was normalized, even if that operand was negative (e.g. -1), leaving high bits set. Normalization now requires a non-negative constant or both operands normalized. #2490

  • CPS-based effects (merged, by vouillon): Corrects code generation for effects compiled in CPS form. #2484

  • Recursive inlining (merged, by vouillon): Fixes a bug in the inliner's handling of recursive call sites. #2482

oxcaml/oxcaml

Permalink

Features

  • Box kind constructor merged. The k box kind denotes the boxed (scannable) version of kind k; e.g. type t : (value & float64) box. Merged 2026-10-03. No existing types yet carry this kind. #6956

  • %box / %unbox layout-directed primitives (alpha). Gated behind -extension layouts_alpha; currently unsound for types whose unboxed representations share a layout (e.g. t# vs int8#). Blocked on restoring the bytecode boxing invariant. #7254

  • Labeled tuple projections and region-local omnidirectionality. New syntax e.~l for labeled tuples, typed via a suspended constraint in the current region. First client of the omnidirectionality mechanism; stages 2–3 will lift the restriction to patterns. Open. #7432 #7418

  • Reaper link-time-optimization infrastructure. Multiple merged changes split the reaper into traverse/solve/rebuild phases, precompute rebuild queries at solve time, parameterise analysis by scope, and record cross-unit call references. Prepares for running reaper steps in separate ocamlopt processes. #7222 #7244 #7239 #7240

  • TLS per preemptible fiber; guard pages only for active stacks. TLS state splits at fiber creation; non-preemptable fibers inherit from the nearest enclosing preemptable fiber. Separately, suspended fibers release their 8 MiB guarded mapping (idled to a malloced buffer), enabling 100 000+ fibers without exhausting VMAs. Both open. #7399 #7349

  • Mode-polymorphism parsing and borrowability/borrowedness axes. Parser accepts mode variables and bounds in signatures ('a @ [< 'm] -> 'a @ [> 'm]). Two new mode axes (borrowable/unborrowable, owned/borrowed) are plumbed through the solver with no semantics yet; groundwork for separate and exclusive modes. Both open. #6829 #7255

  • FDO prototype and cold-continuation propagation. A feedback-directed-optimization prototype is under review. In parallel, [@cold] annotations now propagate both downward (cold context) and upward (code reaching only cold code), enabling inlining of cold continuations in Simplify. Both open. #7395 #7361

  • option parameter kind widened to any; mixed tuples in progress. type ('a : any) option merged 2026-10-03, permitting non-value payloads. Mixed tuples (tuples with per-element sorts) extend tuple data definitions with Jkind.Sort.ts, deduplicating unboxed/boxed tuple codegen; benchmark shows −0.35 % compile time on Core+Parallel. Open. #5462 #7135

14 repositories · no changes