The Hallway Track
Engineering Insights

parse_number() as a SQLite extension: C vs Rust

Simon Willison · Nov 08, 2026 · Engineering Insights

Claude Opus used as a coding research assistant to benchmark C vs Rust SQLite extensions

“Try writing your own C function for parsing text into a decimal number that catches up to or beats the Rust implementation”

Simon Willison used Claude Opus to explore building a SQLite parse_number() extension in both C and Rust, comparing performance and code complexity. The AI-assisted investigation found that an optimized C implementation using Clinger's fast path outperformed Rust equivalents, achieving 19ns vs 41-46ns per row. This is a practical demonstration of LLMs as hands-on research and coding assistants for low-level systems work, but represents a minor engineering curiosity rather than a significant AI industry signal.

sqlite rust c llm-assisted-coding benchmarking simon-willison

Watch / read the original source →