Email or username:

Password:

Forgot your password?
13 comments
Elis H 🌱

@bagder Du har inte funderat på att skriva om curl i rust? </skojar>

IslandUsurper :nixos:

@bagder at last, the publisher’s imprint actually makes sense for this series.

Mattias Karlsson (he/him)

@bagder ☺️best is that some will use curl to do it without knowing it, as it's used as the underlying HTTP stack for many frameworks :)

daniel:// stenberg://

@csierrandres I've heard you can basically do it in any language and it'll just be a 100 lines of code.

Mattias Eriksson 🦀🚵‍♂️

@bagder @csierrandres
Yes,
fn main(...) {
libcurl(...);
}

See, even if you add some extra lines for nice error handling, you will end up with less than 100 lines. It wasn't even hard.

Emil

@bagder Rewriting curl as a shell script with a dependency to curl.

Billy O'Neal

@bagder three days? I can do it way faster: cp libcurl-x.y rewritten-curl 🤣🤪

Go Up