Hacker News new | ask | show | jobs
I got Claude to rewrite curl in Rust in ~4 weeks (claude.ai)
5 points by kov 19 days ago
3 comments

I like those experiments but they are just experiments.

You won’t be able to maintain this project for the next 10 years, understand what should be deprecated and what should be added. The only options forward to move this one step ahead are either to get this adopted by the current team or continue to update this as the original project moves on….

I see why this result looks impressive, but I’m also wondering what’s its future looks like - probably ending up in an abandoned GitHub repository with no other commits.

Probably, yeah. But if the curl maintainers used it, what they claim to be too difficult wouldn't and they would fix a lot of issues and speed things up significantly. This is the point of the experiment.
This is cool, but I can't help but think you could have saved thousands of dollars, probably finished faster, and had similar results by using the same models for reviewing, but using Qwen / Deepseek / GLM for workhorse code writing model(s).
Possible. Would you like to give it a try? ;D
On a recent post, curl's maintainer wrote this:

"Porting curl to another language (like rust) would be a monstrous undertaking that would be slow and introduce lots of new short to medium term problems."

This used to be true, but is no longer the case. With AI agents this can now be done very, very quickly, and with most of the downsides taken care of by just putting in a little bit more effort.

I decided to put my tokens where my mouth is and give it a go. I am sure there are issues and things that could be better with more effort - this was a side / background project while I was working on my actual projects. But it proves the concept.

ABI-compatible libcurl with all of the platforms, protocols and functionality, passing all of the tests, essentially the same performance - and better performance on the WebKit port tests I ran. I already replaced my system's libcurl with it, no issues so far.