Skip to main content

259 docs tagged with "ring:adopt"

View all tags

Accessibility and SEO

Accessible names, roles and keyboard paths; contrast and motion preferences; and the crawlability signals that make a document indexable and understandable.

Address Space and Memory Model

Virtual address width, page granularity, alignment and the ordering contract that lets x86-64, ARM64 and RISC-V programs agree on what a shared memory write means.

Addressing Modes

How an effective address is computed from base, index, scale, displacement and PC, and why the same array access costs a different number of address calculations on x86-64, ARM64 and RISC-V.

Amdahl, Little and Roofline

Three bounds that answer different questions: how far parallel speedup can go, how much concurrency a latency needs, and whether compute or bandwidth is the ceiling.

AOP

C 没有切面语言:横切逻辑只能靠宏在预处理期展开、包装函数在调用点拦截、链接器的 --wrap 与 LD_PRELOAD 做符号替换、插桩在运行期记录;本页说明四种层次的顺序与失效条件。

AOP

C++ 没有切面语言;横切逻辑由 RAII guard、包装器/装饰器、CRTP mixin 与插桩承载。

AOP

Go 没有切面语言,横切逻辑只能写成显式包装:HTTP 中间件、高阶函数装饰器、go:generate 代码生成、运行时钩子或服务网格;本页说明链的注册顺序、短路语义与缺失请求 ID、context 丢失、重复注册、生成物漂移四类故障。

AOP

Java 的切面编程:Spring AOP 的运行期代理与 AspectJ 的字节码织入,切点与通知的语义,以及自调用、顺序与代理边界导致的失效。

AOP

JavaScript 没有 AspectJ 式的编译期织入:装饰器、Proxy、中间件、猴子补丁与运行时插桩各自负责一段横切逻辑,选型的核心是织入时机、执行顺序与不能破坏的不变量。

AOP

Python 的切面实践:装饰器在定义时如何把函数替换成包装,上下文管理器如何保证配对释放,元类与类装饰器如何介入类创建,以及 functools.wraps、叠加顺序与猴子补丁带来的可观测性与一致性代价。

AOP

Rust 没有运行期织入与注解代理,横切逻辑只能用泛型包装器、dyn 包装、宏和 tower 中间件显式组合,代价是单态化膨胀与必须自己维护调用顺序。

Architecture

Spring Boot auto-configuration, the bean lifecycle, dependency injection and externalized configuration.

Architecture

How a Vue application is assembled: component communication, router guards, Pinia stores, composables, and the server rendering pipeline that Nuxt adds on top.

ARP and VLAN

ARP and NDP neighbour resolution, proxy and gratuitous ARP, 802.1Q access and trunk ports, and where inter-VLAN routing happens.

Assembly and Toolchain

Preprocess, compile, assemble, link: the four stages, the directives and relocations each leaves behind, and how to read them back from ELF objects.

Async

C 没有 async/await:异步由非阻塞 fd、就绪通知与事件循环组合而成;本页区分异步与并发,给出九种 I/O 模型、epoll 边沿触发示例,以及 EAGAIN 与漏事件两类故障。

Async

C++ 的异步:future/promise/async、协程、executor 与 Asio,以及并发与并行的区别。

Async

Go 没有 async/await,异步由 goroutine、channel 与 context 组合而成;本页说明 errgroup、worker pool、取消与背压的机制,区分异步与并行,并给出 goroutine 泄漏、无缓冲死锁、取消不传播、循环变量捕获四类故障的排查路径。

Async

Java 的异步模型:CompletableFuture 的组合与陷阱、虚拟线程的调度与成本、响应式流的背压,以及执行器、超时与取消的边界。

Async

The event loop and its task queues, Promise states and combinators, async and await sequencing, timers and cancellation, and the worker and backpressure boundaries.

Async

Python 的异步模型:asyncio 事件循环如何调度协程与任务,TaskGroup 如何实现结构化并发,取消、超时与背压的语义边界,to_thread 如何隔离阻塞调用,以及 GIL 之下异步能解决与不能解决什么。

Async

async fn 被编译成惰性的 Future 状态机,执行器轮询、反应器唤醒、Pin 固定地址,取消由 drop 完成;理解这套分工才不会把阻塞调用塞进运行时。

Atomics and Fences

Read-modify-write instructions and ordering instructions: how C11 memory orders map onto lock prefixes, LDAXR/STLXR, LR/SC and the fences each ISA requires.

Atomics and Synchronization

How a read-modify-write grabs a cache line exclusively, why LL/SC fails spuriously, and when a queue lock or futex beats a spinning test-and-set.

Bandwidth, Latency and Loss

RTT, bandwidth, BDP, jitter, loss and tail latency: the arithmetic that explains why a fast link still feels slow.

Batch Processing

Spark: the shuffle, the DAG and the cost of a wide transformation.

Benchmarks, Simulation and PMU

