Show HN: A Deployable Cross-Platform SIMD RNG Library for C++ (With Bnchmks)
Repository: https://github.com/whisprer/c-simd-rng-lib/
The goal was to solve a practical gap:
Most high-performance SIMD RNG implementations are either:
academic prototypes
single-architecture
non-portable
incomplete
or not packaged for real deployment
This library provides:
• AVX2 / AVX-512 accelerated paths (with graceful fallback) • Deterministic, reproducible streams • Clean API surface • Zero external runtime dependencies • Works across Win / Linux / macOS • Production-ready build setup
In bulk generation scenarios it significantly outperforms std::mt19937 and standard <random> engines, and benchmarks competitively (or faster) than other SIMD-enabled RNG libraries.
A separate benchmarking repository contains:
• Full comparison suite • Competing library benchmarks • Throughput numbers • Architectural breakdowns • Methodology + raw results
Benchmark repo: https://github.com/whisprer/benchmark/
The focus is high-throughput generation for simulations, Monte Carlo, procedural systems, and statistical workloads where large batches matter more than single draws.
Interested in feedback from folks working in HPC, simulation, game engines, or scientific computing.
No comments