[webkit-dev] C++11 (was Re: on coding-style)

Carlos Garcia Campos carlosgc at webkit.org
Sat Apr 13 01:55:46 PDT 2013


El vie, 12-04-2013 a las 18:15 -0700, Maciej Stachowiak escribió:
> On Apr 12, 2013, at 4:09 PM, Karen Shaeffer <shaeffer at neuralscape.com> wrote:
> 
> > 
> > Of course, I understand that. But there is a huge opportunity cost to webkit.
> > The c++11 standard also rewrites the entire standard library. I have been using
> > g++ 4.7.2 using -stdc++11 in my work with linux. And the code I have tested is
> > performing nearly like c code. If you take advantage of the performance enhancements
> > in C++11, then you can realize impressive performance gains.
> > 
> > I do understand the nature of the business. And I also understand that performance
> > is huge moving forward, where resource constrained mobile platforms are significantly
> > affected by performance issues. I suggest you'll see Blink moving aggressively to
> > support C++11 moving forward. And I suggest it is in WebKit's long term interest to
> > do so as well.
> 
> As others have said, we are definitely eager to use C++11 across the board but are limited by compiler support requirements.
> 
> One thing that it would be useful to know: what are the compilers and minimum required versions used for in-tree ports? Perhaps we could record this so we can regularly evaluate which features are safe to use and what the blockers are to wholesale adoption, if any.

The GTK+ port now requires gcc >= 4.7 and clang >= 3. We also added the
-stdc++11 where possible. See
https://bugs.webkit.org/show_bug.cgi?id=109932

> Regards,
> Maciej
> 
> 
> 
> 
> 
> 
> On Apr 12, 2013, at 4:09 PM, Karen Shaeffer <shaeffer at neuralscape.com>
> wrote:
> 
> > 
> > Of course, I understand that. But there is a huge opportunity cost
> > to webkit.
> > The c++11 standard also rewrites the entire standard library. I have
> > been using
> > g++ 4.7.2 using -stdc++11 in my work with linux. And the code I have
> > tested is
> > performing nearly like c code. If you take advantage of the
> > performance enhancements
> > in C++11, then you can realize impressive performance gains.
> > 
> > I do understand the nature of the business. And I also understand
> > that performance
> > is huge moving forward, where resource constrained mobile platforms
> > are significantly
> > affected by performance issues. I suggest you'll see Blink moving
> > aggressively to
> > support C++11 moving forward. And I suggest it is in WebKit's long
> > term interest to
> > do so as well.
> > 
> 
> As others have said, we are definitely eager to use C++11 across the
> board but are limited by compiler support requirements.
> 
> 
> One thing that it would be useful to know: what are the compilers and
> minimum required versions used for in-tree ports? Perhaps we could
> record this so we can regularly evaluate which features are safe to
> use and what the blockers are to wholesale adoption, if any.
> 
> 
> Regards,
> Maciej
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3




More information about the webkit-dev mailing list