Skip to content

1rishuraj/low-latency-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

low-latency-rust

Experiments in low-level Rust — lock-free data structures, custom synchronization primitives, and other latency-critical building blocks.

Each subfolder is a standalone project with its own README and tests.

Projects

  • spinlock — A custom Spinlock<T> built from AtomicBool + UnsafeCell + an RAII guard. Test-and-test-and-set acquire loop, Acquire/Release fences, and ~60 lines of justified unsafe.

  • spsc — A lock-free single-producer single-consumer ring buffer. No CAS, no mutex — just plain atomic load/store with the right memory ordering. Strictly faster than MPMC for two-stage pipelines.

Why this repo

Building these primitives from scratch is the fastest way to actually understand how concurrency, memory ordering, and unsafe work in Rust — far more than reading about them. Each project is small, self-contained, and documented with the reasoning behind every design choice.

License

MIT

About

Hands on low-level concurrency primitives and systems code in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages