Hi all!
Version 2.1.0
of ocaml-posix
has been released!
Repo: GitHub - savonet/ocaml-posix: Bindings to the various POSIX APIs
API doc: ocaml-posix
While it was long overdue, this version only include minor changes, along with the addition of posix-math2
.
These packages are intended to provide a consistent, extensive set of bindings for the various POSIX APIs to be used with ocaml-ctypes when building bindings to C libraries that require the use of these APIs.
While working on OCaml projects, it is common to have to interface with APIs derived from the POSIX specifications, getaddrinfo
, uname
etc.
The core OCaml library provides their own version of these APIs but:
- They only cover parts of it
- They wrap some native types such as
socketaddr
into custom, opaque OCaml types, making it impossible to re-use, for instance when using a C library API requiring a POSIXsockaddr
.
Thus, having a large, consistent set of bindings for these APIs that reflect the actual C types, structures and etc greatly improves the usability of the language and ecosystem as a whole by making it possible to interface it with a large set of C libraries in a reusable way.
The project has been mostly stable for a couple of years (and so have the POSIX standards), but could use some more hands if there is more need in the community to extend the set of POSIX APIs supported by the language.