4 ms·
but why? What does one gain over just using libcurl?
by pionar 10y ago
but why? What does one gain over just using libcurl?
- eckza 10y agoThe novelty of being "the guy that rewrote libcurl, but in Rust!". Probably.
- mathw 10y agoIt might be fun. I don't know that you'd gain much in the real world though. Starting such a project now? Rust, for sure, for me anyway. But is it worth rewriting Curl? I agree with the author there, it most probably isn't.
- jjnoakes 10y agoShorter code, since rust is a higher level of abstraction. Safer code, so half of the vulnerabilities wouldn't have existed. Rust's ecosystem (package manager and libraries). Of course you lose portability and you probably appeal to fewer developers, at least for now. So there is a trade-off. I wish Rust compiled to C. It would be my dream language. The only reason I can't choose rust half the time is because it doesn't support targets I need to support.
- pjmlp 10y agoLLVM used to have a C generator backend, but it was dropped.
- jjnoakes 10y agoLLVM still does (Julia revived it) but last I heard it was only implemented and/or tested for the subset of LLVM IR/bitcode that Julia exercises. My dream is human-readable C as well, which I wouldn't get via LLVM, i.e. a coffeescript-like mapping between Rust and C, as far as that will go. Like I said, it's a dream. I started working on something like it, but I was side-tracked, as often happens. Maybe I'll start it again...
- notriddle 10y agomrustc?
- steveklabnik 10y agomrustc is a rust compiler written in C. You're probably thinking of Corrode, which is a Rust -> C compiler.