编译器 高 作者声明

Serc

实验性的 CPython 字节码编译器,用 Rust 写。README 说所有代码改动都是 Codex 里的 GPT 写的。在大量真实代码上,输出和 CPython 逐字节一致。

Serc 把 Python 源码编译成 .pyc,支持 CPython 3.12 到 3.15、优化级别 0 到 2。README 说在 Django、Airflow、Transformers 等代码上,输出和 CPython 逐字节一致,整项目编译比 compileall 快 3 到 4 倍左右。可以从 crates.io 装 serc-cli。README 也提醒,有些情况下它还可能生成错误的字节码。

人工参与

没写明. README 说 README 本身经过人工编辑,其余都是 Codex 里的 GPT 写的。人具体怎么指导,没有写。

证据

  • 作者 README
    This README is human-edited, but all code changes, PR summaries, and additional documentation were authored entirely by GPT in Codex.
  • 基准测试
    Serc produces byte-for-byte identical output (as compared to CPython) on an extensive corpus of real-world Python code

备注

README 只写了 “GPT”,具体模型版本不知道。近期 commit 里没有 agent 的 trailer。