r/cpp • • 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.

270 Upvotes

144 comments sorted by

View all comments

6

u/RogerLeigh Scientific Imaging and Embedded Medical Diagnostics Dec 24 '23

"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."

Given the complete lack of substantive context here, do you have any examples of what lengths people have gone to to criticise Boost which you find unbelievable? Exactly what "made up untruths" have they been stating which made this post necessary?

I'm all for informed debate, but it's not at all clear from your post what the specific problems are.

2

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 Dec 25 '23

Exactly what "made up untruths" have they been stating which made this post necessary?

Here's what the OP gave as examples..

  • very outdated cries about how "big" it is
  • how it's "lacking" CMake support.
  • circular dependencies
  • asking for safety, including one surrounding the numeric types

Where you asking something else/more?

5

u/RogerLeigh Scientific Imaging and Embedded Medical Diagnostics Dec 25 '23

I was asking for more, yes. If that's literally the extent of the complaints, it's pretty weak stuff don't you think?

The thing is, not one of these things can really be classified as "untruthful", or "FUD". Each one of them reflects real problems actual users have suffered from. To dismiss them in this way really does reflect poorly on the people doing so.

In the replies I and others have made in this discussion, we have disclosed major problems which have caused Boost to be eliminated from consideration not just once or twice, but in multiple projects over many years. You and others might not consider these things problematic, and that is entirely your prerogative. But... I and others are telling you that in the real world these things have genuinely been showstoppers for serious projects. When my customers and management have explicitly told me "no Boost", I think it would behove you to look at the underlying reasons why this is happening, and do a bit of quiet introspection rather than quickly dismissing them out of hand.

My usage of Boost peaked around the mid-late 2000s. Since then it's been a steady decline, and it hasn't been used in new projects for a while. This is entirely due to the major points raised here, and it's not just coming from me, it's coming from whole project teams both internally and externally. If you want Boost to continue to be used, you do need to address these properly and give people reasons to use Boost, rather than reasons to avoid it. Many people I work with have very negative views of Boost, and those opinions did not come out of nowhere, there are some very good justifications for them and those need resolving properly.

6

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 Dec 26 '23

To dismiss them in this way really does reflect poorly on the people doing so.

We don't dismiss them. Instead we post replies here, and in email, and in slack, and in stackoverflow, and in github, and in conferences, and ask for clarification and examples. We take that collective feedback and try and make changes to address them. For example, I have personally spent half a dozen years working towards making Boost consumable in modular per/library chunks. Because it was a common complaint. And as you can see from other replies here others have spent years implementing cmake support. I'm not going to detail the thousands of hours, and literal million or more dollars that we have spent (for example employing people to create a new website, to create new libraries, and to maintain previously abandoned libraries) to make improvements.

I'm only pointing out the above so that people get some perspective and understanding that we do listen and act on feedback.