Live data from Hacker News

C++11 use in Chromium

chromium-cpp.appspot.com

21–30 of 35 posts

Re: C++11 use in Chromium

#22

Is there a great guide to C++11 as a language? Typing "Learn C++11" into Google always results in information mixed with legacy C++

The definitive introduction to C++11 is probably 'C++ Primer 5th edition'. It covers stuff other than the new features but everything is described as it should be done in C++11/14.

Re: C++11 use in Chromium

#23
post #19

Stuff like this makes me really regret being a C++ developer. Companies and projects are adopting new features at a glacial pace and yet the programming world is still moving forward and it feels like despite the best efforts of the committee and the compiler teams C++ is doomed to continue being a 'legacy language' as companies either continue migrating to C# or sticking with C++98.

Instead of living with regret, why not ask yourself what kind of software you want to be writing and what kind of problems you want to be solving? Some software should be migrated to C# and Java. On the other hand, when it comes to runtime performance, memory footprint, and compiler and runtime availability, nothing matches (or even comes close yet) to C/C++.

Re: C++11 use in Chromium

#24

Is there a great guide to C++11 as a language? Typing "Learn C++11" into Google always results in information mixed with legacy C++

Bjarne Stroustrup's The C++ Programming Language(4th Edition) is updated for C++11.

Re: C++11 use in Chromium

#25
post #6
post #4

Visual Studio limiting progress as always..

Visual Studio 2014 is already much better. http://blogs.msdn.com/b/vcblog/archive/2014/08/21/c-11-14-fe... Last time I checked, outside most C++ compilers were still catching up with C++11. There are more C++ compilers out there than just clang and gcc. Even those aren't 100% compliant at library level, if I am not mistaken.

[deleted]

Re: C++11 use in Chromium

#26
post #17
post #16

Earlier quoted context omitted.

The problem is you're demanding that the entire coding population of a large company "get the hang of it" or else be confused by their tools. That is a proposition with non-zero cost, so it needs to be weight against the derived benefit. And IMHO for move semantics, that benefit is pretty low. The overwhelming number of allocation bugs with C++ code are treated very well by RAII already. Move semantics tend to be bes…

> The problem is you're demanding that the entire coding population of a large company "get the hang of it" or else be confused by their tools. The fact of life in C++ is that you have to grasp a number of not-entirely-intuitive concepts before you can be effective with it. Rvalue references are not particularly hard compared to many of the others. Consider how much time newbies spend wrapping their head around point…

Chromium uses move semantics all over the place:

https://code.google.com/p/chromium/codesearch#search/&q=move...

We don't allow the standard version yet partly for the reason explained downthread: it requires stl support to be very useful and not all the platforms we target are compatible yet.

Re: C++11 use in Chromium

#27
post #6

Earlier quoted context omitted.

Visual Studio 2014 is already much better. http://blogs.msdn.com/b/vcblog/archive/2014/08/21/c-11-14-fe... Last time I checked, outside most C++ compilers were still catching up with C++11. There are more C++ compilers out there than just clang and gcc. Even those aren't 100% compliant at library level, if I am not mistaken.

It must have been a while since you last checked. Many of the features listed here as banned because of lack of VisualStudio support have been available in gcc and clang for years.

GCC 4.9.1, was released on 2014-07-16.

Still quite a few rows with N.

https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#...

I was only wrong about clang.

So my point still holds for gcc, and it doesn't change the fact, that there are more compilers out there than the triad clang, gcc, vc++.

Re: C++11 use in Chromium

#29
post #19

Stuff like this makes me really regret being a C++ developer. Companies and projects are adopting new features at a glacial pace and yet the programming world is still moving forward and it feels like despite the best efforts of the committee and the compiler teams C++ is doomed to continue being a 'legacy language' as companies either continue migrating to C# or sticking with C++98.

Instead of living with regret, why not ask yourself what kind of software you want to be writing and what kind of problems you want to be solving? Some software should be migrated to C# and Java. On the other hand, when it comes to runtime performance, memory footprint, and compiler and runtime availability, nothing matches (or even comes close yet) to C/C++.

Ada? D? Turbo Pascal? Modula-2?...

Some of C and C++ advantages come from having 30 years of compiler optimizations, while compiler vendors stoped caring about implementations for other languages.

I am big on C++, but as a language geek, I am looking forward to .NET Native release, and see how far it can take C# in this language X vs language Y discussions.

Re: C++11 use in Chromium

#30
post #19

Stuff like this makes me really regret being a C++ developer. Companies and projects are adopting new features at a glacial pace and yet the programming world is still moving forward and it feels like despite the best efforts of the committee and the compiler teams C++ is doomed to continue being a 'legacy language' as companies either continue migrating to C# or sticking with C++98.

I would be so happy if that comittee started removing features instead of adding them. Guidelines like that are just a way of dealing with all the complexity they introduced to C++ over the years.
Post reply on HN