跳转至

Implementation Skills

Implementation Skills 关注组件内部怎么实现。

在本项目里,它主要包括:

  1. Modern C++ for systems
  2. C++ performance
  3. data structures for systems
  4. algorithms with predictable latency
  5. memory layout and ownership
  6. concurrency and synchronization

它不是 Infrastructure 本身,而是使用 Infrastructure 和 Runtime API 的能力。

Infrastructure 提供能力
Platform / Runtime API 暴露能力
Implementation Skills 使用能力实现组件

当前内容

C++ Systems Performance

这一部分关注 C++ 如何影响低延迟系统:

  1. atomics 与 memory order
  2. cache 与 false sharing
  3. allocators
  4. object lifetime
  5. STL 性能陷阱

Data Structures for Systems

这一部分后续扩展,关注系统组件里常用的数据结构:

  1. array / vector
  2. ring buffer
  3. hash table
  4. heap / priority queue
  5. tree / ordered index
  6. bitmap
  7. freelist / object pool

学习目标

你需要能回答:

  1. 这个组件内部状态应该怎么表示?
  2. 热路径是否分配内存?
  3. 数据结构是否 cache-friendly?
  4. 算法复杂度是否稳定?
  5. 并发模型是否清楚?
  6. 生命周期和所有权是否可证明?