Skip to main content
Docs/Blitz Engine

Blitz Engine

Deep dive into the high-performance core.

Overview

Blitz Engine is the foundation of VoidAI — a Rust library that compiles to both native and WASM with identical performance characteristics.

Performance

MetricValue
Ring buffer push15ns
Message throughput87M/sec
Byte operations1.2B/sec
Dependencies0 in core

Key Components

Event Loop

Reactive event processing with backpressure:

let mut loop = EventLoop::new(); loop.on("message", |msg| { // Handle message }); loop.run(); ```

Ring Buffer

Lock-free, bounded queue:

let rb = RingBuffer::new(1024); rb.push(data); // 15ns let item = rb.pop(); ```

WASM Support

Same API in JavaScript:

const loop = new EventLoop(); const rb = new RingBuffer(1024); ```

Source Code

Open source coming soon. Star us when we launch!