memkit 0.2.0-beta.1

Deterministic, intent-driven memory allocation for systems requiring predictable performance
Documentation

◈ MEMKIT CORE ◈

[ DETERMINISTIC CPU ALLOCATION ENGINE ]

Crates.io Documentation License Rust


 ██████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║     ██║   ██║██████╔╝█████╗  
██║     ██║   ██║██╔══██╗██╔══╝  
╚██████╗╚██████╔╝██║  ██║███████╗
 ╚═════╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝

"Predictable memory is the foundation of reliable systems."

The core engine of the Memkit ecosystem, providing thread-local arenas, object pools, and sub-nanosecond allocation logic.

◈ QUICK START◈ ADVANTAGE◈ SENTINEL


◈ THE MEMKIT ADVANTAGE

Feature Standard Box Memkit Core System Impact
Cost O(Varies) O(1) Stable frame times
Locality Random Contiguous SIMD/Cache efficient
Safety Drop-based Bulk Reset Zero-cost cleanup
Threads Contention Lock-Free Linear scaling
Debug Standard Sentinel Hazard detection

◈ SENTINEL MODE

Enable the sentinel feature for memory hardening.

[dependencies]

memkit = { version = "0.2.0-beta.1", features = ["sentinel"] }

┌─────────────────────────────────────────────────────────────────────────┐
│  ◆ POISONING   │  Fills allocs with 0xAA and frees with 0xDD. Catch      │
│                │  use-after-free instantly.                               │
├─────────────────────────────────────────────────────────────────────────┤
│  ◆ HAZARDS     │  Runtime reporting of double-frees and cross-thread     │
│                │  ownership violations.                                  │
├─────────────────────────────────────────────────────────────────────────┤
│  ◆ AUDIT       │  Verifies zero leaks on shutdown with detailed report.  │
└─────────────────────────────────────────────────────────────────────────┘

◈ QUICK START

use memkit::{MkAllocator, MkConfig};

let alloc = MkAllocator::new(MkConfig::default());

loop {
    alloc.begin_frame();
    
    // O(1) Allocation - zero fragmentation
    let buffer = alloc.frame_slice::<f32>(1024).unwrap();
    let entity = alloc.frame_box(PhysicsEntity::new()).unwrap();
    
    // Pool allocation for stable objects
    let pool_obj = alloc.pool_box(Component::new()).unwrap();
    
    alloc.end_frame(); // Bulk reset
}

◈ ECOSYSTEM

Crate Purpose Status
memkit Core engine BETA 1.1
memkit-gpu GPU Buffer Management BETA 1.1
memkit-co CPU↔GPU Synchronization BETA 1.1
memkit-async Task-local Async Safety BETA 1.1

◈ LICENSE

Licensed under the Mozilla Public License 2.0.


[ Part of the ◈ MEMKIT ◈ Ecosystem ]