Blog
Insights and articles on Rust 🦀, AI and live tool development.
Filter by Topic
Showing 6 of 53 articles • Page 1 of 9
Understanding Rust Move Closures: A Guide for JavaScript Developers
Learn how Rust move closures work compared to JavaScript closures - ownership, threading, and when to use the move keyword
Boosting Rust Hot Loops: Slashing Branch Mispredictions
Low-level optimization in Rust, focusing on minimizing branch mispredictions in performance-critical loops
SIMD in Rust: Optimizing Matrix Multiplication
Leveraging Rust’s SIMD support for accelerating matrix multiplication with considerations for portability and correctness
Zero-Cost Abstractions: How Rust Optimizes Iterator Chains
Low-level optimization in Rust, focusing on iterator chains and zero-cost abstractions
Vec::push() in a loop vs. pre-allocating with Vec::with_capacity()?
Comparing performance of Vec::push() in loops versus pre-allocating with Vec::with_capacity(), analyzing memory reallocation costs and optimization strategies
Use fixed-size arrays or Option to avoid allocations in a performance-critical path
Leveraging Rust's stack-based features like fixed-size arrays and Option to eliminate heap allocations in real-time systems for predictable, low-latency execution