# ashvardanian/less_slow.cpp

Playing around "Less Slow" coding practices in C++ 20, C, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO

Repository: https://github.com/ashvardanian/less_slow.cpp
Canonical: https://ross.abutalabs.com/products/less_slowcpp
Homepage: https://ashvardanian.com/tags/less-slow/
Language: C++
License: Apache-2.0
License Family: permissive
Topics: google-benchmark, cpp, cpp17, gcc, llvm, benchmark, cpp-programming, tutorial, tutorials, assembly, hpc, avx512, coroutines, ranges, cpp20, assembly-language, linux-kernel, cuda, io-uring, ptx
Last push: 2026-07-27T01:01:01+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 95, longevity 100
- inputs: {"age_days": 1644, "days_push": 38, "days_rel": 38, "gap_med": 1.0, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1924, forks 83 (observed 2026-08-28T04:05:55.437359+00:00)

## What it is
A tutorial-style repository of benchmarks demonstrating performance-oriented coding practices in C++20, C, CUDA, PTX, and assembly, covering topics from SIMD numerics to coroutines, ranges, exceptions, and user-space IO. It uses Google Benchmark to build intuition for writing faster low-level code.

## Use cases
- learn performance-oriented C++ coding practices
- benchmark SIMD vs scalar code
- understand CUDA and PTX micro-kernels
- measure coroutine and ranges overhead
- learn compiler optimization flags beyond -O3
- study branch predictor and memory behavior
- learn io_uring and user-space IO patterns

## When to choose
- you want hands-on benchmarked examples of low-level C++/CUDA optimization
- you're building intuition for nanosecond-to-millisecond scale performance decisions
- you want a practical companion to HPC or systems programming study

## When to avoid
- you need a production library to import into your project
- you want beginner-friendly C++ tutorials rather than performance deep-dives
- you need Windows or macOS-first guidance, since it targets GCC/Clang/NVCC on Linux

## Facets
- artifact type: learning-resource
- maturity: active
- function: benchmarking, developer-tools, math, concurrency, networking
- domain: performance, developer-tools, tutorials, gpu-computing
- platform: cpp, c, cli
- tags: cpp20, cuda, simd, assembly, ptx, coroutines, io-uring, google-benchmark, hpc, micro-optimization, avx512, algorithms, linux, gpu

## Member repositories
- ashvardanian/less_slow.cpp (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.437359+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:26.383285+00:00, confidence not recorded.
  - readme: https://github.com/ashvardanian/less_slow.cpp (fetched 2026-08-28T04:05:55.437359+00:00, sha fbaf99b9ec6b)
  - homepage: https://ashvardanian.com/tags/less-slow/ (fetched 2026-08-29T10:48:48.389270+00:00, sha e8434626d826)
- Data as of 2026-08-30T08:39:29.467469+00:00.
