News for hackers. Stuff that matters.
Re:Considering C99 for Curl by tragomaskhalos on Tuesday November 22, 2022 @10:20AM (#33706714)
> Other languages

> We do not consider switching or rewriting curl into any other language.

Rustaceans at the back of the auditorium slowly lower their hands ...

Re:Considering C99 for Curl by jmull on Tuesday November 22, 2022 @10:38AM (#33706905)
It's not really up to the curl people to rewrite it in rust.

It's for the proponents of rust.

Personally, I'm largely convinced that writing in rust will lead to safer implementations... now I'm just waiting for the full-featured, well-though-out, stable, useful rust implementations to appear.

I'm not married to curl. Where's "rurl" or whatever? If it exists and does something useful as well as curl (or better), I'll happily use it.

Re:Considering C99 for Curl by adql on Tuesday November 22, 2022 @11:21AM (#33707442)
Well, curl is a bit of swiss army chainsaw for protocols and in general there is rarely a need to have same subsystem (of "downloading/sending something to an url) have support for protocols from HTTP thru IMAP all the way to LDAP.

So there is really no reason to use it Rust, use smaller, protocol-specific libs, less security problems and if you need multi-protocol support just switch by protocol and maybe write some wrappers.

And for calling it from C, "Rewrite it in Rust but make ABI C compatible" means you have to repeat a lot of Curl's idiosynchracies all while recreating all of the functionality. Looking at https://curl.se/docs/security.html there isn't that many of them that Rust safety would prevent so the real gains from that aren't probably all that great.

Now OpenSSL on another hand...

Re:Considering C99 for Curl by fgeiger on Tuesday November 22, 2022 @10:36AM (#33706884)
Re:Considering C99 for Curl by nine_k on Tuesday November 22, 2022 @10:28AM (#33706784)
That would be a major effort, without a very clear benefit. Curl is massive, just scroll through its man page.
Re:Considering C99 for Curl by sgt on Tuesday November 22, 2022 @01:16PM (#33708919)
I just scrolled through the man page at a speed of 15 pages per second. Aside from that, curl is an extremely important and impressive piece of software that I use daily.
Re:Considering C99 for Curl by jjgreen on Tuesday November 22, 2022 @07:02PM (#33713282)
Massive and written in C, you'd be mad to use it ... oh

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Re:Considering C99 for Curl by pornel on Tuesday November 22, 2022 @11:36AM (#33707628)
The approaches C and Rust projects have to upgrades are so radically different, it's comical:

curl: let's not rush, 23 years is not enough time for people to update their compilers.

Rust: the compiler released last Thursday is the oldest supported version.

Re:Considering C99 for Curl by forgotpwd16 on Tuesday November 22, 2022 @12:27PM (#33708335)
>Rustaceans at the back of the auditorium slowly lower their hands ...

And start a rewrite themselves afterwards.

Re:Considering C99 for Curl by Arnavion on Tuesday November 22, 2022 @01:39PM (#33709307)