>>51037963>exampleRecently I needed a zlib library. I was parsing the pack files created by git.
Let's have a look, shall we?
https://www.nuget.org/packages?q=zlibPackage #1.
https://www.nuget.org/packages/zlib/Doesn't add a reference. Infact, it doesn't add any files at all to the project, checking the zip file.
Why don't we check the project site so maybe we can recompile it?
"
http://todorepositorylocation.com/" nice url
24 thousand installs, though. For something which does literally nothing.
Next library.
Package #2.
https://www.nuget.org/packages/zlib.net/33 thousand installs. Website looks like it was made in 1999.
http://www.componentace.com/zlib_.NET.htmBut, it looks useful. Checking the object browser, it has a few types, a 'ZInputStream' which inherits from BinaryReader, and not Stream. Interesting naming!
ZOutputStream actually inherits from Stream, but it provides even more non-standard functions!
I actually skipped this library, as it really seemed to just copy the entire c zlib source and convert it into a 'managed' form but infact provide no useful managed API.
I could probably use this, but with no documentation, it's a huge hassle.
And then lastly, Zlib.Portable, showing up way down the list, but with 230,000 downloads (why the fuck is this not at the top? ask the nuget devs, not me)
Hosted on codeplex, not bad. Last published this year, also not bad.
Then I try and use it. I ask it to read 261 bytes....and it ends up reading the entire stream. There is no way for me to prevent it from reading until the end of the stream. It's broken, for the usecase I need.
I haven't looked at node alternatives, and most likely I could probably get
zlib.net to work after some time fiddling around.
in any case this whole post is likely filled with inaccuracies to the point where I don't even know if I should press Post, but I will. Fuck it.