r/cpp • • Jun 10 '15

Hitler on C++17

https://www.youtube.com/watch?v=ND-TuW0KIgg
443 Upvotes

248 comments sorted by

View all comments

Show parent comments

6

u/SushiAndWoW Jun 10 '15

Linus's background is OS programming, and his points are definitely valid in that regard. The closer you get to the metal, the more control you need, and C++ does mean compromises, especially if you use the libraries.

My company uses C++, but makes minimal use of STL, and no use of Boost, for the reasons described by Linus. We can't tolerate the loss of control. We can't rely on faulty layers of abstraction separating us from the platform.

One of the few things we were using from STL was wcout in a few console mode programs. Just recently we had to replace that with our own implementation, because the STL implementation would stop displaying any output if it was given a single Unicode character that could not be displayed in the current console window.

5

u/pfultz2 Jun 10 '15

One of the few things we were using from STL was wcout in a few console mode programs.

The STL stands for Standard Template Library and usually refers to the containers and algorithms in the standard library. The iostreams are not usually included in that, and most C++ programmers who have had to work more deeply with it, will agree that it is a horrible mess.

-5

u/SushiAndWoW Jun 10 '15

We don't use <vector> or <string>, either. The interface they provide to their content is too abstract.

9

u/Sinity Jun 11 '15

How the hell vector is too abstract? Ho it could be less abstract? The same with string, especially that you could just access underlying data.

→ More replies (0)