Three kinds of evidence for a performance claim: standard workloads, cycle-level models, and the on-chip counters that explain where the time went.

BFF

GraphQL and REST backends for frontends: shaping one API per client without leaking it into the domain.

Bits, Bytes and Layout

Bit and byte conventions, byte order, alignment and padding, and the object layout rules that decide what a binary format looks like.

Branch Prediction

How direction and target predictors, BHT, BTB, TAGE, and the return-address stack keep the front end fed.

Branches and Jumps

How a program changes its control flow: flags versus compare-and-branch, PC-relative encodings, and the range limits of x86-64, AArch64 and RISC-V.

Cache Coherence

The single-writer invariant, MESI and MOESI state machines, and why snooping gives way to directories as core counts grow.

Cache Organization

The tag-index-offset split, direct-mapped versus set-associative lookup, line size and index translation, and the numbers that decide hit rate and hit time.

Career Development

Technology selection and the architect path: the scope, trade-offs and communication the next role expects.

Cascade and Specificity

How a declaration wins: origin and importance, cascade layers, the specificity triple, inheritance keywords, and custom properties that pass through the whole tree.

CDN

Edge delivery as a tiered cache: anycast ingress, origin shield, cache key, purge propagation, edge TLS and multi-CDN steering, plus the failures that look like origin bugs.

Certificate Operations

ACME, private CAs, rotation and inventory: issuing and replacing certificates without an outage.

CI/CD

GitHub Actions and Jenkins: pipeline stages, caching and the failure modes of a shared runner.

Code Quality

ESLint, Prettier and SonarQube: the rules that catch defects versus the rules that only argue about style.

Combinational and Sequential Logic

From gates to state: multiplexers, adders and decoders, then latches, flip-flops, setup and hold, and the clocking rules that make state reliable.

Compiler-ISA Contract

The two-way promise between a compiler and an instruction set: instruction semantics, ABI, alignment, memory model, undefined behaviour and target features.

Complexity Analysis

How much work an algorithm does as its input grows, and how that estimate picks the implementation before you measure.

Computability

Turing machines and the halting problem: what no program can decide, and why.

Concept

C 的抽象机器只有对象与函数:没有运行时、手工管理生命周期、以未定义行为换取零开销,用翻译单元与链接器拼装程序;本页给出这套模型的取舍与判断标准。

Concept

C++ 用值语义、RAII、模板与零成本抽象同时换取控制力与性能,代价是未定义行为、ABI 碎片化与较高的工程门槛。

Concept

Go 的设计取舍:少关键字、组合代替继承、显式错误、goroutine 与 GC,以及“简单但可预测”这个目标如何决定语言、运行时和工具链的边界。

Concept

Java 用静态名义类型、JVM 字节码、类加载、JIT 与 GC 组成一套运行时契约,换来跨平台与生态,代价是启动预热和内存占用。

Concept

JavaScript 的心智模型:单线程调用栈、动态类型、原型委托与宿主事件循环。本页只回答“是什么、边界在哪”,机制细节和用法交给兄弟页。

Concept

Python 的工程心智模型:动态强类型与鸭子类型如何决定接口,CPython 如何把源码编译成字节码、用引用计数加分代 GC 管理对象,GIL 如何限定并行,以及打包分发为何成为主要成本。

Concept

Rust 用所有权、借用检查与 trait 抽象取代垃圾回收,在编译期证明内存与线程安全,以更陡的学习曲线和更长的编译时间换取确定性的释放时机与接近 C 的运行性能。

Concurrency

C 的并发由 pthread、可选的 C11 threads 与 C11 原子三层组成;本页给出六种内存序的完整语义、同步原语对照、原子计数器示例,以及数据竞争、死锁与丢唤醒的故障模式。

Concurrency

C++ 的线程、jthread、mutex/condition_variable、原子与内存模型,以及数据竞争和生命周期故障。

Concurrency

GMP 调度与 M:N 复用、goroutine 成本与生命周期、channel 的阻塞与关闭语义、select 与超时、context 取消传播、Mutex/WaitGroup/atomic、happens-before 与数据竞争、worker pool、扇出扇入与泄漏排查、pprof 剖析。

Concurrency

Platform threads, virtual threads, coroutines and effect systems: how each JVM language expresses concurrency.

Concurrency

同一个线程上交错推进任务与真正并行是两件不同的事:事件循环的阶段与队列决定执行顺序,Worker、子进程、共享内存与背压决定能否把 CPU 工作搬出主线程。

Concurrency

The GIL, threads, processes and asyncio: which execution model fits which load, how cancellation propagates, and where blocking calls and missing backpressure break a service.

Congestion Control

cwnd, slow start, AIMD, CUBIC, BBR, ECN and bufferbloat: how a sender guesses a network it cannot see.

Cost and Technology Scaling

Die cost from area, yield and wafer price, the NRE that volume must amortize, and why Dennard scaling no longer funds the next node.

