Rust for C++ Programmers: A Practical Guide

2025-05-31

This book serves as a practical guide for C++ programmers transitioning to Rust. It translates common C++ patterns into idiomatic Rust, using concrete code examples and discussing engineering trade-offs. The book is designed for both sequential and random-access reading, perfect for when you encounter a Rust problem and think, "I know how to do this in C++". Written by experts at Brown University's Cognitive Engineering Lab, it focuses on accuracy and detail, with no AI-generated content.

Read more
Development

Argus: An Interactive Debugger for Demystifying Complex Rust Trait Errors

2025-05-06
Argus: An Interactive Debugger for Demystifying Complex Rust Trait Errors

Rust's powerful type system is renowned, but complex type errors can be frustrating for developers. This article introduces Argus, an interactive debugger that visualizes the Rust trait inference tree in a graphical interface, helping developers understand complex trait errors step by step. Argus offers both bottom-up and top-down views, along with interactive expansion of long types and paths, significantly improving error localization efficiency. A user study showed a 3.3x speedup in locating trait errors using Argus. Argus is available as a VSCode extension and the source code is open-sourced.

Read more
Development