Thicket thicket
ocaml
REPOS 27
W33.2026 · 10–16 Aug

All repository summaries

12 active · 15 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • %{melange.emit:...} artifact variable (Dune 3.25). References the output directory of a melange.emit stanza and its dependencies. Closes #8327. Merged in #15751.

  • (flags ...) field in ocamllex and ocamlyacc stanzas (Dune 3.25). Accepts the ordered-set language with variable expansion; forwarded to the parser generator. Enables (flags -ml) for code-based automata. Merged in #15907.

Compatibility and Releases

  • Dune language version bumped to 3.25. The project's own dune-project and generated opam files now target 3.25. Merged in #15919.

  • Version bound for (warnings (duplicate_deps …)) corrected to 3.22. The warning was introduced in 3.22 but the bound stated 3.18, producing overly permissive opam constraints. Merged in #15696.

Fixes

  • Disabled install stanza no longer pollutes @all. An install stanza gated by enabled_if no longer adds its files to the directory's @all alias in disabled contexts. Fixes multi-context builds that previously failed with "No rule found." Merged in #15895, closes #15825.

  • Melange JS emission now stages installed .cmj/.cmi dependencies. Previously, .cmj/.cmi files under lib/<pkg>/melange/ were missed by the sandbox, causing melc to fail. Merged in #15949, closes #14820.

  • dune pkg uses SHA-256 for source archives lacking a checksum. Replaces MD5, which is deprecated by opam. Merged in #15824.

  • Git patch filenames containing spaces are no longer truncated. The ---/+++ header parser now disambiguates unquoted filenames with spaces. Merged in #15781.

ocaml/merlin

Permalink

Features

  • Proposal (open): #2072 by let-def integrates LRgrep to generate declarative syntax-error messages in Merlin's preprocessor. The change is additive; existing parser behaviour is unchanged. Updated 2026-08-12; still open.
  • The PR adds a make lrgrep-coverage target that emits coverage.md, listing grammatical constructs lacking error messages. This gives maintainers a concrete gap report for incremental coverage work.
  • Undated discussion in the thread notes upstream OCaml compiler interest in the same LRgrep approach; the Merlin integration is positioned as a testbed before a compiler-level merge. No dated decision is recorded.

Evidence note: The PR was created 2026-05-23 and updated 2026-08-12. All comments lack timestamps, so their placement within the 2026-08-10 – 2026-08-17 window cannot be confirmed. No merge, close, or release event occurred in the interval.

ocaml/ocaml

Permalink

