我是 Tursom。这里记录软件工程中的实际问题、证据、实现过程与可以复用的结论。
AI-written distributed code keeps breaking on late writes, expired leases and rolling deploys, and more tests never seem to converge. Writing a TLA+ spec first, checking it exhaustively with TLC, having the AI implement it action by action and cross-checking with state-machine fuzzing finally made the bugs converge. Comes with an open-source example where every claim can be reproduced.
页面方向还不清楚时,与其让 AI 直接改正式代码,不如先做三个会丢掉的原型。几次下来,这个办法比上来就优化更稳。
在 Linux 服务器上安装并使用 rpcapd,将远程抓包结果交给 Wireshark 分析。