Simon Willison

parse_number() as a SQLite extension: C vs Rust

Read the original on Simon Willison →

Simon Willison investigated adding a `parse_number()` function to SQLite as a C extension versus a Rust extension. He compared performance, code complexity, and binary size, finding the Rust version (321 KB or 298 KB) was faster than the 14 KB C version, but a custom C implementation could match or beat Rust’s speed. The study included benchmark results over 2 million rows for mixed, integer‑only, and decimal‑only data sets.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at Simon Willison.

Simon Willison
Nov 16

llm 0.37.3

The release of llm 0.37.3 is a bug‑fix update that addresses an issue caused by the latest Homebrew package of SQLite (3.54.1). The new SQLite version changed the behavior of JSON functions, causing LLM’s logging code to break; the fix involves wrapping the JSON array in a json() call. The update restores correct functionality for LLM’s JSON handling.

Simon Willison
5d ago

Quoting Daniel Stenberg

During a three‑week period, the agents converted 185,000 lines of C code into 340,000 lines of Rust code, merging over 300 commits into the curl project. They added more than 200 bugfixes—none of which were present in the Rust rewrites—and fixed several vulnerabilities. In the following month, another 200 bugfixes and additional vulnerability fixes were made.