Hacker News new | ask | show | jobs
by breakpointalpha 38 days ago
From the post:

"curl is currently 176,000 lines of C code when we exclude blank lines. The source code consists of 660,000 words, which is 12% more words than the entire English edition of the novel War and Peace. ... curl is installed in over twenty billion instances. It runs on over 110 operating systems and 28 CPU architectures. It runs in every smart phone, tablet, car, TV, game console and server on earth."

I wouldn't call that simple or well contained...

Most OS or web browsers don't run on cars or tvs.

1 comments

someone(mythos?) should write some simple-curl with 20% of features implemented in rust used by 98% of users.
curl is dealing with the complexity of HTTP. Even doing a simple basic request to some website, is going to cover a lot of code paths to deal with all sorts of response codes (redirects, etc.), headers, etc.

It's likely that new Rust code would introduce more bugs, while curl is extremely well tested at this point.