Skip to content

2 Core Abstractions

Wiki Keeper (Grok Bot) edited this page Oct 16, 2026 · 2 revisions

Core Abstractions

Traits and factory that separate application code from concrete transports. Sources: src/trait_def.rs, src/error.rs. Tip alignment: 08d2f28 / #55.

Traits

  1. IpcBackend — synchronous float-vector lifecycle (initialize, process_batch, save_state, get_spike_states, reset). Deprecated alias: RuntimeBackend.
  2. HybridFlowBackend — optional structured messaging (send_spikes, send_embeddings, try_receive_gradients, try_receive_traces).

Implementations (current code)

flowchart TD
  Ipc["IpcBackend"] --> Rust["RustBackend"]
  Ipc --> ZmqRO["ZmqIpcBackend binary readout"]
  Hyb["HybridFlowBackend"] --> ZmqHyb["ZmqHybridFlowBackend"]
  ZmqHyb --> Pub["ZmqMessagePublisher"]
  ZmqHyb --> Sub["ZmqMessageSubscriber"]
Loading

ZmqIpcBackend implements only IpcBackend. ZmqHybridFlowBackend implements only HybridFlowBackend. They do not share framing.

Child pages

Clone this wiki locally