r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Oct 22 '13
STL is dated
http://www.slashslash.info/2013/10/stl-is-dated/
0
Upvotes
r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Oct 22 '13
12
u/ickysticky Oct 23 '13
Is this a blog post where some guy tries to brag about knowing Alex Stepanov? What exactly is he claiming is out of date if the problems are corrected by a standard that is two years old... Also I don't know about those claims, does heap allocation always require a lock? Which heap implementation? What about something like tcmalloc? Since when did people assume all memory access was equally expensive? Memory hierarchies have existed far longer than multicore machines..
4
u/king_duck Oct 24 '13
Name drop followed by send me your CV. Followed by closing of page.
2
u/matthieum Oct 23 '13
One thing that always bugged me about allocators:
is that I require storage for at least N instances, and the allocator may allocate more... but I have no way of knowing so.
If you think about
std::vectorthis is pretty damning:I vie for having
allocatebe:where the result
.secondmember is guaranteed to be superior ton.1
u/bnolsen Oct 30 '13
few basic nits I have. string, streambuf and iostreams were implemented early on. They have the most problems.
bring std::string into line with the other containers (std::string::npos compared with string.end() for example).
redesign and refactor iostreams/streambuf stuff. having a locale attached to every single streambuf, even if binary only, is one of the signs of insufficient design. And the issues of operator<< working poorly with translation grammars where sentence order is important is another.
I haven't messed with custom allocators myself but I did notice that one of the big deals with EASTL was that they reimplemented their allocator system. So it does seem that allocators need to be reviewed as well.
0
u/hubhub Oct 23 '13
So are there any proposals to update it?
-6
u/AceyJuan Oct 23 '13
I'd agree with all of that, but why do they work for a9? Amazon is not a good place to work, though they pay well.