Data Pipelines

dbt and Airflow: transforming data in SQL and scheduling the DAG around it.

Datapath Building Blocks

The ALU, register file, shifter, multiplier and divider, their delay and area cost, and how they share one clocked path.

DDR, HBM and Persistent Memory

How the DRAM interface evolved from one 64-bit channel to DDR5 subchannels, stacked HBM, persistent DIMMs and CXL memory, and what each costs in latency and bandwidth.

DNS

The delegation chain, resolver roles, record types and TTL rules that decide why a name resolves or silently does not.

DNSSEC and DNS Operations

The DS/DNSKEY/RRSIG chain, why validation fails, and the TTL, registrar and migration sequencing that keeps a zone resolvable.

Docker

An image is a stack of layers, a container is one process; how to build, run and review one without leaking the toolchain into production.

Document Structure and Semantics

The document tree, the seven content models, the elements that carry meaning, global attributes and the metadata that decides encoding, viewport and language.

DOM and Events

The document object model as a programming surface: node types, query and mutation APIs, the capture and bubble flow, delegation, observers and shadow roots.

Domain-Driven Design

Strategic and tactical design: bounded contexts, aggregates and the model that survives a rewrite.

Dynamic Scheduling

How an out-of-order core uses scoreboards, reservation stations, and the wakeup-select loop to hide latency while preserving dataflow semantics.

Ecosystem: Dataframes

pandas and Polars: columnar memory, vectorized expressions, lazy plans and streaming, join and null semantics, and the point where a single machine stops being enough.

Ecosystem: Frameworks and Libraries

Qt、Boost、Abseil、Folly、fmt 与 range-v3 的取舍由许可证、ABI 承诺、构建成本、二进制体积和异常/RTTI 策略共同决定,本页按产品形态给出选型矩阵与故障对照。

Ecosystem: libc and POSIX

C 没有语言自带的运行时,只有 libc 这层事实环境:glibc、musl、bionic、newlib、uClibc-ng 与 Windows CRT 各自决定哪些接口可见、哪些 ABI 不能互换。

Ecosystem: Scripting Workflow

Turning a notebook into a parameterized and testable script: arguments and config, logging and exit codes, atomic writes, idempotent runs, validation and scheduling.

Ecosystem: Standard Library

C++ 标准库以十三个组件家族提供容器、算法与系统设施,其头文件形态、分配策略和 libstdc++/libc++/MSVC STL 的 ABI 差异决定了二进制能否互换。

Ecosystem: Standard Library

Node core modules as a surface: fs in three styles, Buffer, streams and backpressure, HTTP and net, worker threads, child processes, and the errno conventions that carry through.

Ecosystem: Third-Party Libraries

C 没有随语言附带的包管理器,选库等于同时选许可证、ABI 承诺、维护节奏与安全更新通道,本页用 OpenSSL、libuv、SQLite、zlib、curl、jansson 给出可验证的判据。

Encapsulation and MTU

Header bytes per layer, the 1500-byte budget, MSS derivation, fragmentation and PMTUD under tunnel overhead.

End-to-End Testing

Playwright and Cypress: driving a real browser, and the flakiness that comes with it.

Error

C 没有异常:错误走返回值、errno、出参、goto 清理与 setjmp/longjmp 五条通道;本页给出各通道的失效模式、errno 的五条规则,以及一个保留原始 errno 的清理示例。

Error

C++ 的错误通道:异常与栈展开、noexcept、错误码、std::expected 与 RAII 清理。

Error

error 接口、哨兵错误与自定义类型、%w 包装链、errors.Is/As/Join、panic 与 recover 的同 goroutine 边界、包设计与 internal/ 的导入约束、导入环、服务错误分类与对外错误码,以及导出标识符和弃用注释的兼容性规则、init 失败只能 panic 的处理。

Error

Java 的失败处理:受检与非受检异常的契约,try-with-resources 与抑制异常,异常链的因果关系,以及领域错误在边界上的转换。

Error

The Error family, throw and try semantics with cause chains, ESM static linking and live bindings, CJS interop, and the circular-dependency and dual-package failures that follow.

Error

Python 的错误处理:异常对象如何沿栈展开并匹配 handler,try/except/else/finally 与 with 的执行顺序,raise from 如何建立根因链,3.11 的异常组如何聚合并发失败,以及捕获、翻译与清理的边界。

Error

Rust 把失败编码进类型:Result 承载可恢复错误、Option 表示缺失、panic 留给不变量破坏,? 与 From 让错误沿调用链携带上下文向上传播。

Ethernet and Switching

Ethernet framing, MAC learning, flooding, STP, link aggregation and duplex: how a switch moves frames inside one broadcast domain.

Exceptions and Interrupts

Synchronous faults and asynchronous interrupts as one control-transfer mechanism: vector tables, privilege switch and the cost of handling an event.

Failure Signatures

A symptom catalogue that maps each network failure to its layer, decisive evidence and first action.

Fault Models, ECC and Redundancy

How faults become errors and errors become failures, what SECDED and chipkill can and cannot correct, and how availability follows from MTBF and MTTR.

Feature: Interop

Mixing Java, Kotlin and Scala in one build: the bytecode contract, the guarantees that vanish across the boundary, and how to choose.

Feature: Move Semantics

C++ 的移动语义:值类别、移动构造/赋值、转发引用、完美转发、RVO/NRVO 与 std::move 的误用。

Feature: Preprocessor

C 预处理器在词法层做文本替换:17 条指令、对象式与函数式宏、字符串化与记号粘贴、include 搜索顺序与条件编译;本页用 X-macro 展示单一数据源,并列出双求值与粘贴失败等陷阱。

Feature: RAII

RAII 用对象生命周期管理资源:规则 0/5、智能指针、异常安全与 scope guard。

Feature: Templates

C++ 模板:函数/类模板、全特化与偏特化、变参模板、SFINAE、concepts 与编译期/代码体积成本。

File Systems

Ext4, ZFS and journaling: how a file survives a crash and what fsync actually promises.

Floating-Point

IEEE 754 fields, rounding, special values and the non-associativity that breaks naive comparisons, reductions and parallelism.

Forms and Inputs

Native data collection: the twenty-two input types, constraint validation, labels and grouping, the submit encoding path, and FormData at the boundary.

Functions

C 的函数是带签名的符号加一次调用:原型决定参数提升,链接属性决定符号可见性,函数指针承载回调与分派;本页给出函数形态全集、qsort 比较器的写法与八类调用故障。

Functions

C++ 的函数:重载决议、默认参数、lambda 捕获、constexpr/consteval、名字查找与 ADL。

Functions

函数作为一等值、多返回值与命名结果、变参打包、闭包捕获与 Go 1.22 的每轮循环变量、defer 的求值顺序与 panic 展开、值接收者复制与指针接收者共享、方法集与接口满足、结构体嵌入与方法提升、方法值绑定接收者的时机、init 的初始化顺序与常见风险、调用求值顺序与 nil 函数调用。

Functions

Java 把行为写成方法、lambda、方法引用与函数接口,本页拆解重载解析、变长参数、捕获规则与 invokedynamic 在运行时的真实代价。

Functions

Functions as first-class values: declaration forms, parameters, lexical scope, hoisting and the temporal dead zone, closures, and the four rules that fix this at call time.

Functions

Argument binding, closures and decorators, generators, context managers, the exception contract, and the gradual type system that documents all of them.

Functions

Rust 把函数与闭包当作可传递的值:fn 项、泛型约束、捕获方式与 Fn 系列 trait 共同决定调用点是内联、单态化还是间接调用。

Global Traffic Management

Cross-region steering with GeoDNS, latency-based routing, GSLB and anycast, where failover is bounded by DNS TTL and active-active capacity assumptions break first.

Graph Algorithms

Shortest paths and minimum spanning trees: which algorithm fits which graph, and where the complexity moves.

Graph Structures

Adjacency matrices, adjacency lists, topological sort and union-find: how a graph is stored decides which algorithm is cheap.

Hardware (Legacy)

Superseded by the Hardware domain; kept while its content moves into the new pages.

Hardwired and Microcoded Control

Two ways to turn opcodes into control signals: direct combinational decode and a microprogram in a control store, with the latency, area and patchability each buys.

HDL, EDA and FPGA

The RTL-to-bitstream flow, what synthesis infers, and the timing and resource numbers a field-programmable device really delivers.

Health Checks and Draining

Probe design and the exit path: liveness versus readiness, active and passive detection thresholds, draining in-flight requests, and failures that remove every backend at once.

Heterogeneous Cores

How performance and efficiency cores share one ISA and one coherent domain, what differs inside them, and why the scheduler rather than the silicon decides whether the mix pays off.

Hierarchy and AMAT

The capacity-latency ladder from registers to disk, the AMAT identity that prices it, and how locality turns a hundred-nanosecond miss into a one-nanosecond average.

HTTP

How HTTP semantics stay stable while framing, multiplexing and the wire move from HTTP/1.1 to h2 and h3.

HTTP Caching

Freshness, validators and the shared-versus-private split: how Cache-Control directives, Vary and conditional requests decide reuse, and where invalidation fails.

I/O Models

epoll, io_uring and zero-copy: the readiness and completion models behind a network server.

ICMP and NAT

Read ICMP error and probe traffic, diagnose PMTUD black holes, and reason about NAT mappings, conntrack timeouts and hairpin paths.

Instruction Formats and Encoding

How opcodes, register numbers and immediates share a fixed word: the six RISC-V formats, x86-64 variable-length encoding, and the decode and code-size limits each choice buys.

Integer and Fixed-Point

Two’s complement ranges, the three overflow semantics, and the Q-format arithmetic that replaces floats in DSP and embedded code.

