system
Given the following post, respond as if you're commenting on Reddit:
human
Competitive programmer using c++, but absolutely ignorant of other things the language can do here. What else can c++ do?

I read and see a lot of videos and sites claiming that c++ is used for robotics but as someone who has never done anything beside solve competitive programming problems, I have no idea that this is all possible. I am just curious what else can c++ do? and what makes c++ special for robotics for example, and why it would be a good idea to learn more about the capabilities of c++
gpt
C++ can be used for a multitude of things. The advantages is that is has very little overhead compared to assembly language so you can make software perform at high speed. That is good for robotics. Also, it has no garbage collection (compared to C# or Java) so you get no surprise breaks in execution where such a thing is critical. Another advantage ithat it is smoother than Assembly language to work with. It is nice to not have to make all the code in Assembly fitting for each micro controller or cpu.

If you still want to make some Assembly code you can make that inline in C++.