Skip to content
Trending storyDeveloping

Claude compares C and Rust builds of a SQLite extension

1 report1 sourceupdated 15 hours ago

What happened

AI digest

On November 9, Simon Willison reported using Claude Opus 5.5 to compare C and Rust implementations of the SQLite parse_number() extension. Two Rust versions were tested: one built with Rusqlite produced a 321 KB .so file, one built with sqlite-loadable-rs produced 298 KB, and the C version came in at just 14 KB. The C build is clearly smaller, but the performance comparison showed the Rust versions run faster. The report attributes that speed advantage to Rust's strtod equivalent, which runs at roughly twice the speed of the C implementation.

Written by AI from the coverage · updated 14 hours ago

Coverage

Follow the reports to see the story from different sides.

Nov 9
  1. Simon Willison
    parse_number() as a SQLite extension: C vs Rust

    Simon Willison 用 Claude Opus 5.5 对比了用 C 和 Rust 编写 SQLite parse_number() 扩展的差异:Rust 版 .so 文件为 321 KB(Rusqlite)和 298 KB(sqlite-loadable-rs),C 版仅 14 KB,但 Rust 版更快,原因是其 strtod 等价实现速度约为 C 的两倍。

Heat over time

Heat now 7·Comparable peak 10(Nov 9 08:00)·Comparable change over 24 hours –

02.557.510Nov 908:00Nov 912:00Nov 917:00Nov 921:00

The trend only compares accounts observed without gaps, so its range may be smaller than the current heat. Hover or tap the chart for each hour; the left and right arrow keys step through it.