
transcript
show notes
Simon Willison 只用一般 Claude 聊天視窗比較 C 與 Rust 寫的 SQLite 擴充。第一輪 Rust 版較快,第二個提示要求打敗 Rust 後,補上約 30 行快速路徑的 C 版約快一倍,並通過 800 萬次隨機測試的逐位元對照。
⭐ 文章深度讀:Simon Willison 多追問 AI 一句!C 語言反過來跑贏 Rust
→ https://heymaibao.com/simon-willison-follow-up-c-beats-rust-e6c4fa/
⚡ 章節重點
AI 的第一個答案 00:00
散步時冒出的實驗 00:24
第一輪的成績單 01:15
追問一句後的翻盤 02:11
翻盤後的驗證與取捨 03:00
三步問法與最後一眼 04:09
📝 懶人包
∙ 第一個提示:讓 Claude 比較 C 與 Rust 寫的 SQLite 擴充。
∙ 第一輪 C 版只有 14 KB,速度卻是 Rust 版比較快。
∙ 追問打敗 Rust 後,優化的 C 版約是 Rust 版兩倍快。
∙ 我的觀點:AI 第一次給的比較只是起跑線,多追一句,勝負可能翻過來。
📚 參考資料
Research: parse_number() as a SQLite extension: C vs Rust
→ https://simonwillison.net/2026/Nov/8/sqlite-parse-number-c-vs-rust/
research/sqlite-parse-number-c-vs-rust at main · simonw/research
→ https://github.com/simonw/research/tree/main/sqlite-parse-number-c-vs-rust
Run-Time Loadable Extensions
→ https://sqlite.org/loadext.html
Application-Defined SQL Functions
→ https://sqlite.org/appfunc.html
Code research projects with async coding agents like Claude Code and Codex
→ https://simonw.substack.com/p/code-research-projects-with-async
simonw/research
→ https://github.com/simonw/research