Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Versioning, stability and deprecation policy

This document is the contract consumers can rely on when planning upgrades of Aleph-w.

Semantic Versioning

Aleph-w follows Semantic Versioning 2.0.0:

  • MAJOR (X.0.0): breaking changes to the public API.
  • MINOR (x.Y.0): backwards-compatible additions.
  • PATCH (x.y.Z): backwards-compatible bug fixes.

The canonical version lives in the top-level VERSION.txt file. CMake, the Conan recipe and the release workflows read it, and release-please updates it (see Release automation below). A release is published when the release PR of release-please merges; the same run builds the source tarball and the .deb/.rpm packages, tests installing the .deb on clean Ubuntu 22.04, 24.04 and 26.04 and Debian 12 and 13, and only then attaches them to the release (.github/workflows/package-release.yml). A v* tag pushed by hand triggers .github/workflows/release.yml instead, which builds and tests the same artifacts with that workflow and creates the release with them.

Three recipes still carry versions of their own:

  • The vcpkg port (ports/aleph-w/) and the Spack package (var/spack/repos/builtin/packages/aleph-w/) are unverified drafts. Their version (4.0.0) and the hash of the release tarball are placeholders, to be filled in and checked against a published release before either is submitted upstream; until then, neither installs a release.
  • The Python package aleph-ca (python/) has a version of its own, a pre-release (4.0.0b0), and is published only by hand, to TestPyPI (.github/workflows/python-bindings-publish.yml). It does not follow the releases of the library.

find_package(Aleph 7.0 ...) uses SameMajorVersion compatibility: any installed 7.x satisfies it; 8.0 will not.

Version history note

Releases proceed Genius (2022) → 3.0.0 → 3.1.0 → 3.1.1 → 4.0.0 → 5.0.0 … 5.11.0 → 6.0.0 → 6.1.0 → 7.0.0 → 7.0.1 → 7.1.0 → 7.1.1 → 7.1.2 → 7.2.0 → 7.2.1 → 7.2.2 → 7.3.0 → 7.3.1 → 7.3.2 → 7.3.3 → 7.3.4 → 7.3.5 → 7.3.6 → 7.4.0 → 7.5.0 → 7.6.0 → 7.6.1 → 7.6.2 → 7.7.0 → 7.7.1 → 7.7.2 → 7.7.3 → 7.7.4 → 7.7.5 → 7.8.0 → 7.8.1 → 7.8.2 → 7.8.3 → 7.8.4 → 7.8.5 → 7.8.6 → 7.9.0 → 7.10.0. There are no published 1.x or 2.x releases: those numbers appear in older internal documents (e.g. the cellular-automata roadmap milestone "v2.0") and in the historical version 2.0.0b banner of header comments, but they were never tagged. 4.0.0 is the first release containing the cellular-automata (CA) module.

What is public API

Public (covered by SemVer):

  • Every documented (Doxygen) type, function, macro and constant declared in the top-level *.H headers under namespace Aleph (including Aleph::CA), except the exclusions below.
  • The CMake consumption surface: package name Aleph, components (CA), imported targets Aleph::Aleph and Aleph::CA, and the propagated usage requirements.
  • The Python package surface exported by aleph_ca (python/), under the version of that package (see Semantic Versioning above).
  • File formats written/read by the library where documented (RLE, Life 1.05/1.06, NetPBM, checkpoint container format).

Internal (may change in any release, without notice):

  • Anything in a namespace whose name ends in _detail (ca_png_detail, ca_io_detail, ca_checkpoint_detail, …).
  • private/protected members, and identifiers prefixed with __.
  • Undocumented helpers, test fixtures (Tests/), examples (Examples/), benchmarks, reproductions and scripts.
  • Vendored third-party code (third_party/).
  • Build-system internals not listed as public above.

When in doubt: if it is documented with Doxygen in a root header and is not in a _detail namespace, it is public.

Deprecation procedure

  1. The API is marked [[deprecated("use <replacement> instead")]] in the header and listed under Deprecated in CHANGELOG.md, together with its replacement and the earliest version where removal may happen.
  2. The attribute stays for at least two minor releases (or, if a major release comes first, at least one full minor cycle) so consumers get compiler warnings before anything disappears.
  3. Removal happens only in a major release, listed under Removed in CHANGELOG.md.
  4. Where feasible, the deprecation ships with a migration note in the changelog (as done for the std::vector → Aleph::Array migration guide in 4.0.0).

ABI compatibility

