Tag

Memory Safety

0 views collected around this technical thread.

Architecture Development Notes
Architecture Development Notes
May 11, 2025 · Fundamentals

How Rust’s Ownership Model Eliminates Memory Bugs Before They Run

This article explores how Rust’s innovative ownership, borrowing, and type‑driven error handling move memory safety and concurrency checks from runtime to compile time, contrasting its zero‑cost abstractions with C++ and Go, and demonstrating practical code examples that prevent common bugs.

Memory SafetyOwnershipRust
0 likes · 10 min read
How Rust’s Ownership Model Eliminates Memory Bugs Before They Run
Architecture Development Notes
Architecture Development Notes
Jan 5, 2025 · Fundamentals

Why Rust Is Safer Than C for Linux Kernel Modules

This article explains how Rust's memory safety, concurrency guarantees, explicit error handling, and modern tooling make it a safer and more maintainable alternative to C for developing Linux kernel modules.

C++Linux KernelMemory Safety
0 likes · 10 min read
Why Rust Is Safer Than C for Linux Kernel Modules
Architecture Development Notes
Architecture Development Notes
Dec 4, 2024 · Fundamentals

Why Rust Beats TypeScript for Low‑Level Performance: A Developer’s Journey

The author, a seasoned TypeScript developer, explains why they chose Rust over C/C++, outlines effective learning resources, and compares Rust’s compiler, type system, and memory management to JavaScript/TypeScript, highlighting the language’s performance, safety, and practical benefits for low‑level development.

CompilerMemory SafetyRust
0 likes · 8 min read
Why Rust Beats TypeScript for Low‑Level Performance: A Developer’s Journey
Architecture Development Notes
Architecture Development Notes
Oct 11, 2024 · Artificial Intelligence

Can Rust Replace Python for Data Science? Exploring Performance and Safety

While Python dominates data analysis and machine learning with its ease of use, Rust offers memory safety and near‑C performance; this article examines their respective strengths, the challenges of rewriting the Python interpreter in Rust, and how combining both can boost library speed and reliability.

Memory SafetyPythonRust
0 likes · 6 min read
Can Rust Replace Python for Data Science? Exploring Performance and Safety
Java Tech Enthusiast
Java Tech Enthusiast
Oct 4, 2024 · Fundamentals

Safe C++ Extension Proposal Adds Memory Safety to C++

The C++ Alliance and engineer Sean Baxter have proposed a “Safe C++” extension, to be submitted to ISO, that introduces memory‑safety checks and a Safe Standard Library with secure data structures, responding to industry and government calls for safer code and echoing DARPA’s Rust‑translation efforts.

C++Memory SafetySafe C++
0 likes · 5 min read
Safe C++ Extension Proposal Adds Memory Safety to C++
IT Services Circle
IT Services Circle
Sep 23, 2024 · Fundamentals

Safe C++: A Revolutionary Extension Proposal for Memory Safety in C++

An overview of the Safe C++ extension proposal, developed by the C++ Alliance and Sean Baxter, which aims to add memory‑safety features to C++, includes example code, discusses its significance for software security, and references industry and governmental interest in safer programming languages.

C++ISO StandardMemory Safety
0 likes · 5 min read
Safe C++: A Revolutionary Extension Proposal for Memory Safety in C++
Java Tech Enthusiast
Java Tech Enthusiast
Sep 5, 2024 · Fundamentals

Rust for Linux Maintainer Steps Down Amid Community Debates

The lead maintainer of the Rust for Linux project resigned, citing fatigue from non‑technical disputes, reigniting heated community debates over Rust’s suitability for kernel development, including concerns about API stability, missing C feature support, cultural collaboration issues, and whether to rewrite the kernel in Rust or continue retrofitting.

CommunityLinux KernelMemory Safety
0 likes · 6 min read
Rust for Linux Maintainer Steps Down Amid Community Debates
Architecture Development Notes
Architecture Development Notes
Apr 13, 2024 · Fundamentals

Why Rust Is Revolutionizing System Programming: Safety, Performance, and Concurrency

Rust, a modern systems programming language, offers memory safety without a garbage collector, a powerful ownership model, zero‑cost abstractions, robust error handling, and safe concurrency primitives, making it ideal for high‑performance, reliable software development, as demonstrated through detailed examples and explanations.

Memory SafetyOwnershipRust
0 likes · 8 min read
Why Rust Is Revolutionizing System Programming: Safety, Performance, and Concurrency
Java Tech Enthusiast
Java Tech Enthusiast
Feb 17, 2024 · Information Security

Linux Kernel SandBox Mode (SBM) Patch Enhances Memory Safety

Huawei engineer Petr Tesarik submitted a Linux kernel patch that adds SandBox Mode (SBM), an API confining kernel code to predefined memory regions, using hardware paging and CPU privilege levels to isolate components, detect out‑of‑bounds accesses, recover from violations, terminate the sandbox and return error codes such as -EFAULT, enabling continued execution.

Linux KernelMemory SafetySandbox
0 likes · 2 min read
Linux Kernel SandBox Mode (SBM) Patch Enhances Memory Safety
php中文网 Courses
php中文网 Courses
Oct 11, 2023 · Information Security

Google Advances Android Security by Migrating Native Code to Rust

Google reports that its ongoing migration of Android's native components from C++ to Rust has reduced memory‑related security bugs, with Rust now powering about 21% of new native code in Android 13 and being used to rewrite critical security modules such as the protected virtual machine firmware.

