5 ms·
In the C world, we have pkgconf. There is no real chance to see it becoming a part of the C standard, because C is just that compact, and simple. Yet, pkgconf
by baybal2 5y ago
In the C world, we have pkgconf.
There is no real chance to see it becoming a part of the C standard, because C is just that compact, and simple.
Yet, pkgconf will be a perfect base for pan-C package metadata standard outside of the standard.
- jcelerier 5y agopkgconf already sucks on Linux when your packages are configurable, and sucks even more on Windows
- lelanthran 5y ago> pkgconf already sucks on Linux when your packages are configurable, and sucks even more on Windows Yes, but to be fair most things suck on Windows because that userbase only recently decided that portability is a good thing. As we move forward and Microsoft products stop being the odd one out, the suckage will get lower.
- pjmlp 5y agoAh pkgconf now works on IBM, ARM, Sony, Nintendo, Unisys, Cisco, Green Hills, Apple, Google's platforms?
- lelanthran 5y agoNone of those systems you mention particularly care about portability, right? That means your pkgconf support on those platforms are going to be as broken as on Windows, if not more.
- pjmlp 5y agoWhat portability? Pkgconf is GNU/Linux only anyway.
- lelanthran 5y agoSorry, Mea Cupla - I kept reading it as 'pkg-config'.
- pjmlp 5y agoCompact and simple? I guess someone is still using K&R C book as reference instead of ISO C18.
- deleted 5y ago[deleted]
- jstimpfle 5y agoHow is it less compact and simple than it was 10 or 20 years ago? It's still the same language, in spirit and in practice.
- pjmlp 5y agoExcept K&R C will stop compiling in C23, and is so simple that most people that think they know C, will fail in all glory a pub Quizz that contains all ISO C versions and major language extensions.
- jstimpfle 5y agoK&R C is not 10 years ago. It's 30-50 years ago and (AFAIK) wasn't even properly standardized and (AFAIK) still mostly works with recent compilers. Everybody thinks they know shit and yet they don't know all the details even after 5 years of practice (and let's not even look at C++!). Welcome to reality. However, a programmer's goal is not to know all the (often irrelevant) details. And it's not to win a pub quiz. The goal is to know enough to be able to communicate ideas in a clear and straightforward way, and to be productive.
- pjmlp 5y agoAh it isn't so simple after all. Than lets limit the questions to what is UB, which is needed for daily programming activities, specially when one cares about security assessments, I am betting on the same outcome.
- 5y ago
- bregma 5y agoI think you mean "in the Linux world" because pkgconf is not exclusive to C and doesn't work at all in many domains where C is in widespread use.
- baybal2 5y agoYes, you will never manage to run it everywhere where C runs. But as a part of a wider C world, it's probably the most portable semblance of standardised package metadata system.