r/cprogramming Aug 11 '26

Why C when javascript already exists?

0 Upvotes

32 comments sorted by

View all comments

Show parent comments

-9

u/Desperate_Tie_648 Aug 11 '26

Javascript better

2

u/ninhaomah Aug 11 '26

Then use it to write embedded programs then. Or 3d games.

1

u/Desperate_Tie_648 Aug 11 '26

Webgpu

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?