Minimal deterministic X-kernel with filament, fiber, and bundle structures.
Project description
🌀 xkernel
Minimal Deterministic X-Kernel with Filaments, Fibers, and Bundles
xkernel is a small, deterministic engine that evolves vectors with a local rule and organizes their histories into filaments, fibers, and bundles.
Out of the box, xkernel ships with a simple linear update rule in ℝ^d so the package is:
- deterministic
- easy to test
- semantically agnostic
It does not define patterns or lenses. Those belong in downstream systems that consume xkernel's data structures.
Quick start
# from the repo root, in your venv
pip install -e .
# Run a demo extrusion
xkernel demo --fibers 2 --filaments 3 --steps 8 --dim 4
Example output:
Bundle:
fibers: 2
filaments per fiber: 3
steps per filament: 8
dimension: 4
Core concepts
XKernel : s_{t+1} = s_t + η * w
Filament : [s_0, s_1, ..., s_T]
Fiber : { filament_id -> Filament }
Bundle : { fiber_id -> Fiber }
XEngine : orchestrator building bundles from a spec
ExtrusionSpec: small config object describing counts + dimension
The default rule uses a fixed weight vector so that traces are stable and
predictable. You can later replace XKernel with a richer rule while keeping
the same public API.
Testing
pytest
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xkernel-0.0.1.tar.gz.
File metadata
- Download URL: xkernel-0.0.1.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a942da6195b9992ba8f38fd7d222f578acdd94deea1db9cca35fcc99bc36bf53
|
|
| MD5 |
be6b40bfca91bb75df69971add429786
|
|
| BLAKE2b-256 |
3dfd07f1c69b80b8c2c52f7f84f004fddba471e957dc81e2331498737f94fff9
|
File details
Details for the file xkernel-0.0.1-py3-none-any.whl.
File metadata
- Download URL: xkernel-0.0.1-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8460f96f217a4fbeeecc4550b68c7457390ca90fde5b1c34cd413e5acc7d06b
|
|
| MD5 |
87c942fb01025cb050281f2de3924b24
|
|
| BLAKE2b-256 |
195b0d7a79b348124c220faff7ea9a1e5da2e25bed90c496183dac49f81347cc
|