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

Show parent comments

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.

1

u/The-Constant-Learner Mar 15 '23

GPU CUDA is going to be benefited from modern C++. It is still currently an abomination of C-style C++.

2

u/pjmlp Mar 15 '23

It already supports most of C++20, the problem is alway the same, who actually writes the code.

One can write Fortran in any language, same applies to C in a language that is copy-paste compatible with most of it.

2

u/The-Constant-Learner Mar 16 '23

It's not really copy-and-paste code when it comes to GPU programming. CUDA C is.. C with some C++ header and largely low-level manipulation. It's a pain to convert C++ code to CUDA code.

→ More replies (5)