Rust High-Frequency Quantitative Trading
Author

Rust High-Frequency Quantitative Trading

Rust High-Frequency Quantitative Trading System

18
Articles
0
Likes
3
Views
0
Comments
Recent Articles

Latest from Rust High-Frequency Quantitative Trading

18 recent articles

How CPU Affinity Boosts Low‑Latency in High‑Frequency Trading

The article explains why the Linux scheduler’s thread migration hurts deterministic low‑latency trading, outlines three reasons to bind threads to specific cores, demonstrates how to use taskset and Rust’s core_affinity crate for binding, and shows how to verify the binding with htop and command‑line tools.

CPU affinityLinux schedulingRust
0 likes · 13 min read
How CPU Affinity Boosts Low‑Latency in High‑Frequency Trading

How SMT Hurts Low‑Latency High‑Frequency Trading and How to Disable It on AWS

The article explains why Simultaneous Multi‑Threading (SMT) degrades deterministic low‑latency performance in high‑frequency trading, details the resource contention and unpredictability it introduces, and provides step‑by‑step instructions for disabling SMT on AWS instances and verifying the change.

AWSHyper-ThreadingLinux
0 likes · 12 min read
How SMT Hurts Low‑Latency High‑Frequency Trading and How to Disable It on AWS
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
Jun 9, 2026 · Interview Experience

How to Build a Low‑Latency C++ Trading System for a Million‑Dollar Quant Interview

This article explains what interviewers expect when they ask about implementing a low‑latency C++ trading system, covering hardware‑level concepts such as cache hierarchy, false sharing, NUMA, kernel bypass, CPU pinning, lock‑free programming, memory‑order semantics, and modern C++ techniques that together achieve microsecond‑ or nanosecond‑scale determinism.

C++Lock-freeMemory Model
0 likes · 34 min read
How to Build a Low‑Latency C++ Trading System for a Million‑Dollar Quant Interview

Microsecond‑Level Sleep: Why thread::sleep Misses Its Target and How to Fix It

On Linux, a call to std::thread::sleep(Duration::from_micros(2)) typically pauses for about 60 µs—30× longer than requested—because the API only guarantees a lower bound and adds a default timer_slack of 50 µs; the article explains the kernel path, shows benchmark data, and provides practical ways to shrink the floor to ~10 µs or achieve sub‑µs latency with busy‑spin and full system tuning.

LinuxRustbusy-spin
0 likes · 21 min read
Microsecond‑Level Sleep: Why thread::sleep Misses Its Target and How to Fix It
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
May 30, 2026 · Fundamentals

Efficient Timestamp Retrieval in Rust for High‑Frequency Trading

The article dissects the cost of obtaining timestamps in Rust, compares chrono::Utc::now(), clock_gettime, std::time::Instant and raw RDTSC, explains Linux vDSO behavior, monotonic vs realtime clocks, and proposes a layered timestamp strategy that uses raw cycles for hot‑path latency measurement, calibrated clock_gettime for wall‑clock alignment, and chrono only at system boundaries.

PerformanceRustchrono
0 likes · 16 min read
Efficient Timestamp Retrieval in Rust for High‑Frequency Trading
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
May 16, 2026 · Backend Development

Nanosecond‑Level Parsing: Zero‑Copy Rust Parsing in HFT Systems

The article dissects how market‑data parsing becomes the first latency bottleneck in high‑frequency trading, then demonstrates a zero‑copy approach using the Rust logos library that eliminates heap allocations, repeated bounds checks and memory copies, and compares it with other Rust parsing ecosystems.

PerformanceRusthigh-frequency trading
0 likes · 20 min read
Nanosecond‑Level Parsing: Zero‑Copy Rust Parsing in HFT Systems
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
Apr 14, 2026 · Backend Development

How SIMD Powers Ultra‑Low‑Latency High‑Frequency Trading with Rust

The article explains SIMD fundamentals, traces the evolution of x86 instruction sets, compares Intel and AMD implementations, examines the controversy around AVX‑512, and shows how Rust leverages SIMD to accelerate critical paths in high‑frequency quantitative trading, offering concrete code examples and performance tips.

AVX-512CPU OptimizationRust
0 likes · 19 min read
How SIMD Powers Ultra‑Low‑Latency High‑Frequency Trading with Rust
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
Mar 27, 2026 · Fundamentals

Why 0.1 + 0.2 ≠ 0.3: A Deep Dive into Floating‑Point Precision and the Ryū Algorithm

The article explains why adding 0.1 and 0.2 in Rust (and other IEEE‑754 languages) yields 0.30000000000000004, explores the binary representation limits of f64, introduces the ULP concept, and details how the Ryū algorithm produces the shortest correct decimal string for floating‑point numbers.

RustRyū algorithmULP
0 likes · 11 min read
Why 0.1 + 0.2 ≠ 0.3: A Deep Dive into Floating‑Point Precision and the Ryū Algorithm
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
Mar 18, 2026 · Fundamentals

Deep Dive into Rust’s High‑Performance String Interning Library ustr

The article explains how Rust’s ustr library implements string interning to store each unique string only once, offering O(1) pointer‑based comparison, pre‑computed hashing, zero‑cost cloning, seamless C FFI, and thread‑safe usage, while also detailing its internal design, usage patterns, suitable scenarios, and trade‑offs.

FFIPerformanceRust
0 likes · 14 min read
Deep Dive into Rust’s High‑Performance String Interning Library ustr