Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
Int.popcount,Int.leading_zeros,Int.trailing_zerosare now C primitives with nativeclz/ctzemission 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
Marshaland 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.selecton 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/lihelpers. (#15021, merged) Float.round,Float.trunc,Float.ceil,Float.floornow 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)