Understanding Automatic Reference Counting in Objective-C
In Objective-C, pointers manage memory by referencing addresses. A pointer variable stores an address, its value is that address, and the memory unit value is the data at that address. By default, pointers are strong, marked with the strong keyword. Weak pointers are declared using __weak, such as __weak Person *p;.
Automatic Reference Counting ...
Posted on Fri, 18 Sep 2026 16:10:35 +0000 by raymie
Understanding Objective-C Property Attributes and Memory Management
In Objective-C, the @property directive simplifies the declaration of accessor methods and instance variables. At compile time, the compiler automatically synthesizes an instance variable (prefixed with an underscore), a getter, and a setter for each property. This process is known as "auto-synthesis".
The synthesized methods access t ...
Posted on Thu, 10 Sep 2026 16:14:05 +0000 by ezekiel
Memory Management Fundamentals in Objective-C
Objective-C applications receive a memory warning from the system when memory usage exceeds approximately 20 MB. Upon receiving this warning, the application must release unnecessary memory by deallocating unused objects and variables to prevent crashes.
Memory management in Objective-C specifically handles objects that inherit from NSObject, n ...
Posted on Fri, 31 Jul 2026 16:12:25 +0000 by Crow
Rust Concurrency: Data Sharing Between Threads
Sharred Memory Between Threads in Rust
While Go promotes communication via channels, Rust provides shared memory concurrency as a core primitive. This approach, though potentially error-prone, offers performance benefits and is fundamental to systems programming.
Core Concepts
Rust's shared memory concurrency relies on two key components:
Arc& ...
Posted on Wed, 13 May 2026 11:47:39 +0000 by nextman
Understanding ARC Implementation in iOS
ARC Fundamentals
ARC (Automatic Reference Counting) is Apple's memory management system for Objective-C and Swift. It automatically handles object lifecycle management by injecting memory management code during compilation, reducing manual memory management complexity and errors.
Compile-Time Operations
1. Reference Counting Operations Injectio ...
Posted on Sat, 09 May 2026 21:04:08 +0000 by justoneguy