AAAbstract Algorithmsinabstractalgorithms.dev·5d ago · 13 min readSystem Design: Designing a Financial Ledger with Double-Entry ConstraintsTLDR: Designing a financial ledger requires strict double-entry compliance, high consistency, and complete auditability. Unlike traditional databases where records are updated in-place, a financial le00
AAAbstract Algorithmsinabstractalgorithms.dev·5d ago · 14 min readPagedAttention & KV-Cache Optimization: How vLLM Handles Large Scale InferenceTLDR: Large Language Model (LLM) serving is heavily bound by GPU memory capacity due to the Key-Value (KV) cache. Traditional serving frameworks allocate contiguous memory based on maximum sequence le00
AAAbstract Algorithmsinabstractalgorithms.dev·5d ago · 11 min readCPython Internals: Reference Counting, Cycle Detection, and Memory ProfilingTLDR: CPython manages memory using a two-tier system: Reference Counting (for immediate deallocation) and a Generational Cyclic Garbage Collector (to identify and collect isolated reference cycles). T00
AAAbstract Algorithmsinabstractalgorithms.dev·5d ago · 10 min readConcurrency Models: Actor Model vs. Communicating Sequential Processes (CSP)TLDR: Shared-memory multithreading using manual locks is notoriously difficult to scale and debug. To avoid race conditions and deadlocks, modern platforms use message-passing concurrency models. This00
AAAbstract Algorithmsinabstractalgorithms.dev·5d ago · 9 min readSpark 101: Installing, Configuring, and Running Your First PySpark App LocallyTLDR: Learning Apache Spark usually starts with understanding how to set up a local development environment. This guide outlines the differences between local and cluster execution modes, details how 00