Integration Testing

Testcontainers and API mocks: testing the seam between your code and a real dependency.

Interleaving and Bandwidth

How physical addresses are striped across channels, banks and ranks, why stride and granularity decide the achieved bandwidth, and how to measure the gap to the theoretical peak.

Interop: C ABI and Bindings

C++ 与外部世界的边界以 C ABI 为稳定层,pybind11、JNI 与 N-API 各自负责类型、所有权与异常的翻译,跨边界的字符串、容器与回调生命周期决定集成是否可靠。

Interop: C ABI and Foreign Calls

C ABI 是各语言共同的最低边界:C++ 的 C 链接声明、cgo、ctypes/cffi、JNI、N-API 与 dlopen 各自把同一份调用约定翻译成本语言的对象,本页给出结构布局、所有权、错误映射与回调生命周期的判据。

IP Addressing and Subnets

Read any CIDR, derive subnet boundaries, and allocate non-overlapping IPv4 and IPv6 prefixes for sites, VLANs and containers.

ISA and Abstraction

The ISA as the binary contract between software and silicon: what it fixes, what it leaves to the microarchitecture, and how compatibility survives across generations.

ISA Classes

RISC and CISC as consequences of two choices, operand location and encoding width, with the real instruction counts, code sizes and decode limits of x86-64, ARM64 and RISC-V.

ISA Selection

Choosing an instruction set on ecosystem, energy, extensions and supply rather than on clock speed: x86-64, AArch64, RISC-V and the migration cost.

Kubernetes

The control plane and the pod lifecycle: how a declared state becomes running containers.

Layered Architecture

MVC, clean architecture and hexagonal architecture: the dependency rule and where each boundary pays off.

Layout

Box model and box sizing, formatting contexts, positioning and stacking, then flex for one axis and grid for two, with the auto-sizing rules that explain the odd results.

Lifecycle

Elements, components and fibers: the render and commit phases, how keys decide identity, where effects run, and what Strict Mode, Suspense and server components change about all of it.

Linear Structures

Arrays, linked lists, stacks, queues and hash tables: the storage trade-offs behind every collection API.

Load Balancing

Connection and request distribution: what L4 and L7 can see, how NAT, DSR and PROXY protocol move traffic, where TLS terminates, and why affinity blocks scale-out.

Loop Transformations

How unrolling, software pipelining, tiling, and interchange expose ILP and locality, and when dependence analysis forbids them.

Memory Consistency

What SC, TSO and the weak models allow, how store buffers make write-read reordering the default, and how acquire and release pin it back down.

Memory Management

Virtual memory, paging and segmentation: the address space, the page table and the cost of a miss.

Messaging & Events

Kafka, RabbitMQ and Pulsar: the log, the queue and the delivery guarantees between them.

Metrics and CPI

The three-factor performance equation, how CPI decomposes into stalls, and which metric answers which question.

Microservices

Service discovery, configuration and API gateways: the operational cost of splitting a system.

Middleware

The Spring Security filter chain, Actuator and Micrometer, startup, probes and graceful shutdown.

Misses, Prefetch and Blocking

The three Cs plus coherence, non-blocking caches and MSHRs, hardware and software prefetch, and cache blocking as the software answer to a working set that will not fit.

Multi-Cycle Processor

Splitting one instruction across several clock cycles: intermediate registers, a step sequencer, variable CPI, and the area-for-time trade.

Multicore Organization

How several cores share LLC slices, a ring or mesh fabric, memory controllers and I/O inside one socket, and how that topology sets the latency and bandwidth a parallel program actually sees.

Multilevel and Inclusion

Private L1 and L2 behind a shared L3: what inclusive, exclusive and non-inclusive caches cost in effective capacity, snoop filtering and back-invalidation traffic.

Navigation and Network

How an address becomes a document: navigation steps, the History API, back-forward cache, Fetch options, CORS preflight, and the HTTP cache headers that decide reuse.

Network Authentication

Who proves what at each layer: 802.1X, IPsec, TLS and the certificate chain that anchors them.

Network Metrics

Which network signals to instrument, how to aggregate them honestly, and how to turn RTT, retransmits and handshakes into SLOs that page early.

NoSQL Databases

Redis, MongoDB and Neo4j: the data models that justify giving up a relational schema.

NUMA

Nodes, distance matrices and first-touch allocation: why a remote page costs 1.5 to 2 times a local one and how to bind CPU and memory together.

OOP

C 没有类:封装靠不透明 struct,动态分派靠函数指针表,复用靠组合与首成员嵌入;本页给出抽象构件全集、一个可运行的 shape 分派示例,以及相对继承失去的能力。

OOP

C++ 的类、访问控制、继承形态、虚分派、多继承指针调整、对象布局与切片风险。

OOP

