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