kitsunyan / pakku

Pacman wrapper with AUR support
GNU General Public License v3.0
130 stars 8 forks source link

Use Nim's httpclient instead of libcurl #22

Closed ghost closed 5 years ago

ghost commented 6 years ago

Hello, amazing project (and the fact that it's written in Nim is even more amazing!) :)

I have a question - why did you wrap libcurl instead of using Nim's httpclient stdlib module? It only depends on sockets and openssl (for SSL)

kitsunyan commented 6 years ago

I found that Nim's httpclient can't load some URLs when I tried to use it (I don't remember the exact reason). Also, it increased the size of binary by 2 times. And… I wanted to try to create my own bindings since it was my first Nim project.

I don't think that there is something bad in using libcurl.

ghost commented 6 years ago

@kitsunyan did you try to use strip to make binary smaller? And why it's bad - well, it's yet another third-party dependency :)

kitsunyan commented 6 years ago

did you try to use strip to make binary smaller?

Yes. And I noticed the increase after stripping.

And why it's bad - well, it's yet another third-party dependency :)

That's normal when package depends on another package being more lightweight. Shared libraries were designed for this. Also, pacman itself depends on curl as well as git.