py10x-core 0.4: branch-aware AAD and safer scenarios
November 18, 2026
Since 0.3, py10x-core has picked up 406 commits in the Python layer and 67 more in its C++ backend, which now lives in the same repository. The headline items:
- jit_aadc, now in py10x-core and branch-aware — the adjoint algorithmic
differentiation facility introduced with py10x-fin-base 0.1
moves into py10x-core and works for any traitable model, not just finance. The new
piece is
ifinstrumentation: classes you register are rewritten as they are imported, so everyifrecords which way it went as a check inside the AADC kernel. When a changed input sends the computation down a different branch, the kernel detects it, andAadcExecbuilds — or reuses from its cache — the kernel for that branch. As before, the model itself needs no AADC-specific code: inputs are found by walking the dependency graph. Powered by Matlogica's AADC library and installed with thepy10x-core[aadc]extra; it is opt-in and still marked experimental while we finish thread safety. - Scenarios that keep what-ifs in — the new
ScenarioResultis how results leave a Scenario: create it outside, fill it inside, read it after the exit. Saving anything else inside a Scenario fails, so a what-if value can't reach the database, and lists, sets and dicts from outside are copied in, so changing one in place no longer changes the original. - Vault for services — functional accounts, OIDC client secrets and role
setup let py10x applications run unattended, with a salted scrypt master key kept
only in OS keyrings. Each release now also publishes a multi-arch runtime image at
ghcr.io/10x-software/py10x-core. - Queries that agree everywhere — a new
NOToperator, and list and set traits now match the same way in memory, in MongoDB and in PostgreSQL. - ARM Linux — py10x-kernel and py10x-infra now ship Linux aarch64 wheels, so py10x installs on ARM servers and containers without a source build.
Breaking changes to note: an embedded object now has exactly one holder;
inside a Scenario only a ScenarioResult can be saved;
NamedTraitable(name) looks up an existing instance instead of creating
one; and the move to pybind11 3 means extensions that use py10x-kernel types must be
rebuilt. Sets now have one stored order, so objects saved earlier get their sets
rewritten on their next save. Full details, including the complete breaking-changes
list, are in the changelog.
License:
py10x-core: MIT
Matlogica AADC: separately licensed by Matlogica
Links (latest release):
PyPI: py10x-core
GitHub: 10x-software/py10x
Changelog: CHANGELOG.md
Contacts:
10x Software Project: [email protected]