208 points · by cokernel_hacker · 13y ago · 78 comments
They probably have good reasons, such as keeping the same ABI as long as possible, but it's sometimes very frustrating.
[1] http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#s...
One thing I really don't like about libc++ is that it doesn't support anything from TR1 - makes it needlessly difficult to use in existing code bases.
This has led to a few hours down the drain...
[1] http://llvm.org/viewvc/llvm-project?view=revision&revision=1...
template<typename _Tp, typename _Alloc = std::allocator<_Tp> > class list : protected _List_base<_Tp, _Alloc> { ... size_type size() const { return std::distance(begin(), end()); }
(libc++ keeps a track of the size somewhere, but this in occurs a 4/8 byte overhead)
It's four goddamn bytes. Or eight if you really want more than 4 billion elements.
In C++ you are supposed to reuse standard abstractions; So you can - do your own std::list; (still have to copy iterators and everything into it;-) - do your own wrapper around std::list that exposes a weaker interface, - make your own list and everybody start to bitch that you are reinventing the wheel.
Anyone recommends a good book, or any other dense/complete material, on C++11/C++14? I barely got C++11, never really practiced, and I could use a good material to dive deep into it.
Also there is The tour of C++ (http://www.stroustrup.com/Tour.html) which offer a fresh start to the language.
But the one book I am waiting for is Effective C++ 11/14 which should coming up next year.
The more technical videos on Channel 9 are terrific stuff, and hooray for download links! Kudos to Microsoft.
[1] http://channel9.msdn.com/Series/C9-Lectures-Stephan-T-Lavave...
[2] http://channel9.msdn.com/Series/C9-Lectures-Stephan-T-Lavave...
Also I forgot to mention C++ and Beyond (http://cppandbeyond.com/video-gallery/)
Likewise! And from your first link there is a sort of preview of Scott Meyers' upcoming book http://channel9.msdn.com/Events/GoingNative/2013/An-Effectiv...
By Scott Meyers
Either way, the better error messages in clang make it worth sticking to.
git clone http://llvm.org/git/llvm.git
Thanks for the clarification :)
Subversion is the equivalent of using paper tape to store your source code. It's centralized, bloody slow, and missing a number of features taken for granted in a system like Git.
From 100100 to 194194 there are 194 of those kind of numbers (e.g 133133).
Even more if you count other symmetries as "significant", e.g 100001 or 123321