The C++ standards committee process is insane. That fact that std::embed (completely reasonable functionality that people have been asking for since as long as I've been programming) gets this kind of feedback, but, say, 2D graphics (which nobody wants) is just fine and dandy and we might get a whole TS for it
2D graphics is actually broken. I did a massive review of it (which seems to be stuck in limbo between being finished and putting it wherever papers go to be ignored, which i need to chase up on) and found that its broken. Like incorrect on multiple basic technical levels. Its factually wrong. It didn't take me long to find multiple glaring errors, and I wouldn't describe myself as a graphics wizard. It is obvious that the people writing the graphics paper do not understand graphics, and that criticism of the paper has gone completely ignored
The response from committee members in the case of std::embed seems to be "why would we want this", and yet the response for 2D graphics seems to be "you must prove that people don't want this", with feedback to criticism often genuinely bordering on childish or facetiousness. There's a huge double standard for the level expected around some features that I don't understand, or well..
There's three fairly major problems, as a totally external observer, that I've noticed with the standardisation process. The disclaimer here is that this is totally speculation, as I am not even tangentially involved in the committee process
The process is relatively combative. Some committee members do not provide... constructive or productive commentary, and seem to be unfortunately quite ego driven. Instead of trying to help or engage with proposal, often lazy retorts are used or very general uncounterable points which can be poorly thought through (eg this entire circle business). Emphasise on some though, lots are very lovely and helpful. Graphics has been done to death elsewhere, but its a good case study of committee process gone insane
The actual process itself is insanely exclusionary. There are tonnes of technically adept C++ programmers who are completely excluded due to its format. There's no reason to believe that the current standards committee members are good (or that they're bad), just that they happen to be able to do standards committeeing thing and comply with the demands it places on your schedule and finances - which is vastly different to the way most open source projects or languages work
Some standards committee members are quite famous, which leads to their feedback or proposals being given a high weight. Some proposals proposed by well known committee members often garner a lot of attention over proposals proposed by people who are less well known. 2D graphics alludes to this, stating that the only time it was voted against was when the authors were not present in the room, which is a very odd way for a proposal to progress. I suspect that this makes it harder to kill bad proposals
The whole process needs a massive revamp so that 1. Your finances and location have nothing to do with your ability to propose features, critique proposals, or potentially even vote 2. Proposals are seen as a communal effort rather than an author vs the world mentality with good faith on all sides, and 3. Scrap the paper format entirely
Rust is a really interesting example here - not that all of rust is good, but eg see the way that async was dealt with. It was a communal effort with multiple competing ideas (not authors!), where people were collaborating to attempt to find the solution to a common problem, with the whole community at large able to engage on a sane platform (the internet!) with no financial locational or fame constraints
This is so antithetical to how C++ works, and its by far the largest reason why I potentially want to jump ship to Rust one day. This more than anything else is why I personally suspect Rust will probably win out in the long term in terms of new project adoption, although its still a long ways off that point
I don't know if I'd agree with 'just fine and dandy'. I don't think 2d graphics has made it to LEWG, much less gotten close to being in a WP. You just hear about it a lot because some of the folks proposing it are 'loud' and influential
You're right - there was a vote against it, but its definitely not dead and its still being actively pushed and worked on. My main concern is that it should never have gotten anywhere to begin with, and it absolutely should not have any support behind it. Right from the beginning, Cairo was a genuinely terrible choice for a starting library, and much of the motivation for why it was picked legitimately does not make any sense
I do not understand how its managed to get anywhere at all with so many catastrophic issues attached to it, or how its even able to be pushed still
As a quick example, here are some of the issues that I have discovered
All the colour constants are wrong
All the texture formats are wrong
Fixing the texture formats as-is requires non standard functionality, which this paper explicitly eschews
Linear colour and sRGB are used interchangeably (a major error!)
The definition of premultiplied alpha is incorrect
Premultiplication is probably unusable as-is
The reference implementation is completely wrong in multiple wide ranging ways, and is tested exclusively against its own output (which is incorrect)
Subpixel font rendering is potentially unusable in some cases due to being optional, as well as blend mode issues
Native interop is essentially unusable and should likely be removed
Blending is specified to be as-if linear, but its not clear what should happen if the underlying hardware or drivers mean that the implementation cannot provide this guarantee (driver support can be spotty for eg sRGB textures) in a high performance or non precision losing way
These are 'just' the straight up technical defects - ignoring all the issues around performance, API usability and design, safety (we managed to make a 2D graphics library which is thread unsafe), and everything else! Many of these issues have been present since its inception or completely not noted so far, which has put a major dent in any faith that I have that the people who've been voting on it have really reviewed the work
There are other rather comedic issues as well - eg due to a big API design issue, the only portable way to transfer a file from a GPU to the CPU to poke at the pixels directly is... to save it to disk as a png/etc, then manually parse that png off the disk and decode it. This is probably unfixable in a sane way too due to the way its designed
I'm just so baffled all the way through, I don't know how we got here
I'm not saying you're wrong about the technical issues — in fact my default assumption is that you're right — but FYI,
All the colour constants are wrong
is not a real objection. "It's wrong" is not useful feedback. You have to say how and why it's wrong. (Concisely explaining what's wrong is a skill that improves with practice.)
Separately: in a vacuum, having not looked at the GitHub,
The reference implementation is completely wrong in multiple wide ranging ways, and is tested exclusively against its own output (which is incorrect)
strikes me as a fundamental misunderstanding (on your part) of the concept of "regression testing." There should be tests that verify the behavior of the reference implementation (vX.Y.Z) against the behavior of the reference implementation (vX.Y.Z-1). To verify that vX.Y.Z-1 actually produced reasonable output for the problem domain is a job for a human being. Are you claiming that the existing tests are written against output that is not reasonable?
Your point 10 and "the only portable way to transfer a file from a GPU to the CPU" sound like intelligible issues to me. Your points 4 and 5 and maybe 9 sound at least "verifiable"/"falsifiable" by an expert in the field. The rest sound non-falsifiable without further explanation.
I'm not saying you're wrong about the technical issues — in fact my default assumption is that you're right! But "it's wrong" is not by itself a coherent technical issue.
So: There's a paper (that's finished, just stuck in limbo in the process department) which provides detailed feedback and explanation of all of this which is why I didn't get into it all here - my sole point here is just that there's a lot of very easily discoverable issues. The tl;dr for a lot of this is pretty long though (its a long paper) - once it gets out of process limbo I intend to stick it somewhere in this subreddit, which is the full explanation for all of these issues
Are you claiming that the existing tests are written against output that is not reasonable?
What I meant is that the output of the reference implementation is incorrect, but this what the tests were generated with. Any implementation of the spec which uses these tests (there are 3 backends) is incorrect - they should have generated the test images using a separate known-good library
202
u/James20k P2005R0 Dec 13 '19 edited Dec 13 '19
The C++ standards committee process is insane. That fact that std::embed (completely reasonable functionality that people have been asking for since as long as I've been programming) gets this kind of feedback, but, say, 2D graphics (which nobody wants) is just fine and dandy and we might get a whole TS for it
2D graphics is actually broken. I did a massive review of it (which seems to be stuck in limbo between being finished and putting it wherever papers go to be ignored, which i need to chase up on) and found that its broken. Like incorrect on multiple basic technical levels. Its factually wrong. It didn't take me long to find multiple glaring errors, and I wouldn't describe myself as a graphics wizard. It is obvious that the people writing the graphics paper do not understand graphics, and that criticism of the paper has gone completely ignored
The response from committee members in the case of std::embed seems to be "why would we want this", and yet the response for 2D graphics seems to be "you must prove that people don't want this", with feedback to criticism often genuinely bordering on childish or facetiousness. There's a huge double standard for the level expected around some features that I don't understand, or well..
There's three fairly major problems, as a totally external observer, that I've noticed with the standardisation process. The disclaimer here is that this is totally speculation, as I am not even tangentially involved in the committee process
The process is relatively combative. Some committee members do not provide... constructive or productive commentary, and seem to be unfortunately quite ego driven. Instead of trying to help or engage with proposal, often lazy retorts are used or very general uncounterable points which can be poorly thought through (eg this entire circle business). Emphasise on some though, lots are very lovely and helpful. Graphics has been done to death elsewhere, but its a good case study of committee process gone insane
The actual process itself is insanely exclusionary. There are tonnes of technically adept C++ programmers who are completely excluded due to its format. There's no reason to believe that the current standards committee members are good (or that they're bad), just that they happen to be able to do standards committeeing thing and comply with the demands it places on your schedule and finances - which is vastly different to the way most open source projects or languages work
Some standards committee members are quite famous, which leads to their feedback or proposals being given a high weight. Some proposals proposed by well known committee members often garner a lot of attention over proposals proposed by people who are less well known. 2D graphics alludes to this, stating that the only time it was voted against was when the authors were not present in the room, which is a very odd way for a proposal to progress. I suspect that this makes it harder to kill bad proposals
The whole process needs a massive revamp so that 1. Your finances and location have nothing to do with your ability to propose features, critique proposals, or potentially even vote 2. Proposals are seen as a communal effort rather than an author vs the world mentality with good faith on all sides, and 3. Scrap the paper format entirely
Rust is a really interesting example here - not that all of rust is good, but eg see the way that async was dealt with. It was a communal effort with multiple competing ideas (not authors!), where people were collaborating to attempt to find the solution to a common problem, with the whole community at large able to engage on a sane platform (the internet!) with no financial locational or fame constraints
This is so antithetical to how C++ works, and its by far the largest reason why I potentially want to jump ship to Rust one day. This more than anything else is why I personally suspect Rust will probably win out in the long term in terms of new project adoption, although its still a long ways off that point