接口值为什么不是 nil、隐式满足与方法集规则、typed nil 陷阱、类型断言与类型 switch、消费方小接口,以及泛型的类型参数、comparable 与 ~ 近似项、联合约束、实例化与类型推断、接口与泛型的选型边界和装箱成本、约束接口不能作变量类型、类型参数的编译期检查。

OOP

Java 的面向对象:类、接口、记录、枚举与密封层级的取舍,继承与组合的边界,以及分派、equals/hashCode 与脆弱基类的约束。

OOP

Objects as property bags: descriptors, getters, the prototype chain, class syntax, private fields, Symbol keys, and the Proxy and Reflect pair that intercepts every operation.

OOP

Python 的面向对象:类如何由类体执行与元类共同创建,属性查找为何先描述符后实例字典,C3 线性化如何决定 MRO 与 super 的走向,以及 dataclass、Protocol、ABC 与组合在动态分派下的分工与边界。

OSI and TCP/IP

The seven-layer and four-layer models as a diagnostic tool: PDU names, encapsulation order and the layer that owns a failure.

Packet Capture

Choosing a capture point, writing narrow filters, bounding file size, and reading a handshake or RST without leaking credentials.

Page Faults and Working Set

Fault classes and their costs, the kernel path that fills a missing PTE, and why the working set rather than RSS decides whether memory is enough.

Paging and Page Tables

The virtual-address split, the four- or five-level radix tree that maps it, and the PTE bits that carry protection, presence and dirty state.

Path and Latency

Splitting RTT hop by hop, separating queueing from loss, spotting asymmetry, and probing the path MTU.

Pipeline Basics

Overlapping instruction stages: the five-stage schedule, the clock period set by the slowest stage, and the speedup formula that governs every later page.

Pipeline Hazards and Exceptions

Structural, data and control hazards, the forwarding and stall rules that resolve them, and the in-order commit a precise exception requires.

Power, Energy and Thermal

Dynamic and leakage power, the RAPL counters that measure them, and the thermal path that decides when a chip must slow down.

Primitives

AES, RSA, hashes, MACs and KDFs: the primitives and the parameters that keep them sound.

Privilege and Virtualization

Privilege levels as a capability label and virtualization as one more layer under them: rings, exception levels, sensitive instructions and stage-2 translation.

Procedure Calls and ABI

The binary contract behind a call: argument registers, callee-saved state, stack alignment and frame layout in System V AMD64, AAPCS64 and RISC-V.

Processes & Threads

Scheduling and context switching: what the OS shares between execution units and what it does not.

QUIC

Streams, TLS 1.3 integration, 0-RTT, connection IDs and loss recovery: reliability moved into user space over UDP.

Realtime WebSocket and SSE

WebSocket, SSE and long polling: upgrade, frames, heartbeats, reconnect, backpressure and the proxy timeouts that break them.

Register Renaming and ROB

How register renaming removes false dependencies and the reorder buffer restores precise state at commit.

Registers and Operands

Architectural registers across x86-64, ARM64 and RISC-V, the four operand kinds an instruction can encode, and why constant materialisation and calling conventions follow from register width.

Relational Databases

PostgreSQL and MySQL: the relational model, the planner and the operational differences between them.

Rendering Pipeline

From bytes to pixels: parsing, the render tree, layout, paint and compositing, which properties trigger which stage, and the long task and layout thrash that break the frame budget.

Replacement and Write Policy

How a set chooses the line to evict and how a write reaches the next level: LRU and its approximations, write-back versus write-through, and the traffic each choice costs.

Responsive and Motion

Viewport units, media and container queries, fluid type with clamp, responsive images, and the transition and animation rules that keep motion cheap and optional.

Routing

The Spring MVC request path, validation and error mapping, then transactions, JPA and the connection pool behind them.

Routing and BGP

Read a routing table, choose between static, OSPF and BGP, and debug prefix propagation and route selection across autonomous systems.

RPC and gRPC

When to model a call as a remote procedure, and how protobuf contracts, deadlines, trailers and streaming stay safe under retry.

Runtime

Go 运行时如何把 goroutine 调度到线程、如何分配内存、如何并发标记回收:GMP、work stealing、mcache/mcentral/mheap、三色标记、写屏障、pacer 与 GOGC/GOMEMLIMIT 的取舍。

Runtime

Node.js on V8 and libuv: the event loop, the thread pool and the boundary between JavaScript and the OS.

Runtime: Class Loading

The class file, the loading and linking phases, class loader hierarchy, reflection and the leaks a class loader can hold.

Runtime: Exception Unwinding

C++ 异常运行时:零成本 EH 的 unwind 表与 LSDA、两阶段展开、noexcept 与异常 ABI,以及 -fno-exceptions 和 std::terminate 的取舍。

Runtime: JIT and Threads

Tiered compilation, inlining and deoptimization, safepoints, the Java Memory Model and how virtual threads change the cost of blocking.

Runtime: Linking and Loading

