Rust
A collection of 6 posts tagged with "Rust".
-
Using SIMD for Parallel Processing in Rust
SIMD (Single Instruction, Multiple Data) is a powerful tool for accelerating data-intensive operations in high-performance computing. While our previous exploration focused on thread-level parallelism with Rayon, SIMD enables parallelism within a single core, simultaneously operating on multiple data points. Understanding and leveraging SIMD is vital to squeeze every ounce of performance out of your code. As of mid-2024, Rust offers multiple avenues for SIMD development. While the standard libr
Read more -
Parallel Processing with Rayon: Optimizing Rust for the Multi-Core Era
Learn how to use the Rayon library in Rust for parallel programming. Explore core concepts, key features, practical examples, and best practices to enhance performance with multi-core processors.
Read more -
Handling environment variables with Axum
When writing a web application, the need to thread environment variables into your request handlers is almost always a necessity. For example, access an API secret or some configurable url is commonly required. Working with Axum is no different. I've waffled on several different approaches to this and I've landed on something quite simple that serves as a convenient way to access environment variables wherever they are needed. #[derive(Clone, Debug)] pub struct EnvironmentVariables { pub d
Read more -
Idiomatic Error Handling in Rust
Say Goodbye to Unhandled Exceptions with Rust's Error Handling
Read more -
Understanding Rust’s Ownership Model
Climbing the steepest part of the learning curve
Read more -
Getting Started With Rust and Cargo
A straightforward primer for working in Rust
Read more