2026年10月16日
Researchsparqlite:在 SQLite 内部实现的 Rust 版 SPARQL 1.1 —— sparqlite 是一个基于 Rust 开发的 SQLite 可加载扩展(loadable extension),它将 RDF 四元组(quads)存储在普通的 SQLite 表中,并在 SQLite 进程内原生执行 SPARQL 1.1 查询与更新。其整数编码项(integer-encoded terms)、覆盖索引(covering indexes)、基于成本的查询规划器(cost-based planner)、批量连接(batched joins)以及可选的直接 SQLite B 树读取器,在计数模式(count mode)下相比 SQL 转换获得了 3.5 倍的加速,在返回完整结果时加速达 2.8 倍;同时通过了 639 个适用 W3C 评估测试中的 636 个,并经受住了数百万次差分模糊测试(differential-fuzzing)……
这项研究任务实际上是一次在“Ultracode”模式下运行网页版 Claude Code 的实验,正如 Claude Code 文档中《利用动态工作流大规模编排子智能体》(Orchestrate subagents at scale with dynamic workflows)一文中所述。
开启 Ultracode 后,Claude Code 会深度使用动态工作流——生成 JavaScript 来定义并协调一个由子智能体(subagents)构成的网络,从而解决复杂问题。
我的初始提示词(prompt)是这样的——我本意是想表达“hit the rows directly”(直接访问行数据),其中的“delete”只是我在手机上不小心打错的别字:
Write a SQLite extension in Rust that implants SPARQL and runs really fast because it can hit the delete rows directly
这让网页版 Claude Code 持续运转了 12 个多小时。第二天我查看进度时,发现它已经构建了数量惊人的 Rust crate,于是发送了一条跟进提示词:
Every folder in the crates/ directory needs a README
Include a tutorial.md teaching users how to install the extension and how to run it in the SQLite CLI and then teaching them SPARQL in addition to how to use the SQLite extension
Include a script with the tutorial for populating a SQLite database with useful and realistic example data for that tutorial
这个项目感觉像是更上一层的氛围编码(vibe coding)——审查这里生成的代码根本不可行,甚至连通读并跟进这些文档都需要投入巨大的工作量。我不太确定接下来该怎么处理它——我现在似乎在 SQLite 内部拥有了一个用 Rust 编写的完整 SPARQL 实现,但如果这只是我一时兴起创建的,并且无法(或不愿)投入必要的时间去理解它的能力,那么它的价值究竟何在?