Thicket thicket
ocaml
REPOS 1

Core covers the OCaml compiler and language RFCs.

W36.2026 · 31 Aug – 6 Sepocaml/ocaml

Features

  • Int.popcount, Int.leading_zeros, Int.trailing_zeros are now C primitives with native clz/ctz emission on amd64 and arm64; 20 M-call benchmarks show 2–3× speedup over the prior pure-OCaml implementations. (#15018, open)
  • Nested record definitions allow inline record types in record fields (type t = { a : { b : int } }), with projected type paths (t.a) usable in annotations. Arbitrary nesting depth is supported. (#14527, open)

Compatibility and Releases

  • OCaml 5.5.1 released: type-system bug fix for module-dependent functions, security fixes for integer overflows in Marshal and bytecode loading, various runtime fixes, and restored cloning support on macOS. (release)

Fixes

  • A regression in 5.5.0 on Windows caused a non-yielding thread to starve all other threads in its domain indefinitely; the fix corrects the backup-thread handle check in the Win32 runtime. Merged to 5.5 and trunk. (#15029, #15034)
  • Unix.select on Win32 returned wrong descriptors when a socket appeared in multiple fd lists or a descriptor was duplicated within one list; the fix replaces index-based mapping with handle-set lookups. (#15025, merged)
  • The POWER backend rejected functions with frames exceeding 32 KB because stack offsets exceeded the 16-bit immediate field; offsets now split via addis/li helpers. (#15021, merged)
  • Float.round, Float.trunc, Float.ceil, Float.floor now emit native instructions on arm64 and power instead of calling out to C. (#15017, merged)
  • Translcore no longer uses GADT local equations introduced by a partial match to infer parameter kinds, fixing a miscompilation where a conditionally-typed argument was translated with an unconditional kind. (#15035, open)