10 ms·
I tried to rewrite my node backend in C++ but I got stuck at the package management part. When I learned Node I was able to install NPM and run “npm i -P uws” a
by _diyu 8y ago
I tried to rewrite my node backend in C++ but I got stuck at the package management part. When I learned Node I was able to install NPM and run “npm i -P uws” and was up and running quickly. Reading through about 5 WebSocket C++ lib installation instructions and still not making any progress was enough to make me wonder if my time would be better spent paying for a faster and/or bigger server cluster and just keeping node.
- gaius 8y agoPackages are not really a thing in C++, partly because there are so many different environments and compilers anyway, and partly because C++ apps aren’t really made by stitching together hundreds or thousands of tiny packages like in Node. On Windows you might use NuGet, on Linux you might use whatever the native package format is, but you would thinking fewer, bigger libraries rather than what you’re used to. If you are looking for REST stuff try Casablanca, it’s on Github or in the repo for Ubuntu.
- pjmlp 8y agoVcpkg is becoming the way to go for those that don't mind compiling everything, otherwise NuGet as usual.
- andrewmcwatters 8y agoVcpkg has been really helpful for me, however I can't recommend its usage in day-to-day work considering it compiles things differently from vanilla releases. It was a rather deceptive aspect of its usage that wasn't well advertised. Compilation units should be functionally equivalent to releases directly from vendors.
- erichocean 8y ago> I got stuck at the package management part Bazel.io has been a revelation for me, and made C++ essentially practical to use on a day-to-day basis.