If he was looking for a better C, Zig definitely fits the bill.
If he was looking for a better C, Zig definitely fits the bill.
It also aims to displace C++ when that's used in the same space, but in the sense that that's ground C++ gained from C, well C is the real target, if it can displace C there it can quite naturally displace C++ as well.
The other domains where C++ was strong for general purpose applications have been taken over by managed compiled languages like Java and .NET, which anyway make use of C++ libraries alongside their AOT/JIT compiled stacks.
There is little value to add from Rust in such scenarios, e.g. it won't make my WinUI application, CUDA shader or weather simulation model, any more safer than they already are.
CUDA supports C++ since version 3.0, and NVidia designs the cards to follow C++ semantics, regardless of the polyglot capabilities from PTX.
Hardly an afterthought, it was Khronos that became surprised that most researchers don't want to use plain old C on their research efforts.
"CppCon 2016: “Bringing Clang and C++ to GPUs: An Open-Source, CUDA-Compatible GPU C++ Compiler"
https://www.youtube.com/watch?v=KHa-OSrZPGo
"CppCon 2019: Olivier Giroux “The One-Decade Task: Putting std::atomic in CUDA.”"
https://www.youtube.com/watch?v=VogqOscJYvk
"Octane render. The Future of GPU Rendering: Real-Time Raytracing" (with CUDA)
https://www.youtube.com/watch?v=wGTIGjgXs6M
NVIDIA HPC SDK