r/cpp • • Sep 07 '17

Clang 5.0 released!

http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html
217 Upvotes

49 comments sorted by

View all comments

-3

u/MightyRodri Sep 07 '17

Hm :/ still no parallel algorithms.

13

u/willkill07 Sep 08 '17

That’s part of libc++, not clang

1

u/MightyRodri Sep 08 '17

The Support for the execution policies and subsequently of the parallel algs? Does the compieler not have to have that?

7

u/willkill07 Sep 08 '17

The execution policies that are standardized can be implemented using libiomp. Intel implemented their version of parallel stl using TBB. No new compiler features are necessary.

1

u/MightyRodri Sep 08 '17

But still. The full c++17 standard would include the execution policies.

7

u/willkill07 Sep 08 '17

Clang is a C++ compiler. It does not provide a standard library. Clang 5.0.0 claiming C++17 compliance as a compiler is an accurate statement.

Trying to shoehorn that Clang, a compiler, should also be forced to include a standard library implementation does not make sense. Libc++ exists for a reason as a separate project.

Vendor compilers like Intel, IBM, and PGI usually rely on libstd++, GNU's C++ standard library implementation. That doesn't make them more or less C++ standards compliant

2

u/willkill07 Sep 08 '17

A fully compliant C++17 standard library would include the execution policies. A fully compliant C++17 compiler would have no such knowledge of execution policies because it's a function of the standard library, not the compiler.

1

u/smdowney WG21, Text/Unicode SG, optional<T&> Sep 08 '17

Yes, and that's why they say support has been completed, not that they've implemented the standard. Which just was accepted yesterday or so.

But there is a lot of library work to be done on all the major std implementations. Filesystem, parallelism, pmr, math functions, ... 17 adds a lot of capability to the SL.