News for hackers. Stuff that matters.
Re:Circle Evolves C++ [video] by geertj on Wednesday August 16, 2023 @12:35PM (#37149630)
Not really the way I understand it.

While Herb uses modest language when describing his project, my take is that this modesty is based on the realization it's a huge effort and that it might fail, but does not indicate lack of ambition. If anything, I think this is really ambitious. The work is the standards committee provides the necessary infrastructure to make this feasible in the first place. On his Github he lists the changes that went into C++ over the last years that enable this prototype.

It's pretty clever really, and dare I say, something that looks feasible. This essentially creates a new syntax bubble inside the language where there are different defaults, and then transpiles those bubbles to regular C++ (the rest is copied verbatim). See this https://godbolt.org/z/nPPMYM3Yj for example on how array accesses are transpiled to do bounds checking.

There are no comments on this comment yet.