Everyone Should Know SIMD (Mitchell Hashimoto)
Source: https://mitchellh.com/writing/everyone-should-know-simd
Author: Mitchell Hashimoto
Date: 2026-07-22
Summary (Chinese)
用 Ghostty 里扫 codepoint 找 C0 控制字符的真实热路径,把 SIMD 收成固定五步:broadcast 常量 → 按向量宽循环 → 并行运算 → reduce → scalar tail。端到端约 5× 吞吐提升。论点:SIMD 可以简单到和 for 循环一样容易写,常见的“处理 N 个值”模式几乎总有同样的形状。
Summary (English)
Using Ghostty's real hot path scanning codepoints for C0 control characters, distills SIMD into five fixed steps: broadcast constants, loop one vector at a time, perform parallel operation, reduce result, handle scalar tail. ~5x throughput improvement end-to-end. Argues SIMD can be as easy to write as a for loop, with common patterns following the same shape.
One-liner
SIMD 可以简单到和 for 循环一样容易写
*Imported from Obsidian digest notes on 2026-08-01. Content grounded in fetched source metadata via opencli.*