返回 X 名人动态

Guillermo Rauch:智能体优化代码也需要知道何时停止

中文全文 · AI 翻译

工程师群体将会(重新)发现:每个程序基本上都可以无止境地进行①加固(消除边界情况、收紧输入约束、处理错误)和②优化(性能分析、基准测试、重写)。

每个方向都有实实在在的成本:时间、注意力和机会。你完全可能去探索永远不会出现的输入,或优化根本没人使用的功能(“你没有用户”)。即使 token 无限,你也需要知道何时停止,以及接受哪些取舍。智能体无论如何都会乐此不疲地继续钻研。

对照原文

One thing the engineering community will (re)discover is that every program can be ① hardened (edge cases squashed, inputs tightened, errors handled) and ② optimized (profiled, benchmarked, rewritten) basically ad infinitum. There are real costs in every direction: time, attention, opportunity. You can literally explore input spaces that will never be hit or optimize performance of something that will never be used ("you have no users".) Even in an infinite token world, you need to know when to stop and what tradeoffs to accept. Agents will happily drill no matter what.

老杨AI实操

微信扫一扫,添加好友

老杨AI实操的微信好友二维码

手机可长按保存图片,再到微信中识别二维码

保存二维码