File size: 2,022 Bytes
26cf661 4b6e841 26cf661 4b6e841 26cf661 06e681c af19099 12fc5b2 49624b9 4b6e841 26cf661 06e681c 26cf661 4b6e841 06e681c 26cf661 4b6e841 26cf661 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | //! Condensate Core β Rust implementation
//!
//! Living memory manager: learns access patterns through causal topology,
//! predicts future accesses, manages memory tiers via continuous thermal
//! field dynamics.
//!
//! # Modules
//!
//! ## Core pipeline (original)
//! - `graph` β AccessGraph: learns memory access topology
//! - `predictor` β RustPredictor: causal spike propagation predictions
//! - `membrane` β LD_PRELOAD malloc/free interception
//! - `condenser` β HOT/WARM/COLD tier management with real memory ops
//! - `pipeline` β Living loop connecting all components
//! - `lenia` β Continuous thermal field dynamics
//!
//! ## Condensing strategies (Phase 1 blocks F-L)
//! - `keyframe` β Keyframe/delta encoding (video codec model)
//! - `sparse` β Partial decompression (serve exactly what's needed)
//! - `locality` β Manufactured spatial locality + software prefetch
//! - `sleep` β Biological sleep consolidation cycle
//! - `gate` β Prediction gate (KISS overhead reduction)
//! - `splat` β Gaussian splat field geometry
//! - `erasure` β Erasure coding + holographic boundaries
//!
//! # Build targets
//!
//! - `cargo build --features python` β Python module (.so)
//! - `cargo build --no-default-features --features preload` β LD_PRELOAD .so
pub mod graph;
pub mod predictor;
pub mod membrane;
pub mod condenser;
pub mod pipeline;
pub mod lenia;
pub mod keyframe;
pub mod sparse;
pub mod gate;
pub mod locality;
pub mod sleep;
pub mod splat;
pub mod erasure;
mod bench;
#[cfg(feature = "python")]
use pyo3::prelude::*;
/// Python module: condensate_core
///
/// Exposes the core pipeline types and condensing strategies to Python.
/// Python is orchestration only β the data path is Rust.
#[cfg(feature = "python")]
#[pymodule]
fn condensate_core(m: &Bound<'_, PyModule>) -> PyResult<()> {
// Core pipeline
m.add_class::<graph::AccessGraph>()?;
m.add_class::<predictor::RustPredictor>()?;
m.add_class::<predictor::Prediction>()?;
Ok(())
}
|