←back to thread

67 points cemdervis | 4 comments | | HN request time: 0s | source

Hi HN,

I have created a webpage that displays all C++ features since C++20 in a simple, searchable table.

It is intended to serve as a quick reference for C++ developers, whether as support for cross-platform development or simply to track the current support status out of curiosity.

I created it as a simpler, more structured, and more up-to-date alternative to the cppreference compiler support site. Please note that the page intentionally does not list LWG and CWG papers. This might change as I am continually updating the site and trying out new ideas.

Questions, feedback and suggestions are appreciated, either here or in the form of GitHub issues.

1. EE84M3i ◴[] No.45181042[source]
Is it possible to generate this automatically using conformance tests?
replies(3): >>45181668 #>>45219714 #>>45220757 #
2. cemdervis ◴[] No.45181668[source]
Hi! That's certainly possible, and also what I'm already doing. However, it's very time-consuming to do it for every single feature. The compiler vendors already provide their feature-support tables for most features, which I've made a small bot for that watches for conformance changes. For feature support that is unclear or not provided by the vendors, I write conformance tests to verify. In my experience, this mix works best.
3. monax ◴[] No.45219714[source]
Having something like WPT [1] for C++ would be really nice.

[1] https://github.com/web-platform-tests/wpt

4. bregma ◴[] No.45220757[source]
There are a handful of commercial offerings of C++ conformance test suites. They're all generally around 40000 euro for an evaluation copy (more for an actual full licensed copy), none are 100% complete, and we continually find bugs in tests.

You're not going to find some hobbyist coming up with a useful conformance or coverage test suite for free. It's intensive, expensive, and arduous.

Such things are mandatory, however, if you are a C++ vendor targeting ISO 26262 or IEC 61508 or similar -- basically, software that could kill you if it's done wrong. It's a niche with money and motivation.