package libmojave
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=31ccec07b5b61d88e951985be9250b968d01277afac40978fa690ba7b6a94288
sha512=b96bfb29829e9677cbc6ff46c73f3dc90e255c079ec8f3667fd1d6b1d5f7d8c3a335d0d731f07d33eca692f3d27eac15c80197512711d79532899033413ab873
Description
Added to opam-repository:
README
libmojave
libmojave ("lm") is the OCaml support library that grew out of the MetaPRL proof assistant, extracted as a standalone library in 2003. It provides an extended standard library, portable Unix/system bindings with C stubs, and a suite of data-structure and utility modules that predate (and in places anticipate) much of what later landed in the OCaml ecosystem. The same library underpins the OMake build system, which vendors a copy of it.
Status: archived in 2017; refreshed in 2026 (see below). LGPL-2.1. Unlike its sibling MetaPRL, libmojave is camlp-free and structurally simple — a modern-OCaml/dune port is feasible and is the natural "this lineage still compiles" demonstrator. Of historical interest as a snapshot of large-scale OCaml systems practice from the 2000s.
The 2026 refresh: building on a current OCaml
Since October 2026 libmojave builds again, on OCaml 4.14 and 5.4. CI covers Linux (both versions) and Windows (MinGW and MSVC, OCaml 5.4).
Releases are in opam:
opam install libmojaveTo build from a checkout:
dune build # the library: _build/default/lib/lm.cma, lm.cmxa
dune build --profile threads # the same, with system threads (as MetaPRL uses)
dune runtest # the pinning tests in test/The OMake build still works (omake, with OMake 0.10.7 from opam) and produces the same 108 modules. It stays because MetaPRL builds libmojave as an OMake subdirectory. Do not mix the two in one tree: an OMake build writes stdlib/lm_thread_{core,pool}.ml, and dune then refuses to build until they are removed.
The tests in test/ are of two kinds. A pin prints a function's answers on chosen inputs. A model check runs the module against an independent oracle (a list or brute-force model, an Earley recognizer, native ints) on cases from a fixed generator and prints one line per operation: how many of N cases disagree, and the first. Either way the .expected file is the output as generated from the code, never typed, so any change shows up as a diff, and a fix shows up as a change to an expected file. The filename and glob tests have separate expected files for Windows. Behaviour a test records that may be a bug is listed in CHANGES.md, with the defects fixed so far.
test | kind | modules |
|---|---|---|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| model |
|
| model |
|
| pin |
|
| model |
|
| model |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| model |
|
| pin |
|
| model |
|
| model |
|
| pin |
|
| pin |
|
| model |
|
| pin |
|
| pin |
|
| model |
|
| model |
|
| pin |
|
| model |
|
| pin |
|
| model |
|
| model |
|
| model |
|
| model |
|
| model |
|
| pin |
|
| model |
|
| pin |
|
| model |
|
| pin |
|
| model |
|
| pin |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| model |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
| pin |
|
91 test files: 33 model checks, 58 pins.
Known gaps:
Lm_dll(the dynamic-loading foreign-function runtime) is not built. Its C side relies on redirectingcaml_local_roots, which no longer works on OCaml 5.Lm_parseraccepts only when the start production consumes the end-of-input token itself (for exampleprog -> e $eof).
Layout
stdlib/,util/— the extended standard library and data-structure / utility modules.unix/,system/— portable Unix and system bindings.cutil/— the C stubs backing the system bindings.lib/,config/— the dune build of the library, and its C configuration (the same checks OMake's configure step makes).test/— the pinning tests.
License
GNU Lesser General Public License, version 2.1. See LICENSE.libmojave for the libmojave-specific terms (including the OpenSSL / OCaml-runtime linking exceptions) and LICENSE.txt for the full LGPL-2.1 text.
Dependencies (3)
-
dune-configurator
build -
ocaml
>= "4.14" -
dune
>= "3.0"
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building libmojave with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.1.1 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure