#simd #performance #gpu #vector

macro fast-macro

High-performance SIMD mathematics, optimized GPU computation, and vectorized algorithms

3 releases

new 0.0.2 Jan 16, 2025
0.0.1 Jan 16, 2025
0.0.0 Jan 12, 2025

#262 in #simd

Download history 106/week @ 2025-01-08

106 downloads per month
Used in fast

MIT/Apache

4KB

FAST

Zero-cost, hyper-optimized mathematics and computation.

Features

Requires nightly rust.

  • ⚡️ Zero-overhead abstractions
  • 🚀 SIMD-first design
  • 🎯 Cache-optimal algorithms
  • 🧮 Vectorized mathematics
  • 🛡️ Compile-time validation

Performance

Raw computational speed is our obsession:

  • Direct SIMD mapping
  • Cache-line alignment
  • Vectorized operations
  • Zero runtime overhead

Installation

[dependencies]
fast = "0.1.0"

Requirements

  • Rust 1.70+
  • CPU with SIMD support

Platform Support

  • x86_64 (AVX, AVX2, AVX-512)
  • ARM (NEON, SVE)

Safety

  • Compile-time validation
  • Bounds checking elimination
  • Alignment verification
  • Type safety guarantees
  • Architecture validation

Contributing

FAST is focused on being the fastest possible mathematics library for Rust. We welcome:

  1. Performance improvements
  2. Architecture optimizations
  3. New algorithms
  4. Documentation
  5. Benchmarks

License

Apache 2.0 / MIT dual license

FAQ

Why FAST?

  • Zero Cost: No runtime overhead
  • SIMD First: Built for vector instructions
  • Cache Optimal: Memory layout tuned

FAST vs Others?

  • Focus on raw performance
  • SIMD by default
  • GPU acceleration
  • Minimal abstractions

Dependencies

~0.7–1.1MB
~25K SLoC