C++ 需要迎头赶上,而且要快
C++ 联盟主席、Boost.Beast 作者 Vinnie Falco 解释说,他的新 AI 提示词运行时 Runvil 用 Rust 而非 C++ 编写,内存安全与这一选择无关。他表示是日程逼他这么做:在标准工作、写书和编译器招聘之余用 C++ 交付这个项目在物理上不可能。
五十天内,这个 Rust 工作区达到 45 个 crate、21 万行代码和 3400 个测试,覆盖 Windows、macOS 和 Linux,包括统一 23 家云提供商的网关和基于 C99/C++ ABI 的插件系统。他把这种速度主要归功于 Cargo 中可组合的库:tokio、reqwest、axum、serde、rmcp、tauri 等各只需一行即可引入。相比之下,MCP 维护十个第一方 SDK 却没有 C++,OpenAI 和 Anthropic 的 SDK 名单同样缺少 C++,而星数最高的独立 C++ MCP 库只能内置 HTTP 和 JSON 头文件,规范版本落后两代。
他认为生态缺口比内存安全更关键。2024 年 ISO C++ 调查中 81.9% 的受访者把库依赖列为痛点,类 Cargo 的包管理流程是 2025 和 2026 年调查中最多的开放式请求。JetBrains 2025 年 C++ 现状报告显示只有 11% 使用 vcpkg,6% 使用 Conan。
关于 AI,他主张编码智能体会放大丰富的包生态,而不是弥补缺失的生态。他引用 SWE-bench Multilingual 结果:SWE-agent 在 Rust 上得分 58.1%,在 C/C++ 上为 28.6%。他还指出,在推理引擎中 C++ 大多被隔离在 C ABI 之后,而在其上的 AI 工具层中则基本缺席。
C++ Needs to Catch Up, and Fast
Vinnie Falco, president of The C++ Alliance and author of Boost.Beast, explains that he wrote his new AI prompt runtime Runvil in Rust rather than C++, and that memory safety had nothing to do with the choice. He says the calendar forced his hand: shipping the project alongside standards work, books, and compiler hires would have been physically impossible in C++.
Within fifty days the Rust workspace reached 45 crates, 210,000 lines, and 3,400 tests across Windows, macOS, and Linux, including a gateway unifying 23 cloud providers and a plugin system over a C99/C++ ABI. He attributes most of that pace to composable libraries from Cargo: tokio, reqwest, axum, serde, rmcp, tauri and others each dropped in as a single line. In contrast, MCP maintains ten first-party SDKs with no C++ among them, and OpenAI and Anthropic's SDK rosters also omit C++, while the most-starred standalone C++ MCP library vendors its HTTP and JSON headers and trails the spec by two generations.
He argues the ecosystem gap matters more than memory safety. The 2024 ISO C++ Survey named library dependencies the top pain point at 81.9%, and a Cargo-like package workflow was the top open-ended request in the 2025 and 2026 surveys. JetBrains' State of C++ 2025 found only 11% using vcpkg and 6% using Conan.
On AI, he claims coding agents amplify a rich package ecosystem rather than compensating for a missing one. He cites SWE-bench Multilingual results where SWE-agent scored 58.1% in Rust versus 28.6% in C/C++. He also notes C++ is largely walled off behind C ABIs in inference engines and absent from the AI tooling layer above them.
猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。