Using __weak to Break Retain Cycles in Objective-C ARC
Learn how to use __weak delegates and the weak-strong block pattern to eliminate retain cycles in Objective-C ARC while keeping APIs explicit about object lifetime.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use __weak delegates and the weak-strong block pattern to eliminate retain cycles in Objective-C ARC while keeping APIs explicit about object lifetime.
Learn how to configure Redis as a bounded cache using maxmemory, eviction policies, and verification steps. Avoid OOM errors, keep replicas in sync, and monitor fragmentation and evictions for reliable performance.
A diagnostic guide for resolving CL_MEM_OBJECT_ALLOCATION_FAILURE and local memory overflows in OpenCL, focusing on the gap between total VRAM and maximum allocatable buffer sizes.
PowerShell pipelines pass .NET objects, letting you filter, transform, and aggregate large log files without loading everything into memory. A concrete example shows how to count error lines efficiently, plus trade‑offs and best practices.
Stop wasting memory on G.subgraph().copy(). Learn how to use NetworkX read-only views to filter large graphs and reverse edges without duplicating data structures.
Learn how to diagnose and fix memory leaks and reference cycles in Nim using ARC and ORC. This guide covers --debug:memleak, ownership annotations, and breaking cycles with {.weak.}.
Nim's ORC memory management mode provides deterministic destruction for latency-sensitive CLI tools by using reference counting instead of tracing GC, but requires careful ownership design to avoid leaks.
Decide whether to load only HIMEM.SYS or combine it with EMM386.EXE to create Upper Memory Blocks, and see how to configure CONFIG.SYS and verify the result.
Nim's Optimized Reference Counting (ORC) delivers deterministic destruction without a garbage collector, making it suitable for embedded, real‑time, and WASM targets. This post walks through how ORC works, a cyclic data‑structure example, and the trade‑offs you must accept.