Repository activity
40458 results across all weeks
Runtime array primitives assume one word per element
The array comprehension translation has branches for unboxed element kinds (lambda/transl_array_comprehension.ml:725-756), and the dynamic-size ones grow the array with caml_array_append (:443) and cut it down with caml_array_sub (:934). Both entry points assume arrays of one-word values: uniform_array_gather allocates the result with caml_alloc_small(size, …
KC Sivaramakrishnan (@kayceesrk)Segfault from an unboxed existential over `box`
[| x; y |] segfaults when the element type is an existential over 'a box declared [@@unboxed]:
KC Sivaramakrishnan (@kayceesrk)Support coercions for template functors
There's a new test that shows that this can actually merge curried functors together. This happens for normal functors too but because slambda eval currently only supports single argument functors it currently breaks things. I'm planning on implementing partial application soon so I've left it as a test to fix.
Jack Rickard (@Skepfyr)The n-way join keeps a code ID that one input does not have
With -flambda2-join-algorithm n-way (and -O2 or -O3; also with -O3 -flambda2-match-in-match, which forces that join) a correct OCaml program stops at runtime on an Invalid that Simplify put in place of a live call, and the zero_alloc check accepts a function that allocates. With the default (binary) join both programs behave correctly.
Mark Shinwell (@mshinwell)Type checking for laws
Following #7917, this PR adds type checking for law? in signatures and structures. The core of type checking these is pretty straightforward: every clause must type check as Boolean, and then the translation in Translspec is used to turn the clauses into Typedtree.spec_expression and Spec.expression.
Simon Spies (@spiessimon)Type quotations are treated as separable
A synonym whose body is a quotation gets an Ind mode signature, so an [@@unboxed] existential over it is accepted and the array literal segfaults:
KC Sivaramakrishnan (@kayceesrk)`-flambda2-match-in-match`: segfault calling a closure inlined from another module inside `try`
Program
Ethan Chou (@echoumcp1)`-flambda2-reaper`: `ocamlopt` uses unbounded memory on a local function that builds an infinite list
Program (prog.ml)
Ethan Chou (@echoumcp1)`-flambda2-reaper`: function returns early
Program (prog.ml)
Ethan Chou (@echoumcp1)`-use-ssa -caml-apply-inline-fast-path`: SSA validator aborts with "CFG comparison MISMATCH"
Program (prog.ml)
Ethan Chou (@echoumcp1)`-use-ssa -cfg-block-layout`: SSA validator aborts with "CFG comparison MISMATCH" on a block's `cold` flag in a `[@zero_alloc]` function
Program (prog.ml)
Ethan Chou (@echoumcp1)`Array.append` and `Array.blit` inspect only one input
Array.append produces an array whose runtime tag does not match its contents, and the first consumer that reads a field crashes:
KC Sivaramakrishnan (@kayceesrk)`Array.blit` copies words, not elements
Array.blit copies one machine word per element, so a blit of a single two-word element produces a value no blit could have produced:
KC Sivaramakrishnan (@kayceesrk)amd64: `Atomic.compare_and_set` on an `int Atomic.t` succeeds after an earlier failed CAS with the same expected value
Program (prog.ml)
Alperen Keleş (@alpaylan)amd64: `ocamlopt -fno-avx` fails with `Fatal error: exception Not_found` on a store to a float32 Bigarray
OxCaml main 9d845db (2026-11-05) and 0d3c935; amd64 Linux, ./configure --enable-flambda-invariants.
Alperen Keleş (@alpaylan)Community digest
OCaml 4.14.5 releases six security fixes covering Marshal, Str, Unix.map_file, demarshaling, Windows command quoting, and ephemeron marking. Dune 3.25.0~alpha1 hides _build/install paths from actions absent a declared package dependency, and an open OCaml PR proposes making non-exhaustive matches fatal by default.
core digest
Open proposal (PR #52, updated 2026-11-06). A labelled function argument annotated [%call_loc] is auto-filled with the caller's source location. Affects monadic bind tracing and embedded-language error reporting.
ecosystem digest
Package pages on ocaml.org display a build-status badge and per-compiler table from check.ci.ocaml.org, with log links and run provenance. A daily scrape updates the data. (#3930, #3941)
multicore digest
Uring.Msghdr.get_msg_name and Msghdr.create_recv added for receiving Unix-domain socket addresses; Msghdr.create is deprecated. (#163, merged)
oxcaml digest
OxCaml 5.4.0-ox9 with Jane 133.03+642 is available in the opam-repository for macOS and Ubuntu. #66, merged 2026-11-06.