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

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.