r/cprogramming • • Aug 11 '26

Why C when javascript already exists?

0 Upvotes

32 comments sorted by

View all comments

Show parent comment

1

u/nerd5code Aug 11 '26

That’s a browser API, not a PL or part of JS per se, and irrelevant to boot. C has libraries that’ll drive graphics, too, and I’d bet WebGPU is in part based on OpenGL ES, in which case fat fuggin' chance you're programming shaders in JS.

Most shader languages post-2000 are a variant of C or C++. I wonder why that is?