All repository summaries
15 active · 12 unchanged
ocaml-multicore/eio
PermalinkFixes
-
eio_linux:
Eio.Net.sendto a Unix-domain datagram address raisedEINVAL; fixed by updating to the new uring API.Eio_linux.Low_level.recv_msg*now returnUnix.sockaddrinstead ofUring.Sockaddr.t. (#966, merged) -
eio_posix: a trailing slash on the final path component allowed a symlink to escape the sandbox without
O_RESOLVE_BENEATH. Operations on the target now treat"foo/"as"foo/."; operations on the entry drop the slash. (#967, opened) -
Fiber.fork_daemoncancelled by a main-fiber exception received a hard-codedExitinstead of the actual exception, breakingSwitch.get_error. Fix proposed. (#961, opened, not merged)
Features
-
Windows: support for symlinks, junctions, and reparse points added to the filesystem layer, enabling Forester to traverse symlinked directory trees. (#968, opened)
-
A scheduler hook to signal an empty run queue is requested, to support virtual-time testing under
Eio_main(currently onlyEio_mock.Backendprovides this). (#965, open)
Compatibility and Releases
Eio.Net.Sockaddr.ppnow quotes strings that are empty or contain unusual characters (e.g. Linux abstract addresses starting with\000). (#966, merged)
Research and Design
- The capabilities design note's guarantee is clarified: resource tags prevent accidental misuse but do not enforce a security boundary;
Eio.Resource.get_optcan query any interface. A documentation comment is proposed. (#964, opened)
ocaml-multicore/ocaml-uring
PermalinkFeatures
Uring.Msghdr.get_msg_nameandMsghdr.create_recvadded for correctly receiving Unix-domain socket addresses; the oldMsghdr.createis deprecated. (#163, merged)
Compatibility and Releases
ocaml/RFCs
PermalinkFeatures
- RFC: Implicit source positions (
[%call_loc]) — Open proposal (PR #52, updated 2026-11-06). Introduces aTextloc.tparameter type: a labelled function argument annotated[%call_loc]is auto-filled with the caller's source location. Affects monadic bind tracing, test-framework diagnostics, and embedded-language error reporting. Not merged; implementation exists at Jane Street. - Discussion in the RFC addresses API gaps: a
line_rangeaccessor for multi-line spans, and lossy conversion fromLocation.twhen a span crosses#linedirectives into a different file. No cross-file span is representable in the proposedTextloc.t.
ocaml/dune
PermalinkFeatures
-
foreign_stubsandforeign_libraryaccept(language asm), recognising.s/.S/.asmsources and passing them to the platform assembler. Closes #3342. (#16849, merged) -
dune clean PATHnow accepts source directories and the project root, removing the corresponding_build/<context>/<path>artifacts. Previously only build-directory paths were valid. Closes #2288. (#15305, merged) -
New
DUNE_CONFIG__ACTIONS_NICEsetting (0–19, defaultnone) controls niceness of spawned Unix build actions. A follow-up PR sets the default to +5, favouring Dune's coordinator over child processes for CPU. (#16957, #16963, merged)
Compatibility and Releases
- 3.25.0~alpha1 released 2026-11-03. Notable breaking changes: actions no longer see
_build/install/<context>/{bin,lib,lib/stublibs}onPATH/OCAMLPATHunless they declare(deps (package …)); generated files are read-only regardless of language version;:is rejected in context names. (release)
Fixes
-
Merlin configurations now include the hidden CMI directory (
BH) for libraries withprivate_modules, restoring typing, completion, and navigation for public aliases of private modules. Closes #16531. (#16629, merged) -
dune cache clearanddune cache trimnow recognise and remove pre-3.22 legacy cache files under$DUNE_CACHE_ROOT. Closes #15060. (#16899, merged) -
RPC build clients now receive the actual memo error message and stack trace instead of crashing with a generic exception. (#16878, #16879, merged)
-
Dune's own GC now sets
small_heap_limitto 16 777 216 work units on OCaml 5.5+, delaying major marking. Measured ~9% reduction in no-op build wall time on AArch64. (#16913, merged)
ocaml/merlin
PermalinkFixes
- v5.9.1-505 resolves a caching issue that left inconsistent units stale. v5.9.1-505
- v5.9.1-505 fixes a regression in the "pointing indexes" mechanism and an issue with absolute output paths for the indexer. v5.9.1-505
Compatibility and Releases
- v5.9.1-505 released 2026-11-04. v5.9.1-505
Ongoing
- PR #2146 (open, updated 2026-11-09): collects UIDs of type extensions for occurrences, addressing issue #853.
ocaml/ocaml
PermalinkFeatures
-
Constructor unboxing / head shapes (open): PR #15227 extends
[@unboxed]to multi-constructor variant types by tracking head shapes (tag + block size) in the type checker. Affects pattern-matching compilation and the separability analysis. -
Warning 8 (partial-match) fatal by default (open, breaking): PR #15269 makes
ocamlc/ocamloptreject non-exhaustive matches by default. The toplevel retains the non-fatal behaviour. -
Automatic heap compaction (open, RFC): Issue #15242 proposes porting OxCaml's auto-compaction to trunk, triggered at the end of major GC cycles when free-to-live ratio exceeds
OCAMLRUNPARAM=O(default 500).
Compatibility and Releases
- OCaml 4.14.5 (release, 2026-11-06): six security fixes (OSEC-2026-18/21/22/23/24/30) covering
Marshal,Str,Unix.map_file, demarshaling, Windows command quoting, and ephemeron marking; plus a pattern-compilation fix and a macOS compatibility fix.
Fixes
-
Typechecker variance check: 99.5% speedup on constrained parameters (merged): PR #15219 adds a fast path using equal-subexpression matching before falling back to the expensive equivalence check. Reduces a 760 s case to 3.7 s.
-
Windows: Ctrl-Break no longer kills the process (merged): PR #15267 restores the console-control handler that maps Ctrl-Break to
SIGINT. Cherry-picked to 5.6. -
Unix.ADDR_INETrejects out-of-range ports (merged): PR #15261 raisesInvalid_argumentfor ports outside 0–65535 instead of silently truncating modulo 65536. Fixes #15249. -
Native array bounds check bypassed at index 2⁵⁴ (open): Issue #15244 reports that
ocamloptreturnsa.(0)instead of raisingInvalid_argumentfora.(18014398509481984). PR #15161 adds overflow checks to the shift rewrite.
ocaml/ocaml-lsp
PermalinkFeatures
- Release 1.28.1 (2026-11-04): Adds
ocamllsp/completePrefixAtPos, Topiary formatter,ocp-indentformatting, interactive completion snippets, and Dune RPC trace notifications. - Release 1.26.1 (2026-11-06): Backports
ocamllsp/completePrefixAtPosfor OCaml 5.4; consumed by Emacs via ocaml-eglot. - Release 1.28.1: Supports
textDocument/onTypeFormattingvia the persistentocp-indent-rpchelper; reports Dune build progress through LSP trace notifications. - Release 1.28.1: Adds a code action to open the closest Dune file for the current document.
ocaml/ocaml.org
PermalinkFeatures
-
Package pages show a build-status badge and per-compiler table from check.ci.ocaml.org, with log links and run provenance. A daily scrape keeps data current; MCP gains a cross-package query tool. (#3930, #3941)
-
The package overview page gains an Optional Dependencies section, listing
depoptsalready stored in the state and returned by GraphQL and MCP. Reverse optional dependencies remain uncomputed. (#3957) -
Package search matches module paths (Lwt_io → lwt, Yojson.Safe → yojson) via a memory-mapped index of documentation module trees covering 3,234 packages. CI publishing and server-side lookup are open. (#3986, #3981)
Compatibility and Releases
-
Platform release pages updated: OCaml 4.14.5, dune-release 2.3.0, ocaml-lsp 1.28.1 and 1.26.1, merlin v5.9.1-505. The opam-health scrape records 5,383 package-versions across five compilers. (#3988, #3973, #3979)
-
The production Dockerfile moves from Alpine 3.24 to Debian 13 (trixie) to align with the devcontainer and OCaml infrastructure. Image size grows ~150 MB; no latency regression measured. PR is open. (#3984)
Fixes
-
A path traversal in
/conferences/ocaml/**allowed unauthenticated file reads (reported by @S33NU via the OCaml security team). The route now usesDream.staticwith path validation, and the server runs as an unprivileged user. (#3942, #3945) -
The package-state rebuild moves to a separate builder process; the server only reloads. Incremental date reads, yielding during dependency computation, and off-loop saves cut update time from ~33 s to ~5 s and peak RSS from 1.7 GB to 0.8 GB. (#3958–#3963, #3974–#3976, #3990)
-
Tutorials correct type-variable vs type-parameter usage, add a Hashtbl-vs-Maps comparison, and improve tour readability. Attribution records are now maintained by a post-merge bot PR rather than gating contributor PRs. (#3803, #3631, #3932)
ocaml/ocamlfind
PermalinkCompatibility and Releases
- PR #122 (open, updated 2026-11-06, by dra27): proposes OCaml 5.5 support and relocatable builds for ocamlfind. Not yet merged.
- The proposal extends
findlib.confto interpret relative paths (relative to the conf file or its containing directory), changing existing configuration semantics. - It adds
configuresupport for relocatable installs via a relative-sitelibpath, so two prefixes for the same compiler yield byte-identical trees. - Implements the fix for #115: reading the relative paths OCaml 5.5+ writes into
ld.conf. - Uses
Unix.realpathon resolved paths to prevent duplicateld.confentries on systems where ocamlfind rewrites that file. - CI changes target GNU make only (POSIX make unsupported) and verify byte-identical ocamlfind across two switches on Linux, macOS, and Windows.
ocaml/odoc
PermalinkFeatures
-
Strikethrough markup (
{~ text}) added to the Odoc parser; backends render it as--text--in man pages. PR opened by Leonidas-from-XIV. #1515 -
Tags such as
@raiseand@sincenow accept a{...}delimiter, allowing multi-paragraph content including code blocks within a single tag. PR opened by jonludlam. #1517 -
Code-block metadata tags (e.g.
@ocaml server[...]) are emitted as CSS classes (tag-server) on the<pre>element in HTML output, enabling custom styling. PR opened by jonludlam. #1518 -
A new scoping model limits cross-library module resolution to the compilation dependency cone, preventing name clashes from unrelated libraries. Canonical paths gain a
/library/Moduleprefix form. PR opened by jonludlam; includes #1511, #1503, #1502. #1516
Fixes
Compatibility and Releases
- Odoc is rebased against the newly released
oxcaml.5.4.0+ox9compiler, adding new functionality beyond the version bump. PR opened by avsm. #1520
ocaml/opam
PermalinkFeatures
- cmdliner-based shell completion (bash, zsh, PowerShell) replaces the existing static scripts with dynamic completions generated from argument definitions. Adds a new PowerShell completion script. Open, updated 2026-11-03. #6869
- The companion PR adding completion functions to
opamClientargument definitions was closed without merge on 2026-11-03; its changes are folded into #6869. #6868 - macOS 27 support in
make coldby upgrading the bundled OCaml to 4.14.5. Open, created 2026-11-06. Backport to the 2.6 branch in #7233. #7232
Fixes
opam --cli=2.6was rejected with "not supported" despite--helpadvertising 2.6 as default. The supported-versions list was not extended at release. Opened 2026-11-02; merged 2026-11-16 (outside this interval). Backported to 2.6 in #7242. #7229opam upgradeprinted a misleading "you may upgrade these packages" message when the switch was already up-to-date modulo invariants. Open, created 2026-11-06. #7230opam unpinof a pin-depend and its reverse-dependency in one command raised a rawNot_foundexception (exit 99). Open, updated 2026-11-02. #7223
Compatibility and Releases
opam upgrade(no arguments) did not update dev-pin sources, whileopam upgrade <pkg>did. Open design discussion on whetheropam upgradeshould fetch from the network. Created 2026-11-06. #7231opam list --depends-on=X --latests-onlyshowed packages whose latest version no longer depends on X. Closed 2026-11-02 as a duplicate of the broader selector-ordering issue #6387. #7221
ocaml/opam-repository
PermalinkFeatures
- Eliom 13.0.0 merged: module names are now wrapped (
Eliom.Service,Eliom.Content, …); requires Ocsigen 8.0, TyXML 5.0, js_of_ocaml 6.4, OCaml 4.14. (#31073) - Mosaic 0.2.0 merged: most of the public API changed across all three packages; Matrix and Mosaic no longer run on Windows. (#31089)
- Dune 3.25.0~alpha1 opened (not yet merged): pre-release with breaking changes including read-only generated files, restricted action environment, and
:rejected in context names. (#31082) - New packages merged: hermetic 0.1.0, thumper 0.1.0, modelkit-xgboost, quint-connect 0.2.0, mcp-kit 0.2.0, miaou-serve, atdf 0.1, rocq-segmap, openapi-dsl 3.2.0, reanalyze 2.27.0. ocsigen-dune-rules 1.0.0 opened. (#31090, #31072, #31115, #31091, #31092, #31093, #31087)
Fixes
- OCaml 4.14.5 merged: bug-fix release with six security fixes (OSEC-2026-18/21/22/23/24/30) covering Marshal, Str, Unix.map_file, demarshaling, Windows command quoting, and ephemeron. (#31117)
- tls 2.1.5 merged:
State.sessionchanged from list to option, fixing a memory leak exploitable by a crafted attacker. (#31108)
Compatibility and Releases
- Dune 3.25 test bounds added for geojsone, pretty_expressive, ppx_deriving_yaml, ppx_deriving_ezjsonm, soteria, satyrographos, ocaml-protoc-plugin; zanuda bounded on dune < 3.25; ppxlib upper bound added to ojs_base_ppx. (#31103, #31113, #31132)
- opam-review workflow opened (not yet merged): new CI job that validates opam file syntax and policy compliance, posting results as a GitHub comment on each PR. (#31134)
ocsigen/js_of_ocaml
PermalinkFixes
-
Fixed Wasm
--opt 2compilation of hinted ocamlc that consumed >8 GB due to unbounded functor-like inlining of open recursion through records. Merged. #2599 -
Fixed Wasm
RuntimeError: illegal castfor programs using objects; array element types are now derived from the array type rather than global flow analysis, which missed constant blocks. Merged. #2596 -
Fixed separate compilation runtime failure (
runtime.alias is not a function) when a unit calls a primitive defined in a non-builtin runtime file by its//Aliasname. Merged. #2604 -
Fixed
Int32.of_string/Nativeint.of_stringerror messages,%hformatting (precision 0, ties-to-even rounding, sign for infinities/NaNs), and Marshal header size to match the C runtime. Merged. #2602
Features
-
Performance page regenerated with Wasm_of_ocaml data; added compressed-size and compile-time charts.
make docnow copies manual images next to odoc pages for direct viewing. Merged. #2565 -
Wasm compilation units now export their shapes (arity, purity) for separate compilation;
shapes.sexpwas previously always empty for Wasm. Merged. #2587 -
Proposal to signal exceptions via a sentinel return value in the JS backend instead of
throw; ocamlc benchmark 16.5 s → 8.9 s, boyer 6.0 s → 0.61 s. Enabled by default with--effects=disabled;--disable exn-sentinelrestores previous output. Open. #2582 -
Avoids holey arrays in V8 by using 0 for dead fields and packed allocation in the runtime; ocamlc 2–4 % faster, peak memory 4 % lower, fannkuch_redux −17 %. Opened. #2609
oxcaml/opam-repository
PermalinkFeatures
Compatibility and Releases
- A Dune package-management compatibility patch for
ocamlbuildwas closed without merge; the author may re-open it if still required fordune pkgworkflows. (#21, closed 2026-11-05)
Fixes
oxcaml/oxcaml
PermalinkFeatures
-
as deref_ xpattern syntax (open PR, by bn-peters): Extendsderef_toP as deref_ x, allowing a pattern to both dereference a field and bind the address for further matching. Supported in all positions wherederef_ xis valid. #7863 -
FDO annotations in fexpr output (open PR, by yusumez-js): Adds
-fexpr-print-fdo-countersand-fexpr-print-branch-annotationsflags to print call and branch FDO annotations in fexpr dumps. A newfdo_annotationstest tool replacesfdo_entriesfor filtering counters by edge kind. #7844 -
-dprofile-levelflag (open PR, WIP, by dra27-js): Introduces a profile-detail level to reduce-dprofileoutput in the CFG pass. Marked WIP; API not finalised. #7913
Fixes
-
flambda2 codegen abort on unboxed float constant in method (open, by echoumcp1): Passing
#0.to an unboxed-float function inside a method triggers[flambda2] Invalid codeand SIGABRT on arm64.-Oclassiccompiles correctly;-gworks around the frontend bug. #7921 -
Atomic.compare_and_setreturns success after a failed CAS (open, by alpaylan): On amd64 with-O3, a secondcompare_and_setwith the same expected value succeeds where it must fail.-Oclassicand bytecode produce correct results. #7889 -
caml_int128_add/caml_int128_subwrong high word (reported, by alpaylan): On amd64 with-O3, the 128-bit add/sub builtins return an incorrect high word when the low half ofxequals the high half ofy.-Oclassicis correct. #7888 -
-fno-avxcrashes on float32 Bigarray store (reported, by alpaylan):ocamlopt -fno-avxraisesNot_foundwhen storing to afloat32Bigarray element.-Oclassic -fno-avxand-fno-avx -regalloc lscompile correctly. #7919 -
Bytecode
Effect.performsegfaults with memprof callback (open, by alpaylan): AGc.Memprofalloc callback that grows the fiber stack causesocamlrunto segfault duringEffect.perform. Native compilation is unaffected. #7918