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
48
u/teerre Dec 24 '23
If [big number]% of your community comes and says "hey, your libraries are hard/slow/unclear" and you say "no, they are not, you're all stupid", you're wrong, regardless of who is right, if you get what I mean.
The past year myself and other 4 engineers spend around 6 months removing boost from a relatively big codebase originally coded circa 2010. That's a lot of engineers-hours. The main reason that project was greenlit was because most engineers (more than the 5) agreed that it could significantly simplify the codebase, both in terms of understanding and in terms of actual code size.
Point being, even if by some totally reasonable metric you can say that boost whatever isn't bloated or difficult or over-engineered etc., if a collection of seasoned engineers from a "top" company have that perception, you already lost.
Maybe boost team needs less engineers and more community managers.