Show HN:超低延迟 C++23 高频交易引擎与无锁环形缓冲区
📊 核心数据与事实(2026-11-13):
开发者发布了一套基于现代 C++23 的超低延迟高频交易执行架构,采用内核旁路、无锁环形缓冲区与 Solarflare OpenOnload,在 AMD EPYC 9004 或 Intel Sapphire Rapids 配 Solarflare X2522 网卡上目标 tick-to-trade 为 p50 ≈ 450ns。
• 原文实测切片:1.2.1 Architecture: isolated execution flow flowchart LR subgraph HK["Housekeeping cores 0-1 (unisolated)"] IRQ[IRQ handlers NIC MSI-X vectors] KS[kthreads: kswapd, RCU nocb, kcompactd, khugepaged] SSH[shell / monitoring / netstack / logging]…
• 原文实测切片:Fix: pad each index to its own line, or use alignas(std::hardware_destructive_interference_size) (64B x86, but 128B on EPYC for the shared L3 victim line).
• 原文实测切片:affinity silently degraded to the full core mask, and the thread migrated to core 6 — where it collided with the strategy thread and lost ~11% of orders to a ring write race under the re-introduced timeslicing.
💡 对独立开发者的启发:
1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2026-11-13(北京时间)
📰 信息源出处:Hacker News Show HN · snowdensay(github.com)
🔗 原文:https://github.com/grfdsasdvef/awesome-hft-cpp23-internals
📡 归档:https://billionare.me/items/qoc90dcxn96s2sjznixvvg4dt
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发