// ---
// tags: bbg, rust
// crystal-type: source
// crystal-domain: cyber
// ---
//! Storage backends for BBG polynomial state.
//!
//! Five backends selected by deployment scale and hardware:
//!
//! | backend | crate | tier | notes |
//! |---------|----------------|-------|------------------------------|
//! | memory | std HashMap | hot | default, always available |
//! | unimem | honeycrisp | hot | Apple Silicon zero-copy |
//! | ssd | fjall | warm | feature = "backend-ssd" |
//! | hdd | redb | cold | feature = "backend-hdd" |
//! | network | NetworkStore | L3 | injected by cybergraph |
//!
//! ShardStore and NetworkStore are independent traits. ShardStore covers
//! local tiers (memory โ hdd). NetworkStore is a separate injection point
//! for content retrieval; BBG owns tier routing but not transport.
pub use MemStore;
pub use NetworkStore;
pub use TieredStore;
pub use FjallStore;
pub use RedbStore;
pub use UnimemStore;
use Goldilocks;
/// Dimension identifiers โ 10 BBG_poly dimensions + 2 private polynomials + 1 intent + 1 local-only.
/// Storage interface for a polynomial evaluation shard.
///
/// Authentication is provided by the Lens commitment layer โ the store has
/// no opinion on correctness. `commit()` returns a shard sub-root for change
/// tracking only; the authoritative commitment is computed by `dim.rs`.
/// Serialize a Goldilocks slice to LE bytes (8 bytes per element).
pub
/// Deserialize LE bytes back to Goldilocks elements.
pub
/// Compute a shard sub-commitment from the dirty key list (hemera hash).
pub
Homonyms
cyb/evy/forks/naga/src/back/hlsl/mod.rs
struct Baz { m: mat3x2, } struct Baz { float2 m_0; float2 m_1; float2 m_2; }; float3x2 GetMatmOnBaz(Baz obj) { return float3x2(obj.m_0, obj.m_1, obj.m_2); }