Hasty Briefsbeta

OCaml 5.4.0 Released

14 hours ago
  • #Functional
  • #OCaml
  • #Programming
  • OCaml version 5.4.0 released, celebrating birthdays of Camille Saint-Saëns and Karl Schwarzschild.
  • New feature: Labelled tuples, allowing labels on tuple fields, similar to SML records.
  • Array literal syntax now supports immutable arrays and floatarrays, unifying syntax across array-like types.
  • Introduction of immutable arrays ('a iarray) with covariant element types, allowing runtime coercion without cost.
  • Atomic record fields introduced, requiring explicit atomic operations via the Atomic.Loc submodule.
  • Four new standard library modules: Pair, Pqueue, Repr, and Iarray, expanding functionality for pairs, priority queues, equality comparison, and immutable arrays.
  • Restoration of 'memory cleanup upon exit' mode for C-driven programs using OCaml libraries, aiding in memory leak tracking.
  • New profiling section in the reference manual for Linux and macOS, detailing OS-specific tools for native OCaml programs.
  • Numerous incremental improvements including runtime enhancements, new standard library functions, improved error messages, and bug fixes.
  • Installation instructions provided for OCaml 5.4.0 via opam, including options for fine-tuned compiler configurations.