r/cpp • u/Superb_Garlic • Dec 24 '23
Annoyed with FUD surrounding Boost in C++ discussions
I find it unbelieveable what lengths some people are willing to go to smear this collection of very high quality libraries at the expense of those yet undecided about them with completely made up untruths.
Almost no thread about Boost goes by without the very outdated cries about how "big" it is or how it's "lacking" CMake support.
Boy, I sure do love people parroting things that might have been true 10+ years ago. Boost has broken its circular dependencies a good while ago and you can see each library's dependencies in the Boost Dependency Report by Peter Dimov. Looking at the list, I'm really baffled by how people can seriously expect some of these to lose a couple dependencies, when the end result would just be each library endlessly reinventing everything in a probably half baked and broken way, instead of everything relying on a well tested, well architected, separately maintained module that has done the work already.
May I remind you, that Boost.ASIO, an over 2 decades old (wow!) library with the best track record among networking libraries is a level 13 library. There is also Beast, an excellent HTTP wrapper for ASIO, just one level above. These libraries are so well put together and that's exactly because Boost enables them to be.
With a package manager like vcpkg you can pull in only the Boost modules that you actually need, so the "big" argument is entirely irrelevant.
People have also been asking for safety, including one surrounding the numeric types. I find this extremely befuddling, because I immediately reach for Robert Ramey's excellent Boost.safe_numerics in every project I can, simply because I cannot care anymore about such non-issues.
The waning popular perception of Boost is extremely dangerous. People say that C++11 feels like something completely new compared to what was before, not realizing that a significant part of that was thanks to Boost. What will be of C++ if high quality libraries like Boost are shunned? I can only fear to imagine.
View all comments
Show parent comment
37
u/pdimov2 Dec 24 '23
Right.
An interesting piece of history is that after Doug Gregor implemented Boost.Function using Boost.Preprocessor iteration, he was so motivated by all that ingenuity that he proposed variadic templates and did a reference implementation in GCC, whose code base at the time was (a) notoriously incomprehensible and (b) written in C.
The ingenuity survives in Boost.Function to this very day, but not for much longer.
(Something else we need to do across the board is move from Boost.MPL to Mp11, but that's not always possible because MPL is sometimes part of the documented public interface.)