Features

  • Runtime_events.User.write no longer allocates in steady state; the per-domain write-buffer cache is now a single atomic slot in DLS. Merged 2026-08-12. (#14984)
  • Frame-pointer support added for the POWER backend (ppc64le); the allocation pointer moves from r31 to r23 and outgoing-argument space is reserved in Istackoffset. Merged 2026-08-12. (#14505)
  • New C API caml_result_find_exception returns a pointer to the exception payload in a caml_result, or NULL. Merged 2026-08-13. (#14814)
  • Proposal to emit native Atomic.exchange and Atomic.compare_and_set instructions on all five backends when the stored value is statically immediate; benchmarks show ~2–3× speedup on amd64 single-domain. Open. (#14980)
  • Proposal to reimplement Weak.Make (weak hashsets) with open-addressing and linear probing; alt-ergo-free is 30% faster in one benchmark. Open. (#14979)

Fixes

  • Weak.get_copy shallow-duplicates continuations, producing two handles to the same fiber and causing segfaults on double-continue. Proposal treats continuations like custom values (no copy). Open. (#14988)
  • current_ring_total_size in the runtime-events ring buffer is a 32-bit int; at OCAMLRUNPARAM=e=21,d=128 the computed size exceeds 2 GiB, truncates, and the ring becomes unusable. Fix changes the type to size_t. Open. (#14999, #15000)

Compatibility and Releases

  • Proposal to enable LFS (_FILE_OFFSET_BITS=64) and 64-bit time_t (_TIME_BITS=64) by default on all 32-bit targets via Autoconf; disable with --disable-largefile / --disable-year2038. Affects only 32-bit builds. Open. (#14997)

ocaml/ocaml-lsp

Permalink

Features

  • Odoc document links in editor (open, by N1ark): Implements textDocument/documentLink and documentLink/resolve so odoc references ({!t}, {{:url} text}, @see) render as clickable links in the editor. Cross-module and stdlib references resolve once the project is built. #2139

Compatibility and Releases

  • Code actions for Unbound module / Unbound value (open, by ulugbekna): Proposes quick-fixes to create the missing file, qualify the reference, or open the module. Updated 2026-08-16 with import-fix design notes referencing TypeScript prior art. #494

Fixes

  • Unused-code quick fixes now match Merlin diagnostics (merged, by dayangac): Classifies diagnostics by warning number (e.g. Warning 33: unused open B.) instead of bare substrings, making "Remove unused open/type/module/constructor/case/rec" and "Mark as unused" actions reachable in normal builds. #2117

  • Create-counterpart action checks client capabilities (merged, by dayangac): The "open related source" code action now offers file creation only when the client advertises both workspaceEdit.documentChanges and the create resource operation; otherwise it offers only the open action for an existing file. #2115

  • Alert payloads no longer trigger destructive code actions (merged, by rgrinberg): The unused-code matcher rejects arbitrary diagnostic text (e.g. a deprecation warning containing "unused open"), preventing accidental module removal. #2141

  • Position encoding mismatch with UTF-16 clients (open, by panglesd): When the client negotiates UTF-16 (e.g. VS Code), Merlin's UTF-8 positions are not converted, placing diagnostics and semantic tokens at wrong offsets for multi-byte characters. #2138

ocaml/ocaml.org

Permalink

Features

  • i18n-aware case-insensitive search (open, not merged): PR #3739 replaces String.lowercase_ascii with Uucp.Case.Fold across seven call sites (package search, academic institution search, opam user search, platform release tag matching). Searching "école" will match "ÉCOLE"; three ASCII-only sites remain unchanged. Resolves #2444.

  • OCaml Workshop 2026 schedule published: PR #3740 (merged 2026-08-11) adds the full workshop schedule to the site.

Fixes

  • OCaml Workshop page corrections: PR #3742 (merged 2026-08-17) fixes a timing error and adds talk authors and abstracts.

  • Typo in OCaml 007 tutorial: PR #3741 (merged 2026-08-13) corrects a word in 0it_03_list.md.

Ecosystem Content

  • New OCaml Planet post indexed: PR #3743 (merged 2026-08-15) picks up "A concurrency model for OCaml" by erratique.

  • OxCaml 5.2.0-minus39 opam packaging noted: PR #3738 (merged 2026-08-12) indexes a post by anil on updating to the OxCaml 5.2.0-minus39 opam packaging, alongside OCaml Weekly News 11 Aug 2026.

ocaml/odoc

Permalink

Features

  • include functor support for OxCaml: items included via a functor are displayed with their functor origin rather than a generated module path. Open PR, ongoing. #1452

Compatibility and Releases

  • Stdlib polyfill pattern: Odoc's utility functions yield to the compiler's Stdlib when available, avoiding duplicate implementations. Open PR. #1476
  • Draft PR to remove the unused Forward constructor. No observable user-facing change. #1478

Fixes

  • odoc_driver stdlib detection: uses Findlib's own path inference instead of hardcoding $prefix/lib/ocaml, fixing $prefix/lib64 layouts. Requires ocamlfind ≥ 1.9.8. Open PR. #1474 · #1477
  • odoc_driver source lookup for Dune include_subdirs qualified wrapper modules: intermediate-directory .ml-gen files are not resolved to installed .ml paths. Open issue; a partial fix exists in a fork. #1475
  • Multi-line link reformatting in generated documentation. Open PR; tests fail on OCaml < 4.13 due to missing String.fold_left. #1439

ocaml/opam

Permalink

Fixes

  • opam init --reinit no longer exits with code 10 and prompts a retry after upgrading from a 2.1 root. Merged 2026-08-12.
  • Generated PowerShell init script contained if Test-Path … without required parentheses; #7070 (open) emits valid syntax and adds a Windows reftest.
  • #7073 (open) disables git gc/maintenance on repositories opam manages, reducing errors with recent git versions.

Features

  • #7068 (open) makes opam init --reinit regenerate the global switch list and per-switch caches, and detects $PWD/_opam as a local switch.
  • #7076 proposes an --ignore flag for opam lock to exclude optional dependencies and their transitive closure from generated lockfiles.

Compatibility and Releases

  • #7067 (open) respects --safe mode when an outdated cache file is encountered and restores debug output for opam list --debug --safe (fixes #7000).
  • #7082 (open) corrects the documentation for conjunctions in conflicts version formulas.

ocaml/opam-file-format

Permalink

Features

  • Proposed: PR #66 (kit-ty-kate, opened 2026-08-14) changes binding output so empty lists are always printed rather than omitted. References #7079. Not yet merged.

ocaml/opam-repository

Permalink

Features

  • affect 0.0.0 (new package, merged): Streamlined concurrency model for OCaml, first release supported by an OCaml Software Foundation grant. #30469

  • dune-rpc-eio 0.1.0 (new package, merged): Eio client for dune's RPC build socket; supports spawning/attaching to a dune server, building, running tests, and reading diagnostics. #30453

  • prometheus 1.4 (merged): Splits Lwt-typed metrics into a new prometheus-lwt package; core Lwt functions are deprecated with a migration path. Synchronous timing helpers added to core. #30452

  • bisect_ppx_ng 3.0.0 (new package, opened): Fork of bisect_ppx adding OCaml 5.5 support under a new maintainer. PR opened 2026-08-11; merge occurred outside this interval. #30463

Fixes

  • sqlite3 5.4.2 (merged): Fixes OCaml GC rooting across runtime-released SQLite calls, preventing premature finalization of statement and database wrappers. #30475

  • jsont 0.3.0 (merged, breaking): Jsont.{int,int64} encoding range narrowed to [−2⁵³+1, 2⁵³−1]; values at the old boundaries now encode as strings. Jsont.legacy_{int,int64} provided for migration. #30485

Compatibility and Releases

  • mirage-crypto-rng-* deprecated (merged): All mirage-crypto-rng-* packages except mirage and mkernel variants are marked deprecated. #30478

  • AI-generated responses policy (ongoing): Proposed governance rule requiring human replies on package-submission PRs after the initial (possibly bot-generated) submission. Still in discussion. #30367

ocsigen/js_of_ocaml

Permalink

Compatibility and Releases

  • Open proposal – #2409 (let-def): adds stubs and adaptations so js_of_ocaml builds against the 5.5.0+introcaml opam switch (an OCaml compiler variant that instruments values for runtime printing). The PR was updated 2026-08-10 but remains open; no merge or release is indicated. An undated comment sketches a prototype-based metadata design for the JS backend, but its timestamp cannot be confirmed within this interval.

oxcaml/opam-repository

Permalink

Fixes

  • #60 (open, by shunueda): Updates the dune-ignore patch for oxcaml-compiler after an upstream implementation change invalidated the existing patch. Applies to the -ox2 variant only; other variants not yet addressed.

oxcaml/oxcaml

Permalink

Features

  • Vox specification stack (6 PRs, closed 2026-08-14, moved to fork): introduces refinement types t{ p }, an SMT-LIB solver layer with a z3 backend, a Bigint module for specification arithmetic, and comonadic/monadic mode axes for totality, logicality, and erasure. All pieces are inert (no typing rules discharged yet); the stack establishes representation, substitution, and .cmi round-tripping. Stack #6796 · #6787 · #6788 · #6789 · #6790 · #6791

  • SSA intermediate representation between Cmm and CFG, controlled by -use-ssa (temporarily on by default). A reducer framework supports SSA-to-SSA transforms; a Cfg_compare validator checks register-equivalence against the legacy pipeline. Forced off under -llvm-backend. #5810 (open, updated 2026-08-14)

  • Mode variable subsumption makes signature mode variables rigid during moregen, preventing a less mode-polymorphic implementation from being accepted against a more polymorphic signature (a prior soundness gap that caused Partial_application_mode_mismatch_in_lambda at runtime). Now a static Signature mismatch. #6279 (open, updated 2026-08-17)

  • Addressable kinds add an idempotent addressable operator to the kind system, distinguishing kinds whose boxed representation is a block (pointer-takeable) from tagged immediates. Enables ptr_of on bits8 addressable boxes while rejecting int8# boxes. #6712 (open, updated 2026-08-13)

  • Faulting safepoints replace compare-and-branch poll points with a double load through a PROT_NONE trigger page; a SIGSEGV handler rewrites the context into a GC-entry call. Saves 6–12 bytes per poll on AMD64; adds ~1.2 µs per triggered interrupt. Default where supported; --disable-faulting-safepoints opts out. #6551 (open, updated 2026-08-13)

  • Heap extension API (caml_add_extent) registers external memory as GC-managed blocks with a free callback; unloading of metaprogramming CUs treats each unloadable unit as a scannable heap region with explicit dependency edges, unloading code and data when unmarked at end of major cycle. #6248 · #5960 (both open, updated 2026-08-13)

  • Match-in-match: umbrella issue #4405 closed 2026-08-13. New proposals opened 2026-08-10: remove the replay history by materialising let-bindings post-specialisation (#6742) and specialise continuations whose handler ends with an apply-cont to unblock match-in-match triggering (#6741).

  • Loop elimination experiment (stacked on the SSA IR): induction-variable finding, termination proof, and dead-IV proof eliminate empty for loops entirely. Requires -cfg-merge-blocks. #5840 (open, updated 2026-08-12)

15 repositories · no changes