Hacker News new | ask | show | jobs
by jalino23 1032 days ago
i was thinking of learning cpp for webgpu, this is discouraging
3 comments

Good. C++ is discouraging. It combines huge complexity with readily available footguns, and the prevailing attitude is that all developers must be able to write perfect code with a full understanding of the language. Otherwise any security holes or runtime crashes are their fault.
You are absolutely correct.

Computer graphics, though, is one of the few sane reasons left to learn C++.

Consider learning Rust instead, and use wgpu [1].

[1] https://github.com/gfx-rs/wgpu/

You can do it using whatever you want. I hope I don't discourage you from discovering C++. You might enjoy it, you might not, who cares. Go do it and make up your own opinion.