OCaml programming language version 4.14.2 is now available for release

Available new programming language release OCaml 4.14.2, supporting the concepts of functional, imperative and object-oriented programming, and aimed at creating safe and reliable programs. The language uses static typing, garbage collection, buffer overflow avoidance types, checking, and compile-time static analysis. Toolkit code for OCaml language distributed by licensed under LGPL.

Changes in the new version:

  • At runtime:
    • Added prototypes to C-function style definitions and declarations.
    • For primitives, strict prototypes are involved.
    • “-flat-namespace” has been discontinued for macOS.
    • Provides checking that Bool_val(v) is of type bool in C++;
  • On the build system:
    • It is allowed to use a path with spaces as an installation target.
    • For OpenBSD >= 7.3, the “-no-execute-only” flag is enabled when linking.
    • Allow sections of code to remain readable. Needed for marshaling closures.
    • Disabled control flow integration for OpenBSD >= 7.4 to resolve invalid instruction errors on some CPUs.
  • Bugs fixed:
    • When evaluating high-level error messages for functor and include applications, inconsistent equalities are not added.
    • Fixed incorrect handling of injectivity for private recursive types.
    • Fixed uncaught Ctype.Escape exception on some incorrect programs that generate recursive types.
    • Fix compact_allocate to work around pathological cases that result in very slow compression.
    • Automatically enables emulated fma for Visual Studio 2019+, allowing configuration with either a pre-Haswell/pre-Piledriver CPU or running execution in VirtualBox. Parity with other Windows ports has been restored; the “–enable-imprecise-c99-float-ops” option is no longer required.
    • Fix in caml_unregister_frametable.
    • Smarter reinitialization of I/O mutexes after fork().
    • Fixed backward-compatible frame table size allocation on amd64 BSD (OpenBSD, FreeBSD, NetBSD) systems.
    • Fix fix-modulo-cons compilation of “try-with”, “&&” and “||” expressions.
    • Explicit assembly of non-PIE executables on 32-bit x86 architectures.
    • Fixed problem with duplicate libraries not being passed through to the linker when compiling ocamlc.opt and when using systhread.

Thanks for reading: