What kinds of things is C++ typically used for?
Posted Oct 5, 2022, 4:39 PM UTC
Posted Oct 5, 2022, 4:39 PM UTC
It's typically used for the most serious and performance-critical apps. No other language other than assembler can even come close to it for performance.
What kind of apps are those? I've heard it's meant to be faster than other languages.
I've just been learning it, and I find I get more excited to learn when I have an idea of what I can use it for. Every new concept is a new tool in the toolbox kind of thing, you know?
What kind of apps are those?
You name it: all kinds of apps that control scientific and industrial machinery, most of the core functionality for graphics, computer games, and so on, and even just regular desktop apps where performance is an issue.
It isn't really the first choice for things like web apps, its native libraries don't have a lot of support for stuff like that, though you could write your own functions. But the newer languages have built-in libraries for that kinda thing.
It's also a fair bet that the compilers for all those new languages are written in C++.
C is faster by around 10-20%. It also allows you to keep binary sizes smaller compared to C++, which is especially important for embedded applications. But yeah C++ is pretty versatile and speedy.
Right, although embedded devices are getting more powerful, and can handle somewhat less compact code these days.
Fun fact: the very first C++ compilers were just C compilers with a shitload of macros defined.
Anything. C++ is very powerful.
Do a lot of games use it? Does it come in handy for using existing software? Like blender or something?
Just looking for practical uses for it outside the classroom!
Almost all games are built in a game engine like unity or unreal engine. Unreal engine specifically is very popular and uses c++ but you can also use their blueprints system which can largely (or entirely) avoid c++ at the cost of performance in the end product.
For what it's worth unity, unreal engine, and blender are all written at least partially in c++. I don't think c++ is necessary for working with most programs but my understanding is having c++ on your resume is kinda like a gold star even if you don't necessarily need it for the job.
Desktop applications, timing / performance critical apps
I think coding
Lmao
When you invite cheryk and 2 mates they are her ++
My report card
Attaboy 🤜💥🤛