back

by raphlinus·4y ago·view on hn ↗
While it has roots in C, I think it's better to consider it a separate language, especially in more modern forms (Metal is C++14). Metal is locked into Apple's proprietary platforms, but there is other work in compiling C++ to portable shaders, particularly Sean Baxter's Circle, as well as some academic work[1].

There's also of course rust-gpu. I think it's fair to say that in 5 to 10 years we will no longer be writing shaders in C, but will have moved on to a higher level language.

[1]: https://arxiv.org/pdf/2109.14682.pdf

1 comments
Python has roots in C, but you can still write valid compilable C alongside C++, so I'm not sure what you're trying to imply.

Sure it's another language, but the C at it's core isn't going anywhere.