HN Reader

NewTopBestAskShowJob

Show HN: A Deployable Cross-Platform SIMD RNG Library for C++ (With Bnchmks)

score icon1
comment icon0
1 hour agoby whisprer
I’ve built a fully cross-platform SIMD-accelerated C++ pseudo-random number generation library designed for real-world deployment (Windows, Linux, macOS).

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