Hacker News new | past | comments | ask | show | jobs | submit login

The 'lib' is generally mandatory so that the GCC/clang linker flag can find the binaries in its search path. '-lpng' means 'find libpng.a or libpng.so'. Hence many, many C libraries have it as part of the name of the project. In general the 'lib' prefix in a name means 'this is a C library', or at least now in the days of Rust, 'you can link to this with a C linker or normal FFI'.

Considering that, 'spng' is different enough from 'png'.




It is similar to how many JavaScript libraries are call "something.js" or Java libraries are called Something4J.

I would call this library "spng" and the original "png"; once compiled they would be named "libspng" and "libpng".


It's a very generic name and adding a single letter doesn't do much to differentiate at a cursory glance. If you're focused on what you're doing then maybe...


I suggest you not take on dependencies based on your cursory glances, then.


That’s really the original libpngs fault for picking a generic. Now everyone wants to follow suit.


maybe... libpng-ng?


Considering that, 'spng' is different enough from 'png'.

It's different, but I think it's so close as to verge on namesquatting, especially when the description and purpose is almost identical to the original libpng --- in fact, that's why I clicked, to see what exactly this is about.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: