News for hackers. Stuff that matters.
Re:Httpserver.h: Single header library for writing non-block... by zelly on Thursday December 12, 2019 @09:55PM (#21778766)
Is it really a time sink? You have to have a build system anyway to link together your project itself, assuming it's bigger than a single-file hello world. One extra line in your build system should be the least time consuming part of adding a new foreign dependency--you still have to vet the code for security and figure out how to use it.

Unless you're using C++20 modules, you also have to deal with possibly including the header multiple times (slowing down builds), namespacing, macros potentially defined by the header, or a bunch of external/internal linkage edge cases. You only ever find out about these problems once it's too late to remove that library for a different one.

Re:Httpserver.h: Single header library for writing non-block... by doliveira on Thursday December 12, 2019 @10:01PM (#21778793)
> One extra line in your build system should be the least time consuming part of adding a new foreign dependency

Could, should. IRL Docker became a thing mostly because of the hassle it is to do so in C.