AndroidMemory SafetyRust
0 likes · 4 min read
Google Advances Android Security by Migrating Native Code to Rust
IT Services Circle
IT Services Circle
Feb 7, 2023 · Fundamentals

Bjarne Stroustrup Defends C++ Safety Against NSA’s Call for Memory‑Safe Languages

Creator of C++ Bjarne Stroustrup counters the NSA’s recommendation to replace C/C++ with memory‑safe languages, arguing that modern C++ has evolved with robust safety features, static analysis, and guidelines that can ensure type and resource safety without abandoning the language.

C++Memory SafetyProgramming Language Safety
0 likes · 5 min read
Bjarne Stroustrup Defends C++ Safety Against NSA’s Call for Memory‑Safe Languages
Tencent Cloud Developer
Tencent Cloud Developer
Sep 8, 2022 · Frontend Development

Understanding Rust: Memory Safety, Ownership, Borrowing, and Its Impact on Front‑End Development

Rust, a compiled, memory‑safe language that enforces ownership and borrowing at compile time, eliminates garbage‑collection overhead, enabling high‑performance front‑end tools like swc and Rome and efficient WebAssembly modules, though its strict rules present a steep learning curve for newcomers.

BorrowingFront-End DevelopmentMemory Safety
0 likes · 21 min read
Understanding Rust: Memory Safety, Ownership, Borrowing, and Its Impact on Front‑End Development
Laravel Tech Community
Laravel Tech Community
Aug 29, 2022 · Information Security

Memory Safety Vulnerability in Firefox (CVE-2022-38478) and Fix Recommendations

A memory‑safety vulnerability (CVE‑2022‑38478) affecting Firefox 103, Firefox ESR 102.1 and 91.12 can leak sensitive data and enable arbitrary code execution, and users should upgrade to Firefox 104 or the latest ESR releases to mitigate the issue.

CVE-2022-38478FirefoxMemory Safety
0 likes · 3 min read
Memory Safety Vulnerability in Firefox (CVE-2022-38478) and Fix Recommendations
High Availability Architecture
High Availability Architecture
Mar 18, 2022 · Fundamentals

A C Programmer's First Experience with Rust

The author, a veteran C/C++ developer, reflects on two months of using Rust, highlighting how Rust's compile‑time safety checks address common memory problems of C languages, the challenges of reproducing runtime bugs, and the trade‑off between longer compile times and more reliable software.

C++Memory SafetyRust
0 likes · 9 min read
A C Programmer's First Experience with Rust
ByteDance ADFE Team
ByteDance ADFE Team
Mar 16, 2022 · Fundamentals

Introduction to Rust and Learning Recommendations

This article introduces the Rust programming language, explains its design principles such as memory safety, ownership, and zero‑cost abstractions, compares it with C++ and JavaScript, and provides practical advice, code examples, and insights on when and how to start learning Rust.

Memory SafetyOwnershipRust
0 likes · 27 min read
Introduction to Rust and Learning Recommendations
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++.

Borrow CheckerC++Lifetimes
0 likes · 19 min read
From C++ to Rust: Error Handling and Lifetimes
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 26, 2021 · Information Security

Memory Tagging Extension (MTE): Overview, Principles, and Usage in Android and Linux Kernel

Memory Tagging Extension (MTE), introduced in ARM v8.5, tags memory with 4‑bit keys and checks them in hardware via synchronous or asynchronous modes, providing low‑overhead detection of use‑after‑free, overflow and underflow bugs in Android (since 12) and Linux kernels, complementing tools like ASan and KASAN despite a 16‑byte granularity limitation.

ARMAndroidLinux Kernel
0 likes · 10 min read
Memory Tagging Extension (MTE): Overview, Principles, and Usage in Android and Linux Kernel
Tencent Cloud Developer
Tencent Cloud Developer
Oct 14, 2021 · Fundamentals

C++ to Rust: Key Differences in Move Semantics, Option Type, and Iterator

The article compares C++ and Rust for developers switching languages, explaining how Rust enforces move semantics instead of copy defaults, uses the safe Option enum with exhaustive pattern matching instead of nullable pointers, and favors lazy, chainable iterators over index‑based loops for performance and safety.

C++IteratorMemory Safety
0 likes · 15 min read
C++ to Rust: Key Differences in Move Semantics, Option Type, and Iterator
High Availability Architecture
High Availability Architecture
Mar 4, 2020 · Fundamentals

Understanding Rust Ownership Rules: Clone, Move, Immutable and Mutable Borrow

This article explains Rust's ownership model, detailing how values are owned by variables, released when out of scope, and transferred or accessed through cloning, moving, immutable borrowing, and mutable borrowing, with code examples illustrating each rule and the compiler errors they prevent.

BorrowingMemory SafetyMove
0 likes · 9 min read
Understanding Rust Ownership Rules: Clone, Move, Immutable and Mutable Borrow
High Availability Architecture
High Availability Architecture
Mar 24, 2016 · Fundamentals

Why We Chose Rust for TiKV and Practical Rust Development Experience

This article explains why the PingCAP team selected Rust over Go, C++, and Java for the TiKV storage layer, introduces Rust's core concepts such as ownership, borrowing, lifetimes, and thread safety, and shares practical tips, tooling, and lessons learned from real‑world Rust development.

Memory SafetyRustSystems Programming
0 likes · 19 min read
Why We Chose Rust for TiKV and Practical Rust Development Experience