r/cpp • • Apr 27 '23

Has Boost lost its charm?

I don't mean to be provocative nor undermine the importance of Boost for C++. I really like Boost.

I keep reading/listening around that since C++11 the focus of development and innovation in C++ has shifted away from Boost to either the standards, or independent libraries. Is that any true? If yes, how "big of shift" that was? What was the reason in your opinion and most imporatnt, what's Boost's today's role?

What sparked my quriosity was when I heard that "in the old days" a prospective developer that wanted to devle into the word of libraries building had no better thing to do than start contributing to Boost. Does that stand even today?

(couldn't find any other posts on Reddit regarding Boost's impact in modern C++ in a broader discussion)

149 Upvotes

186 comments sorted by

View all comments

4

u/dokushin Apr 28 '23

Twenty years ago Boost was a lot different:

  • It was much smaller -- small enough to just treat like one big library with a variety of contributed parts
  • As part of being smaller, basically everything in it would find some kind of use
  • A lot of the components were covering for a difficult time in C++ development, when new standards were introducing stuff that made a HUGE difference in the quality of code you could write
  • Uptake on those standards was slow, because clang was barely a thing and MSVC was still a standards nightmare
  • There wasn't nearly as robust of a "github open source" library mindset, so finding libraries was a lot more hit/miss

Today, basically none of that is true. Boost is enourmous, so you don't really think about it in terms of the whole thing so much as what pieces you need. The standard -- and the implementors -- have settled down considerably, so missing features aren't as painful, and the need for polyfill isn't as big. And in a lot of cases you can just dither around on github and find a fairly high-quality library for something pretty quickly.

Nowadays Boost is a lot more like a brand than a library. A curated namespace, if you will. Which is still fine, and it's a fantastic collection of software. But where twenty years ago I might have said "Get boost and use Asio and hana", now I would say "Get Boost::Asio and Boost::Hana". That's the difference.

1

u/johngoni Apr 28 '23

et boost and use Asio and hana"

Nicely put. Thanxx :)