zxxon
>> The code that current C compilers don't generate, many times is related to taking advantage of UB
Compilers are really smart in optimizing things that aren't relevant to the real world.
For example, this code would reduce to "return 32" in most modern compilers:
int return32(){
int x=1;
for (int i=0; i<5; i++){
x*=2;
}
return x;
}
Does that make impact in real-world code? Almost certainly not, it's a contrived case. Most UB cases fall into the same category.>> They also generate extra code for handling stuff like floating point emulation though.
Not necessarily.
Simpler languages like Fortran can turn into even faster code than a C implementation. UB optimizations aren't that relevant for real-world performance.
The thing is, such practices also damage the self-image of the hire in question. Am I being hired for my abilities, or for being a number in some statistic?
The thing is, some programmers really are socially inept and CS work is one of their last refuges. That includes a bunch of socially inept women, too! Let's not disturb their natural habitat by bringing all these overly social people in, those will thrive in many other places as well.
That's not "the truth", that's your experience in the amusement park that has been created for the pampered developers of the current dotcom bubble at companies like Google. Enjoy it while it lasts.
Regardless of gender, I'd rather have the doubters weeded out by an unrealistic negative perception than have them lured in by an unrealistic positive one.
A simple DOM representation could be used as a fallback, if possible.
... but they are not built on an abstract retained mode API. That would be the wrong level of abstraction for a Web API that people can build on properly. I think that's the point here.
Unfortunately, Web APIs tend to be far too high level while missing out on low-level hooks, like the disaster that is Web Audio (and media playback in general).
This is also the reason why they are a pain in the butt to use, at least from the perspective of an IMGUI advocate. Those people usually have a game development background, so they're used writing bespoke solutions for everything.
Statelessness is a strength but also a big weakness, I doubt IMGUI will ever catch on its pure form. However, tools like React provide a fairly similar experience and they do produce object trees usable for screen readers. The missing piece here is something like a lightweight DOM for C/C++ projects.