nicwolff a day ago

Why can't AIs make ASCII art boxes line up?

    ┌─────────────────────────────────────────────────────────────────┐
    │                        Flux Architecture                       │
    ├─────────────────────────────────────────────────────────────────┤
    │                                                               │
    │  ┌─────────────┐    ┌─────────────┐    ┌─────────────┐      │
    │  │  Producer   │    │  Producer   │    │  Producer   │      │
    │  │   (P1)      │    │   (P2)      │    │   (P3)      │      │
    │  └─────┬───────┘    └─────┬───────┘    └─────┬───────┘      │
    │        │                  │                  │               │
    │        └──────────────────┼──────────────────┘               │
    │                           │                                  │
    │                    ┌──────▼──────┐                           │
    │                    │ Ring Buffer │  ← Lock-free, zero-copy   │
    │                    │ (1M slots)  │     cache-line aligned    │
    │                    └──────┬──────┘                           │
    │                           │                                  │
    │        ┌──────────────────┼──────────────────┐               │
    │        │                  │                  │               │
    │  ┌─────▼──────┐    ┌─────▼──────┐    ┌─────▼──────┐        │
    │  │  Consumer  │    │  Consumer  │    │  Consumer  │        │
    │  │   (C1)     │    │   (C2)     │    │   (C3)     │        │
    │  └────────────┘    └────────────┘    └────────────┘        │
    │                                                               │
    │  ┌─────────────────────────────────────────────────────────┐   │
    │  │              Performance Optimizations                 │   │
    │  │  • SIMD (NEON/AVX2) data copy                        │   │
    │  │  • Hardware CRC32 (ARM/x86)                           │   │
    │  │  • NUMA-aware allocation (Linux)                      │   │
    │  │  • Huge pages + io_uring (Linux)                      │   │
    │  │  • Cache-line padding + prefetching                   │   │
    │  │  • Batch processing (8K-128K slots)                   │   │
    │  └─────────────────────────────────────────────────────────┘   │
    │                                                               │
    └─────────────────────────────────────────────────────────────────┘
  • ziyasal a day ago

    Ahaha, yeah it fails to align thats true, but still not that bad on documenting

    (BTW documentation needs to be updated, I already put a note for this concern in the Readme ..)

ziyasal 2 days ago

Flux is a high-performance, zero-copy message transport library for Rust, designed for ultra-low-latency applications requiring maximum throughput. It is built on patterns & practices inspired by LMAX Disruptor and Aeron, with modern Rust optimizations.