C 程序从翻译单元到进程要经过符号解析、重定位、静态或动态链接与装载,本页给出这条链上每一步的判据、命令与故障定位顺序。

Runtime: Memory and GC

Runtime data areas, allocation, the garbage collectors compared, pause budgets and the OOM types that follow.

Runtime: Memory Layout and Allocation

C 进程的地址空间由代码、数据、堆、栈与 TLS 组成,本页给出各段的边界、malloc 的实现与阈值、碎片和泄漏的判据以及分配器选型。

Runtime: Memory Layout and Allocation

C++ 运行期内存:operator new/delete 的完整重载族、sized 与 aligned 分配、allocator 与 placement new、存储期与生命周期、std::launder 与 sanitizer 信号。

Runtime: Object Model and ABI

C 的 ABI 把对象布局、对齐、寄存器分配、结构体传递与变参协议固定成二进制契约,本页给出 SysV AMD64 与 Windows x64 的可验证规则和跨边界选择。

Runtime: Object Model and ABI

C++ 对象模型与 ABI:Itanium 与 MSVC 的名字修饰、vtable/vptr 与 RTTI 布局、多继承与虚继承的指针调整、ABI 稳定性以及 C 语言链接边界。

Simultaneous Multithreading

How one physical core interleaves several thread contexts to fill idle issue slots, which state is replicated, which resources stay shared, and why SMT buys throughput instead of latency.

Single-Cycle Processor

One instruction per clock cycle: the shared combinational path, the load-limited clock period, and why a CPI of one still loses on frequency.

Sorting & Searching

Quicksort, merge sort and binary search: the comparison model, stability, and when the input shape changes the right answer.

Speculative Execution

How a core executes past unresolved branches and memory dependencies without exposing speculative state, and why Spectre broke that contract.

SRAM and DRAM

The two cells behind every level of the hierarchy: a 6T latch that holds a bit and a 1T1C capacitor that leaks one, with the density, timing and refresh contracts each imposes.

State and Data

Where each kind of state belongs: local, lifted, context, external store, URL and server cache; how subscriptions stay tear-free; and how races, invalidation and optimistic updates decide correctness.

State and Data

Proxy-based dependency tracking: ref and reactive, computed caching, watch flush timing, batched updates in a microtask, and what the template compiler does before render.

Storage

Cookies, local and session storage, IndexedDB and the cache API: scope, lifetime, quota, eviction, and the one decision that matters most, where a session token lives.

Superscalar

Issue width, parallel pipelines and the dependency limits that turn a four-wide machine into an IPC of two or three.

Syntax

C 的语法面:44 个关键字的完整分组、字面量与语句形式、声明与定义的区别、运算符优先级与求值顺序,以及 fallthrough、赋值误写、符号比较这些语法层故障。

Syntax

C++ 的声明语法、初始化形式、引用与 cv、auto/decltype、range-for、结构化绑定与十种标准属性。

Syntax

Go 的语法面:25 个关键字、预声明标识符、字面量与运算符、语句形式,以及自动分号插入和版本边界带来的陷阱。

Syntax

Java 的语法面:50 个关键字、字面量与语句骨架,以及 record、sealed、模式匹配和文本块在 8/11/17/21 上的版本边界。

Syntax

The eight runtime types, the conversion and equality algorithms that connect them, numeric and string precision, and the expression and statement forms that produce them.

Syntax

Python 的语法面:35 个关键字如何划出语句边界,缩进为何是语法而不是风格,推导式、装饰器、海象运算符与 match 各自的求值规则,以及 3.8 / 3.10 / 3.11 / 3.12 的版本门槛。

Syntax

Rust 的语法把声明、模式解构与类型约束写在同一套表达式规则里,用 match 的穷尽性、? 的短路传播和生命周期标注把控制流与借用范围显式化。

TCP

Handshake, the eleven-state machine, byte sequencing, retransmission, flow control and the TIME_WAIT tail of a close.

TLB

How a small translation cache turns a four-level walk into one lookup, why its reach matters more than its hit rate, and what a shootdown really costs.

TLS

TLS 1.3 handshake, record layer, resumption and 0-RTT: the session a client and server agree on.

Toolchain

Vite, Webpack, pnpm and Vitest: how source becomes a bundle, a dependency tree and a test result.

Toolchain: CMake

CMake 用 target 承载编译与链接属性,用生成器产出 Ninja 或 Visual Studio 工程,用 install/export 把使用要求交给下游;本页说明属性如何传播、预设如何固定,以及链接期故障如何定位。

Toolchain: Compiler and Build Model

C 编译器驱动把每个 .c 走完预处理、编译、汇编、链接四段;本页给出四段的命令与产物、头文件搜索与 -std/-O/-g/警告/严格别名/可复现/交叉编译的取舍,并按阶段定位典型故障。

Toolchain: Compilers and Standards

gcc、clang、msvc 把同一份源码翻译成互不兼容的二进制:`-std` 决定语言与库特性,ABI 开关决定两个目标文件能否链接,本页按这两条线组织编译器的选择与排障。

