> why all these groups of people decided to start from scratch than to put up with the C++ committee In which the C++ committee continues to not acknowledge that its problem is being a committee , in the most ridiculously bureaucratic sense of that word. If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and…
Soursop and Ponies in Kona: A C++ Committee Trip Report
41–50 of 69 posts
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#42The biggest memory safety problem for C is array overflows. I proposed a simple, backwards compatible change to C years ago, and it has received zero traction. Note that we have 20 years of experience in D of how well it works.
https://www.digitalmars.com/articles/C-biggest-mistake.html
It'd improve C++ as well.
I really do not understand why C adds other things, but not this, as this would engender an enormous improvement to C.
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#43> One of the concerns is that C and C++ are being discouraged for new projects by several branches of the US government[1], which makes memory safety important to address. The biggest memory safety problem for C is array overflows. I proposed a simple, backwards compatible change to C years ago, and it has received zero traction. Note that we have 20 years of experience in D of how well it works. https://www.digitalm…
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#44Fully agree with #embed. I don't really need the feature often enough to justify it. But it feels fine to use the preprocessor for it. It's annoying enough for the people who need it to have some build-system work-around, so just some simple straight forward implementation seems better than some over-specified solution for every possible use-case (imagine the horror of some template construct with locales/encoding sp…
I think C++ would have been better off with a closer equivalent to include_bytes! (Rust's compiler intrinsic masquerading as a macro, which gives back an immutable reference to an array with your data in it) - but the C++ language doesn't really have a way to easily do that, and you can imagine wrestling with a mechanism to do that might miss C++ 26, which is really embarrassing when this is a feature your language ought to have had from the outset. So settling on #embed for C++ 26 means it's done.
I was concerned that maybe include_bytes! prevents the compiler from realising it doesn't need this data at runtime (e.g. you include_bytes! some data but just to calculate a compile time constant checksum from it) but nope, the compiler can see it doesn't need the array at runtime and remove it from the final binary just as a C++ compiler would with #embed.
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#45Still hoping for compile time introspection/reflection for class serialization. Whichever language implements it first (C++ or other) I'm all in on. I come from a scientific background, where running code on data gathering machines, and writing it out, then reading it back in later for analysis is 90% of what I do.
What about making JSON that reflects the class structure and serializing that?
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#46Still hoping for compile time introspection/reflection for class serialization. Whichever language implements it first (C++ or other) I'm all in on. I come from a scientific background, where running code on data gathering machines, and writing it out, then reading it back in later for analysis is 90% of what I do.
Have you checked out the PFR library (perfect flat reflection)? I've coupled this with the magic-enum library to good effect. PFR can be rewritten in very little code, assuming c++14(?); magic-enum is long enough to just use. I generally have one TU for just serialization, and don't let PFR and magic-enum "pollute" the rest if my code. This keeps compile times reasonable. (The other is to uniquely name the per-type s…
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#47> why all these groups of people decided to start from scratch than to put up with the C++ committee In which the C++ committee continues to not acknowledge that its problem is being a committee , in the most ridiculously bureaucratic sense of that word. If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and…
> If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and then having endless meetings about it that could have been emails, some of which I have to physically travel to, I can't be bothered. I've left actual paying jobs over that, I'm not doing it for free. If most people wrote papers that were so perfect in…
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#48> why all these groups of people decided to start from scratch than to put up with the C++ committee In which the C++ committee continues to not acknowledge that its problem is being a committee , in the most ridiculously bureaucratic sense of that word. If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and…
That quote you cherry picked is literally in a section talking about how hard it is to get into the committee and how slow the committee is. So no, they are not failing to acknowledge that. It's literally the point of the quote you're responding to.
The "look at this pretty place I got to go to" picture immediately after that section does nothing to help this impression.
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#49> why all these groups of people decided to start from scratch than to put up with the C++ committee In which the C++ committee continues to not acknowledge that its problem is being a committee , in the most ridiculously bureaucratic sense of that word. If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and…
> If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and then having endless meetings about it that could have been emails, some of which I have to physically travel to, I can't be bothered. I've left actual paying jobs over that, I'm not doing it for free. If most people wrote papers that were so perfect in…
Re: Soursop and Ponies in Kona: A C++ Committee Trip Report
#50> why all these groups of people decided to start from scratch than to put up with the C++ committee In which the C++ committee continues to not acknowledge that its problem is being a committee , in the most ridiculously bureaucratic sense of that word. If the only way to get my contributions accepted into a project involves writing a paper about it, sure, I can do that. If it involves writing a paper about it, and…
Making it easier to add more features to C++ can't fix the problem of being unable to simplify the language by removing unsafe and legacy features.
If they wanted C++, but only hated the committee process, they'd have forked the language and worked on compiler extensions (like WHATWG bypassed W3C process). But instead they all went for clean slate with some level of interoperability.