hn.today

Actual Curl Rewrites in Rust

daniel.haxx.se24 points5 comments
Screenshot of Actual Curl Rewrites in Rust

Recent projects have attempted to recreate curl and libcurl in Rust, including one reportedly funded with $8,600. Their rapid progress - converting about 185,000 lines of C into 340,000 lines of Rust in a few weeks - shows that AI agents can reproduce a mature codebase, especially one extensively documented, tested, and widely used as training material. But reproducing curl at a particular moment is not the same as sustaining it. Its behavior is specified by decades of development, user feedback, and established tests; the harder challenge is keeping pace as the software changes.

While the rewrites were underway, curl’s maintainers merged more than 300 commits in just over three weeks, including roughly 200 bug fixes and several vulnerability fixes. The author argues that curl’s strength comes less from its implementation language than from its active community, development pace, and long record of API and ABI stability. Rust could prevent some memory-related flaws: of 81 vulnerabilities confirmed in curl during 2026, 14 likely would have been avoided with a memory-safe language. It would not have prevented the other 67. The author therefore favors ongoing maintenance, refinement, and refactoring over wholesale rewrites, while expressing amusement and curiosity about the Rust projects and whether their creators will keep them current.

Read on daniel.haxx.se5 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Solid 2.0

Solid 2.0

Solid 2.0 is now stable, five years after version 1.0, with a smaller API and diagnostics designed for AI agents. Its reactive graph now handles asynchronous computations, while built-in server functions support RPC calls and persistent Server-Sent Events connections. (solidjs.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.