Tagged articles

lifetimes

5 articles · Page 1 of 1
Golang Shines
Golang Shines
Feb 26, 2026 · Fundamentals

Rust vs Go Memory Management: The Caretaker vs the Landlord

This article compares Rust and Go memory management by using a house‑rental analogy, detailing Go's garbage‑collector landlord model and Rust's compile‑time caretaker model, illustrating each with code snippets, pros and cons, real‑world performance anecdotes, and a practical scenario matrix.

Garbage CollectionGoMemory Management
0 likes · 7 min read
Rust vs Go Memory Management: The Caretaker vs the Landlord
Dunmao Tech Hub
Dunmao Tech Hub
Aug 21, 2025 · Fundamentals

Understanding Rust Borrowing: Multiple Immutable vs Single Mutable References

This article explains Rust’s core borrowing rules—allowing any number of immutable references, permitting only one mutable reference, and forbidding their coexistence—detailing the concept of lifetimes, providing code examples for each rule, and highlighting the safety benefits for concurrent programming.

Memory safetyborrowinglifetimes
0 likes · 6 min read
Understanding Rust Borrowing: Multiple Immutable vs Single Mutable References
ByteFE
ByteFE
May 9, 2022 · Fundamentals

Why Learn Rust: Fundamentals, Ownership, Lifetimes, and WebAssembly Integration

This article explains why Rust is valuable for modern development, introduces its memory model, ownership, borrowing, lifetimes, and copy semantics, and provides step‑by‑step guidance for building a WebAssembly image‑processing app with Rust, Cargo, wasm‑pack, and Vite.

Programming FundamentalsRustWebAssembly
0 likes · 27 min read
Why Learn Rust: Fundamentals, Ownership, Lifetimes, and WebAssembly Integration
Tencent Cloud Developer
Tencent Cloud Developer
Feb 8, 2022 · Fundamentals

From C++ to Rust: Error Handling and Lifetimes

The article, the second in the “From C++ to Rust” series, explains how Rust replaces C++’s return‑value and exception error handling with the Result type, the ? operator, and the thiserror/anyhow crates, and introduces Rust’s lifetime system, borrow checker, elision rules, variance, and common misconceptions for developers transitioning from C++.

C++Error handlingMemory safety
0 likes · 19 min read
From C++ to Rust: Error Handling and Lifetimes