Technology1 min read

Actual curl rewrites in rust

By · Published by Everything Blog

In short

Recent software initiatives, including urlx and an $8,600 AI-assisted conversion, produced hundreds of thousands of lines of Rust code from the original C codebase. During the brief development period for the automated rewrite, original maintainers resolved hundreds of bugs and multiple security vulnerabilities that the new clones currently lack. Furthermore, historical security data indicates that the vast majority of documented flaws would persist regardless of memory safety features.

Key points

  • Automated code translation tools struggle to match the continuous upkeep of active softwa…: Automated code translation tools struggle to match the continuous upkeep of active software projects averaging roughly 11 commits per day.
  • Adopting a memory-safe programming language does not eliminate the vast majority of softw…: Adopting a memory-safe programming language does not eliminate the vast majority of software security vulnerabilities.
  • Decades of active community maintenance provide greater long-term software stability than…: Decades of active community maintenance provide greater long-term software stability than simply rewriting a codebase into a new language.

Sources checked by our analysis pipeline: 1

For a long time we have received repeated requests for, or questions about, a curl rewrite in rust. Often as a joke, but also seriously.

In this modern world of AIs, we have only been waiting for someone to prove it possible and now it seems we don’t have to wait anymore.

This fall seems to be the time of the curl-in-rust takes as we first saw urlx appear a few months ago, claimed to be a memory-safe, from-scratch reimplementation of curl and libcurl and now in November curl, rewritten in Rust – a rewrite of curl and libcurl in Rust. This second one confusingly enough not even using a different name.

This latter one claims to have spent 8,600 USD to make it happen.

Writing code once was never the issue

Writing code once was never the big deal with software and it still isn’t. Sure, it’s fascinating that you can make a set of agents accomplish this in only a few weeks but let’s face it: it could do this because all the AIs of the world have…

Technology