3 ms·
I'm happy with the article overall. >there are also a decent number of other bugs that come from cURL doing ad-hoc inline character-by-character parsing of jus
by mappu 6y ago
I'm happy with the article overall.
>there are also a decent number of other bugs that come from cURL doing ad-hoc inline character-by-character parsing of just about everything, whereas in Rust you would probably use a library to fully parse things.
cURL is the library to fully parse these things,
- dbrgn 6y agoThe author was probably referring to parser generators or combinator libraries like non or pest.
- mappu 6y agoThis was my initial charitable interpretation too, but the linked URL is actually to a specific url parsing crate. That's definitely in cURL's wheelhouse.
- klysm 6y agocURL isn't an abstract parsing library in the notion that is intended here. Rust has some libraries that give you pretty high level abstractions for generalized parsing that are also incredibly performant - something that's not really a thing in C.
- paledot 6y agoThat jumped out at me too. cURL is one of the most ubiquitous libraries out there. It's worth keeping its dependencies to an absolute minimum, even if it means having to rewrite a function here and there.