r/cpp • • Sep 17 '22

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler

https://github.com/hsutter/cppfront
335 Upvotes

360 comments sorted by

View all comments

113

u/[deleted] Sep 17 '22

I think this trend of experimental C++ replacements (Val+Carbon+cpp2) marks an inflection point.

These are smart and talented people that couldn't push trough ISO. They've had enough and are now looking elsewhere.

11

u/pjmlp Sep 17 '22

Coupled with the trend of AOT compiled managed languages with support for value types and unsafe code, it means C++ might stagnate around C++26 or something, and we will keep using it on specific workflows just like it happens with C today, and that is about it.

Naturally it will still reign for a couple of generations, new COBOL and Fortran code keeps being written today.

2

u/germandiago Sep 17 '22

What do you think would replace C++? Cpp2, Carbon, Rust? A bit of each? I do not see managed languages replacing things like SIMD or HFT or network server infra that saves more dollars the more you optimize it.

16

u/pjmlp Sep 17 '22

A bit of each, not necessarily those.

C++ already lost the 1990's spot on GUI frameworks delivered by OS vendors SDKs, and on distributed computing in the cloud native infrastructure.

SIMD is finally coming to most managed languages.

Most people doing GPU stuff are moving into higher level languages that compile into PTX and SPIR-V.

Those that need ultimate performance on HFT are using FPGAs nowadays, even C++ is too slow for them.

C++ isn't going away anytime soon, just like C is still going pretty strong on UNIX ecosystem, and in both cases the amount of lines of code per overall application architecture decreases.

COBOL and Fortran also have niches of their own.

→ More replies (8)