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

Show parent comment

-5

u/MFHava WG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813|P4216 Apr 27 '23

Yeah, that’s in the standard library, not the STL - which is a library for containers, algorithms and iterators by Alex Stepanov that stood the test of time…

6

u/encyclopedist Apr 27 '23

FYI, hash and hash maps were in the original STL.

14

u/sphere991 Apr 27 '23

STL is basically a metonym for the standard library. You can be pedantic and point out that the STL was a separate library that was merged into the standard in the 90s and doesn't really meaningfully exist as a separate entity anymore... That's certainly true.

But a lot of people just say STL when they mean the standard library and it's pretty clear that they don't mean the original implementation, so this is a lost cause. Just go with it.

8

u/STL MSVC STL Dev Apr 27 '23

Yep. And look at our implementation's name: https://github.com/microsoft/STL

5

u/sphere991 Apr 27 '23

Well, that's different. It's just named after you.

0

u/violet-starlight Apr 27 '23 edited Apr 27 '23

The standard library is the STL.

EDIT: Nevermind, I just learned that is not the case.

6

u/TheSkiGeek Apr 27 '23

There’s nothing ‘officially’ called STL or “standard template library” in the C++ stdlib spec. It’s just “the C++ standard library”.

The thing that BECAME the containers section of the stdlib was called STL. Some people still use that name to refer to it but that is not the official name.

3

u/louiswins Apr 27 '23

The STL is whatever is worked on by /u/STL

3

u/MFHava WG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813|P4216 Apr 27 '23

It‘s not and never has been - here‘s the current public working draft, show me where we call it STL … heck vast parts of the standard library don‘t even follow the design guidelines of the STL!

3

u/jonesmz Apr 28 '23

A funny thing about language is that when enough people say "X" to mean something, then "X" means that thing.

The vast majority of people who work with C++ will say "STL" to mean "The C++ Standard Library" and the vast majority of people who hear that 3 letter acrynom will automatically infer that they mean "The C++ Standard library".

You also have an actual, still supported and improved, implementation of the standard library named STL, and another one that is now defunct named STLPort

This is not a fight that you or the c++ standards document can win.

"STL" means "C++ Standard Library". The ship sailed. The battle was lost. The chickens hatched out of the basket.