Toolchain: Declarations and Config

Where types come from: source, declaration files and inference; how the compiler resolves modules; how tsconfig and project references organise a build; and the two decorator systems.

Toolchain: Dependencies

C++ 没有中央包仓库,依赖由 vcpkg、Conan、CPM 或手工 vendoring 各自解决;本页说明包的真实身份为何是版本加 ABI 元组,以及二进制缓存、许可证与供应链检查如何落地。

Toolchain: Make and CMake

Make 用规则与时间戳做增量构建,CMake 用 target 与属性描述依赖再生成 Ninja/Make 工程;本页给出两者的完整机制、同一项目的最小双实现、生成器与 preset 选择,以及依赖文件与 install/export 的故障定位。

Toolchain: Modules and Packaging

The import system, the src layout, pyproject build backends, wheels and sdists, and the environment and lock tools that make a resolution reproducible.

Toolchain: Packaging

C 的打包决定静态库还是共享库、soname 与符号可见性如何界定 ABI、pkg-config 如何向消费者传播头文件与链接参数,以及 vendoring、发行版与许可证的取舍;本页给出可复制的构建、安装与消费追踪。

Toolchain: Test and Debug

C 的测试与调试由断言、Unity/CMocka、五种 sanitizer、gdb/lldb、valgrind、perf/strace、gcov/llvm-cov 与 libFuzzer/AFL++ 组成;本页给出各自的插桩方式、按项目类型的选型矩阵,以及“测试通过但 ASan 报错”这类故障的定位顺序。

Toolchain: Test and Debug

测试框架提供输入,sanitizer 提供正确性判据,调试器与 perf 观测真实二进制;本页说明 GoogleTest、Catch2、doctest、ASan/UBSan/TSan/LSan、gdb/lldb、覆盖率与 fuzzing 各自回答什么问题。

Toolchain: Testing

JUnit 5 architecture, the extension model, test doubles, Testcontainers and the surefire and failsafe split.

Trees & Heaps

Binary trees, red-black trees, B-trees, B+ trees and heaps: the balance and fan-out choices behind ordered data.

Troubleshooting Method

A layer-by-layer decision tree that turns refused, timeout, reset and slow into falsifiable hypotheses with the cheapest evidence.

Tunnels and VPN

Choose an encapsulation and key exchange, budget the MTU cost, and tell a handshake failure apart from a routing or policy failure.

Type

C 的类型是对象表示、对齐与合法操作的组合:sizeof 与 offsetof 可算出布局,整数转换按秩与符号进行,数组在表达式里退化为指针,union 与位域则把可移植性押在实现上。

Type

C++ 的静态类型系统:引用、cv 限定、auto/decltype 推导、转换序列、type traits 与类型类别。

Type

Go 的值模型:基本类型与零值、显式转换和类型身份、常量与 iota 的求值、string/byte/rune 的 UTF-8 边界、slice 头的 len/cap、append 扩容与别名、map 的引用语义、struct 对齐填充、指针复制语义、可比较规则,以及逃逸分析如何决定栈或堆。

Type

Nominal typing, generics and erasure, null safety and algebraic data types across Java, Kotlin and Scala.

Type

Arrays, typed arrays, Map, Set and the weak variants, the iterator and generator protocols that unify them, and the traversal forms whose differences decide correctness.

Type

How CPython compiles and executes a module, how names bind to objects, how reference counting and the cyclic GC decide a lifetime, and how protocols decide identity, equality and attribute access.

Types: Generics and Operators

Type parameters and constraints, keyof and indexed access, conditional and mapped types with infer and key remapping, template literal types, and the twenty-two built-in utility types.

Types: Narrowing

Structural typing, the assignability rules behind it, the three escape types, and the eight narrowing forms that turn a runtime check into a static guarantee.

UDP

Datagram semantics, the eight-byte header, checksum coverage and the amplification risk of a connectionless protocol.

Uncore Organization

What sits around the cores inside a socket: LLC slices, the ring or mesh, home agents, memory controllers, the I/O complex and the power unit that binds their clocks.

Unit Testing

What a unit test isolates, the assertion libraries that express it, and where Vitest/Jest fits.

Version Control

The Git object model, branching and the GitHub/GitLab workflows built on top of it.

Virtualization Support

Root and non-root CPU modes, two-dimensional paging with EPT or NPT, and the exit and nested-walk costs that set a guest apart from bare metal.

VLIW and Static ILP

How VLIW and EPIC bundles move scheduling into the compiler, and what that trades away in compatibility and code size.

Web Security

OWASP Top 10, XSS, CSRF and WAF: the browser threat model and the controls that reduce it.

Wireless and Wi-Fi

802.11 framing, CSMA/CA, channels and bands, roaming, WPA2/WPA3 and interference: why wireless throughput is a shared-medium budget.