Executor-Tyrant-Framework's picture
Claude Opus 4.6 (1M context)
Condensate v2: Full Rust conversion β€” 12 modules, 105 tests, zero Python inflation
4b6e841
Raw History Blame Contribute Delete
2.02 kB
//! 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(())
}