Blog

Insights and articles about Rust, AI, and modern software development.

Showing 6 of 51 articles • Page 2 of 9

rustAugust 15, 2025

Deadlocks in C vs Rust: What Does Rust Really Prevent?

Deadlocks aren't prevented by compilers—but Rust adds safety guarantees that make writing deadlock-prone code harder. Here's how it compares to C.

rustAugust 15, 2025

Write a function that accepts both sized types (e.g., [u8; 16]) and unsized types (e.g., [u8] or dyn Trait) with ?Sized bound

Understanding the role of ?Sized bounds in Rust trait definitions and leveraging them to create flexible functions that work with both sized and unsized types efficiently

rustAugust 14, 2025

Use supertraits to enforce a hierarchy of behaviors

Leveraging supertraits to establish behavior hierarchies and combining them with where clauses to optimize complex generic algorithms for performance and type safety

rustAugust 13, 2025

Making Traits Object-Safe for Rust's dyn Trait in Plugin Systems

Understanding object safety in Rust and refactoring traits for dynamic dispatch

rustAugust 11, 2025

Trait Bounds

Using trait bounds in Rust for type safety and performance in mathematical computations