Aleph-w is header-dominant: almost all code is templates instantiated in the consumer's translation units, plus a small static library (libAleph.a) and the optional vendored miniz object. Consequently:

  • No ABI stability is promised between any two releases, including patch releases. Consumers must recompile against the headers of the release they link.
  • Mixing object files compiled against different Aleph-w releases in one binary is unsupported.
  • The flat C ABI of the cellular-automata module (ca-c-api.h, shared library libalephca_c, CMake target Aleph::CApi; built by default, option ALEPH_BUILD_C_API) has an ABI version of its own, ALEPH_CA_API_VERSION_MAJOR.ALEPH_CA_API_VERSION_MINOR (1.0 today), whose major is the SOVERSION of the library. Every entry point carries a _v1 suffix, so that an incompatible revision can coexist with it. ca-c-api.h still marks it experimental: it carries no ABI guarantee yet either.
Release API compatible with previous ABI compatible with previous
Genius (2022) — (baseline) —
3.0.0 No (major) No
3.1.0 Yes (additive) No (recompile)
3.1.1 Yes (fixes) No (recompile)
4.0.0 No (major: CA module added; CA API finalised on Aleph::Array; core additions since 3.1.1) No
5.0.0 No (major) No
5.1.0 … 5.11.0 Yes (additive) No (recompile)
6.0.0 No (major) No
6.1.0 Yes (additive) No (recompile)
7.0.0 No (major: array family and constant iteration; see docs/release-notes/7.0.0.md) No
7.0.1 Yes (fixes; see docs/release-notes/7.0.1.md) No (recompile)
7.1.0 Yes (additive, one overload deprecated; see docs/release-notes/7.1.0.md) No (recompile)
7.1.1 Yes (fixes; see docs/release-notes/7.1.1.md) No (recompile)
7.1.2 Yes (fixes; see docs/release-notes/7.1.2.md) No (recompile)
7.2.0 Yes (additive, with behavior changes in the hash tables; see docs/release-notes/7.2.0.md) No (recompile)
7.2.1 Yes (fixes, with behavior changes in Floyd-Warshall and the binary heap; see docs/release-notes/7.2.1.md) No (recompile)
7.2.2 Yes (fixes, with a new requirement on the access functor of the arc heaps; see docs/release-notes/7.2.2.md) No (recompile)
7.3.0 Yes (additive, with behavior changes in the error macros; see docs/release-notes/7.3.0.md) No (recompile)
7.3.1 Yes (fix, with a behavior change in Floyd-Warshall; see docs/release-notes/7.3.1.md) No (recompile)
7.3.2 Yes (fixes, with behavior changes in the graphs, the trees, the heaps and the error macros; see docs/release-notes/7.3.2.md) No (recompile)
7.3.3 Yes (fixes, with behavior changes in the graphs, the error macros and the functors of ahFunction.H; see docs/release-notes/7.3.3.md) No (recompile)
7.3.4 Yes (fixes, with behavior changes in the components of a digraph, DynList and the floating flows; see docs/release-notes/7.3.4.md) No (recompile)
7.3.5 Yes (performance and fixes, with changes in the operations of DynList; see docs/release-notes/7.3.5.md) No (recompile)
7.3.6 Yes (fixes, with behavior changes in the states, the solutions and the sensitivity analysis of Simplex.H; see docs/release-notes/7.3.6.md) No (recompile)
7.4.0 Yes (additive: GSL replaced and optional, with behavior changes in LFit and the copies and moves of the randomized structures, and deprecations; see docs/release-notes/7.4.0.md) No (recompile)
7.5.0 Yes (fixes and concepts, with behavior changes in al-*.H, K2Tree, IO_Graph, the k shortest paths of Eppstein, Johnson and the thread pools, and deprecations; see docs/release-notes/7.5.0.md) No (recompile)
7.6.0 Yes (fixes, with behavior changes in the floating flows, Network_Simplex, the cycle canceling, the successive shortest paths and the feasibility of Net_Sup_Dem_Graph, the support of infinite capacities, and deprecations; see docs/release-notes/7.6.0.md) No (recompile)
7.6.1 Yes (performance and fixes, with another order among equal items in the sorts that are not stable; see docs/release-notes/7.6.1.md) No (recompile)
7.6.2 Yes (performance: the macros of ah-errors.H keep the stream of their message out of the frame of the function that checks; see docs/release-notes/7.6.2.md) No (recompile)
7.7.0 Yes (additive: Bounded_Cycle_Index.H, the index of the simple cycles of bounded length of a digraph through each arc, with a filter by their weight; see docs/release-notes/7.7.0.md) No (recompile)
7.7.1 Yes (fixes; some functions now throw where they hung, crashed or returned a wrong result; see docs/release-notes/7.7.1.md) No (recompile)
7.7.2 Yes (fixes, with behavior changes in the moved-from objects, the noexcept of the functions that run code of the user and set_hash_fct() of the hash tables, and two wrong copies disabled; see docs/release-notes/7.7.2.md) No (recompile)
7.7.3 Yes (fixes; BitArray::load() throws for a damaged header that it accepted; see docs/release-notes/7.7.3.md) No (recompile)
7.7.4 Yes (fixes, with a behavior change in the noexcept of the constructors, moves and swaps of the trees, the buckets of the open hash tables and the sifts of DynArrayHeap; see docs/release-notes/7.7.4.md) No (recompile)
7.7.5 Yes (fixes; the iterator of DynArrayHeap goes through its items alone and no longer derives from that of DynArray; see docs/release-notes/7.7.5.md) No (recompile)
7.8.0 Yes (additive: Adaptive_Huffman.H, adaptive Huffman coding of bytes in one pass; fixes, with behavior changes in the heaps, where a node or an item whose extraction or removal fails stays in the heap and Fibonacci_Heap::update_key() keeps its node, and in DynIntervalTree, whose iterator loses a prev() that did not compile; see docs/release-notes/7.8.0.md) No (recompile)
7.8.1 Yes (fixes, with behavior changes in the containers of arrays, which refuse a size that they cannot hold: DynArray and BitArray with std::length_error, and MemArray, ArrayHeap, FixedQueue and FixedStack with std::overflow_error, where 7.8.0 took it or left it to new[]; see docs/release-notes/7.8.1.md) No (recompile)
7.8.2 Yes (fixes, with behavior changes in the moves of the containers: a set or a map on a tree is nothrow move constructible only when the default construction of its key and value is noexcept, and a moved-from FixedQueue or hash table of chained lists has no capacity; see docs/release-notes/7.8.2.md) No (recompile)
7.8.3 Yes (fixes, with behavior changes: a raw LinearHashTable can no longer be copied, which corrupted the memory, and the trees and binary heaps whose comparison may throw when it is built or copied are not nothrow default constructible; see docs/release-notes/7.8.3.md) No (recompile)
7.8.4 Yes (fixes: the quotient filters keep every item that they hold through the removals of the others; see docs/release-notes/7.8.4.md) No (recompile)
7.8.5 Yes (fixes, with behavior changes: merge() of the quotient filters takes every item or throws, where it dropped items or threw with some of them in; the quotient, cuckoo and Bloom filters, the hash tables, Simplex and Static_Event_Table refuse a count, a rate or a size that they cannot have, where they gave another filter or left it to new[]; maps<R>() of the mixins, without an operation, converts each item once; and the functions that take what a comparison or a filter returns as a condition are noexcept only when its conversion to bool is; see docs/release-notes/7.8.5.md) No (recompile)
7.8.6 Yes (fixes, with behavior changes: Net_Cap_Graph::update() throws std::domain_error for a network that changed after compute_aux_net(), where it wrote through freed nodes and arcs; Net_Sup_Dem_Graph forgets the super nodes that leave the network, where it used freed nodes, and non_feasible_nodes() lists every supply and every demand when a super node is missing; and Net_Graph::disconnect_arc() is virtual, with the new protected swapped() and swap_contents(); see docs/release-notes/7.8.6.md) No (recompile)
7.9.0 Yes (additive: Random_Source and SplitMix64_Rng (ah-random.H), the source of random numbers that the randomized structures keep inside them, and Packed_Matrix (tpl_packed_matrix.H), a matrix whose columns are bit fields; fixes, with behavior changes: the randomized structures without a seed draw from a SplitMix64 inside them, and their set_seed() and rng() are no longer noexcept; the sets and the maps on trees, DynArray and the linear hash tables are built and moved without allocating, a set or a tree that was moved from keeps its comparison, and Avl_Tree, Avl_Tree_Rk, Splay_Tree and Splay_Tree_Rk are no longer copied; the arena of DynSetTree reuses the room of its nodes; BitArray::set_size() allocates every byte, and its fast access asserts i < size() in debug builds; and the deprecation of rng(); see docs/release-notes/7.9.0.md) No (recompile)
7.10.0 Yes (additive: Packed_Row_Of and Packed_Matrix_Of (tpl_packed_matrix.H), which take the columns of a Packed_Row or a Packed_Matrix from a std::array; fixes: a Packed_Row of more than 256 columns compiles with Clang; see docs/release-notes/7.10.0.md) No (recompile)

Release automation

  • Ongoing releases are prepared by release-please (.github/workflows/release-please.yml): it parses Conventional Commits on master, opens a release PR with the version bump (VERSION.txt) and the generated CHANGELOG.md section, and publishes the release and its v* tag when that PR merges. The same run then builds the artifacts and attaches them, through package-release.yml: a tag that a workflow creates with its own token triggers no other workflow, so release.yml does not run for it.
  • PR titles are linted for Conventional Commit form (see the conventional-pr workflow) so the changelog and version calculation stay reliable: feat: → minor, fix: → patch, feat!:/BREAKING CHANGE: → major.