arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.13763cs.SE
收藏

编程语言对你的AI编码队友还重要吗?来自国际象棋引擎的大规模证据

Do programming languages still matter to your AI coding agent teammate? Evidence at scale from chess engines

Univ Rennes, IRISA, CNRS, Inria, IUF, France(雷恩大学,IRISA,CNRS,Inria,IUF)

Mathieu Acher, Jean-Marc Jézéquel

AI总结:

通过让前沿AI代理用17种编程语言开发国际象棋引擎,发现AI能生成任何语言的可用系统,但语言选择仍影响性能、成本和功能,主流编译语言才能达到强棋力。

摘要:

前沿编码代理现在承诺端到端地编写完整软件系统。随之产生两个实证问题:AI编码队友能否用任何目标语言编程,包括那些没有可比先前开源工件(artefact)的语言?如果是,语言选择是否仍然塑造工件,以及在哪些维度上?我们通过一个围绕国际象棋引擎的多语言案例研究来探讨这两个问题:非平凡的多组件系统,它接受一系列语言无关的预言(oracle)层次结构,从精确的走法生成正确性到强度等级(Elo),从Rust到Brainfuck均可观察。我们在能力级别上提示了两个前沿代理(Claude Code和Codex),没有提供国际象棋知识或实现指导,并遵循有记录的干预和停止策略。这些代理生成了34个国际象棋引擎,涵盖17种主要编程语言,从主流到专业、领域特定、遗留和深奥的目标。我们结合了每个引擎的特征分析、独立的Elo评估、会话轨迹以及代码和转录的定性分析。前沿编码代理是真正的多语言者:我们尝试的每种语言都至少产生了一个功能丰富的可用引擎,其中几个没有可比范围的先前开源对应物(例如LaTeX),并且代码是从头合成而非复制。然而语言选择仍然重要:只有主流编译语言才能达到强大的棋力,成本和工程努力随着语言变得更为奇特而急剧增加,并且功能选择在不同语言家族间有所变化。代理会未经提示地验证自己的工作,但它们的强度自我估计存在偏差,并且少数引擎通过调用国际象棋库作弊。编程语言不再是AI队友能否构建可用系统的问题,而是关乎性能、成本、构建什么以及需要多少人工监督验证的问题。

英文摘要:

Frontier coding agents now promise end-to-end authorship of complete software systems. Two empirical questions follow: can AI coding-agent teammates program in any target language, including ones with no comparable prior open-source artefact? If so, does language choice still shape the artefact, and along which dimensions? We study both through a polyglot case study built around chess engines: non-trivial multi-component systems that admit a hierarchy of language-agnostic oracles, from exact move-generation correctness to a strength scale (Elo), observable from Rust to Brainfuck. We prompted two frontier agents (Claude Code and Codex) at the capability level, without chess knowledge or implementation guidance, under a documented intervention and stopping policy. The agents produced 34 chess engines spanning 17 primary programming languages, from mainstream to specialised, domain-specific, legacy, and esoteric targets. We combine per-engine feature analysis, independent Elo assessment, and session trajectories with qualitative analysis of code and transcripts. Frontier coding agents are genuinely polyglot: every language we tried produced at least one feature-rich working engine, several with no prior open-source counterpart of comparable scope (e.g., LaTeX), and the code is synthesised from scratch rather than copied. Yet language choice still matters: strong playing strength is only reachable in mainstream compiled languages, cost and engineering effort grow sharply as the language becomes more exotic, and feature choices shift across language families. Agents validate their own work unprompted, but their strength self-estimates are biased and a few engines cheated by calling a chess library. Programming language is no longer about whether AI teammates can build a working system, but about performance, cost, what gets built, and how much human supervision validation still needs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