[webkit-dev] C++17 is here. Should we use it?
jfbastien at apple.com
Fri Mar 23 14:32:09 PDT 2018
Hello again WebKitten!
April 2018 is fast approaching, which means that we might be able to require GCC 6 and all the great C++17 features that’ll come with it. So what say you?
From C++17 it looks like we wouldn’t get quite a few things, but we’d be able to use a few nice things (see the table <http://en.cppreference.com/w/cpp/compiler_support>).
> On Aug 4, 2017, at 16:00, Michael Catanzaro <mcatanzaro at igalia.com> wrote:
> On Fri, Aug 4, 2017 at 3:48 PM, Yusuke SUZUKI <utatane.tea at gmail.com> wrote:
>> Possibly, mcatanzaro and clopez know much about WebKitGTK+ compiler dependencies.
> As a result of the C++14 discussion on this list a few months ago, we relaxed our dependencies policy  to allow upgrading to GCC 5 one year earlier than planned, to the displeasure of some of our distributors who now have to build a custom compiler as part of their WebKit builds. We would prefer not to relax the policy further.
> Our current schedule looks like:
> * GCC 6 could be required in April 2018 (next Ubuntu LTS release)
> * GCC 7 (required for C++17) could be required likely late in 2019 (next Debian stable release)
> Is that acceptable for Apple?
>  https://trac.webkit.org/wiki/WebKitGTK/DependenciesPolicy <https://trac.webkit.org/wiki/WebKitGTK/DependenciesPolicy>
> On Aug 4, 2017, at 13:39, JF Bastien <jfbastien at apple.com> wrote:
> Hello WebKilters,
> Our Chrome-y friends are considering the use of C++14 <https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/cxx/ow7hmdDm4yw/eV6KWL2yAQAJ>. I have to say that C++14 in WebKit has been quite amazing, and we should consider using C++17: it has many wonderful new things <https://github.com/tvaneerd/cpp17_in_TTs/blob/master/ALL_IN_ONE.md>, some of which we already use through WTF’s re-implementation of library features. By now (table as witness <http://en.cppreference.com/w/cpp/compiler_support>) most C++17 languages features are in clang and GCC, and MSVC isn’t doing too bad either. Language things can just come through WTF if we really want them.
> So how about it?
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev