[FoRK] C++11 / STL, Re: Raspberry Pi + Qt5 + OpenGL = awesome

J. Andrew Rogers andrew at jarbox.org
Fri Apr 12 13:54:13 PDT 2013

On Apr 12, 2013, at 10:57 AM, Stephen Williams <sdw at lig.net> wrote:
>> STL is still broken for some common C++11 tool chains. GCC 4.8, for example. 
> Since STL is effectively part of the language now, C++11 conformance includes STL.  Perhaps you mean that stand lone STL distributions won't work on C++11?

No, I mean GCC 4.8 does not conform to C++11 and won't until GCC 4.9 at the earliest. We use GCC and C++11 at work. The STL implementation provided with the latest GCC is broken in significant ways. While we do not use STL much because the result tends to have poor performance, we use it even less because the STL is broken in cases where we would normally use it. 

We have our own pure C++11 implementations of things most programmers would use the STL for but we usually tried to use the STL first.

> I haven't seen the need so far since it is part of the C++ library now, as far as I've needed.  There seems to be a good flow of Boost -> C++ library, although I'm not sure how that will work now that C++11 has adopted modified versions of STL + Boost.

You are unlikely to notice the defects and non-conformance unless you are doing something performance sensitive. The basic, vanilla STL calls and constructs most programmers use work adequately. Not fast but not broken.

>> As another observation, POSIX interfaces become less useful every year. In many cases they no longer adequately capture and expose the functionality and behavior of a modern operating system kernel. 
> If you want that, you probably want something like Qt.  The world is now very big compared to Posix.  OpenGL, networking of various types, etc.

Nah, we just use the native Linux interfaces. Much better and cleaner, and without unnecessary threads.

More information about the FoRK mailing list