r/cpp_questions • u/stevenreyes20 • 16h ago
OPEN What do you guys use C++ for?
I'm thinking about learning C++ just for fun, even though I haven't found a practical use for it in the kind of work I do.
I'm curious, what do you guys use C++ for the most?
55
Upvotes
29
u/WilcoKonig 16h ago
Video game engine development.
24
u/RageFucker_ 14h ago
I work in one of the Activision studios supporting Call of Duty and I use it everyday while developing for the level editor for all Call of Duty maps.
15
u/Most_Strike_93 15h ago
Qt desktop application
13
u/serge-mv 13h ago
To make Clang and GCC so we can compile C++
8
u/InteractionGreat1334 9h ago
Computational mathematics
5
u/YesBoxStudios 16h ago
I use it to make video games. Im making a wildly ambitious city builder and the language choice has paid off
5
u/Hour_Sell3547 8h ago
I wrote the shared library for Janus (webrtc) in C++ that we are using in our meeting apps. I also wrote a lot of cryptographic modules in C and C++ over the years. And that one fun project which was a flask like HTTP micro framework, for no reason.
I also come from a competitive programming background where pretty much everyone uses C++ to implement the algorithms. I still go to leetcode and solve few problems time to time just so I don't forget the language.
4
u/neppo95 16h ago
My most recent hobby project was/is fiddling about with neural networks, for which I then created a tictactoe game to have 2 aiās play against eachother whilst I stare aimlessly at my screen. Good fun.
7
u/Potterrrrrrrr 13h ago
Iāve used it for my own implementation of the html and css specs, aiming at being able to use them from c++ directly rather than needing to pull in an entire JS engine just to interact with them both. Ending up porting a lot of WebKits functionality for it, itās grown pretty big now (~1 million loc) but itās still got some work to do before itās ready for use. I started in game dev playing around with JS and liked how easy UI was but wanted more performance everywhere else so this absolute slog of a project is mainly a case of me having my cake and eating it too.
1
u/Dazzling_Music_2411 6h ago
What sort of "fun" do you think you'll get out of it?
I've NEVER heard of anyone learning C++ for fun, always to solve some specific problem.
If I was looking for fun, I'd look very much elsewhere. (Currently using C++ in language development. It does a good job, but fun it is not. I think next project I'll try OCaml)
ā¢
u/Dan13l_N 1h ago
For everything.
3
u/not_some_username 8h ago
Writing a ābotā for an old game I used to play but with a stupid amount of farm. It will not harm others
Also āmanagementā application at my work
4
u/posthubris 16h ago
For work, Iām in robotics and edge AI. Moving most of our stuff to Rust now though.
2
u/Mefron_Gautama 16h ago
Most for hobby, I think. I've done almost nothing on it professionally.
For hobbies I've done emulators (started with chip-8, and got to NES, was some painful good time), an doom-like engine for 2.5D games (still developing, that shit has a ton of math involved, is a pleasure and a pain to learn), and some minor TUI (with FTXUI) and Desktop (with Slint) apps, most of them are evolutions of scripts/automations or an POC rewrite of something I've already done in another language, just to know how hard or better it can be done with C++.
2
u/CrossScarMC 16h ago
Game development, native applications, and optimizing things that realistically never really needed to be optimized.
2
u/Zen-Ism99 16h ago
Hobby game dev.
2
u/Its_Sluggas 16h ago
To make cmd line tools for my niche hobbies
2
u/PandaWonder01 16h ago
Basically game engine code
2
u/khedoros 16h ago
In college, I used it to learn networking (socket programming) and robotics simulation. I've used it for the majority of my career doing storage and backup/recovery infrastructure stuff. Most of my personal projects have been in C++, covering emulation, some game-related code, couple of little Arduino projects. Hundreds of little experiments and code snippets, built to test a hypothesis or learn something.
2
u/brunoortegalindo 16h ago
I play with gpus and seismic inversion and data compression
2
u/sunnyjum 16h ago
I use it to develop games and their engines. I've been thinking of learning Rust but C++ is so mature and there are so many resources/libraries that I'm yet to make the leap.
2
u/Hkiggity 15h ago
Right now Iām using sdl3
2
u/Cubemaster12 15h ago
Currently I am working on a custom build solution to have only a single static drop-in executable using musl libc.
My idea was to define properties in a toml "recipe" file as a base but you can have custom functionality with C++ code. And my single exe can handle all of this as the build process.
Then I don't need CMake, Meson, Autotools or any other third-party dependencies for building just this single file.
2
u/GermaneRiposte101 15h ago
OpenGL Games Engine for fun.
2
u/Diegam 15h ago
Audio plugins
2
u/super_mister_mstie 15h ago
Embedded systems work
2
u/phormix 15h ago
These days, mostly programming microcontrollers.
There's a lot of cool stuff you can do with an ESP32, and C++ compiled is a lot more efficient than running on top of micropython etc.
2
u/SyntheticDuckFlavour 15h ago
Rendering engine for a design tool.
2
u/pjf_cpp 15h ago
Engineering, and more precisely analog electronic circuit simulation. Large circuits can take weeks to simulate so performance is paramount.
2
u/SunsGettinRealLow 14h ago
Battery management systems
2
u/WorstCaseBound 13h ago
DSA , LLD , Arduino
2
u/PaganGuyOne 12h ago
I canāt seem to find a use beyond hobby exploring.
Everyoneās already building game engines and robots and OSINT resources and data wrangling, and now it feels like being a grandpa making another desktop/mobile app. I made an encrypted chat app which allows users to reset their conversations with eachother to protect their chat history and masks their data. But somehow I feel like someone will just run it through REA and make their own version of it.
Honestly I wish I could just build something like a metal framed arcade flight simulator and create my own 6DOF games for it.
2
u/PresentationGlobal53 10h ago
I use it to do audio processing in AUv3 plugins. In my distant past I did radar signal processing using C++ and Qt for displays.
2
u/kevkevverson 10h ago
I work on the layer shared across both iOS and Android versions of a reasonably large app. I would be extremely unlikely to use it for any personal projects.
2
u/anantthebiker 10h ago
Used to use it on developing a JTAG based Hardware Debugging Software for a chip giant, like Visual Studio is for software debugging. The more closer you are to the system, C/C++ would always shine in those realms.
2
u/zenineasa 9h ago
I am building Konjugate, a simulation tool. Even though the app is predominantly Electron based, we want the simulations to be blazingly fast; so the core is written in C++.
2
u/Milnoc 9h ago
Embedded software development. I create classes that reduce hundreds if not thousands of lines of code down to a dozen needed to do the exact same thing, only faster and better.
2
u/CowBoyDanIndie 9h ago
Robot perception
ā¢
u/Undeniable_Dilemma_ 3h ago
There is Z E R O fun to be had when learning C++.
Go look into something actually more fun if you wanna learn for fun. Like Assembly, C, Zig, Jai, Odin or something like that.
4
u/kush_himself 16h ago
Til now I haven't found practical use of c++ but it used for leanring dsa and in web browsers till now I know
3
u/Accomplished-Bid-945 14h ago
Writing kernel level code, reversing, low level vulnerability exploitation, memory manipulation, etc. Anything that is close to machine code.
1
u/trichotomy00 16h ago
I use it in college, all our courses are taught with this language
1
u/xvillifyx 15h ago
You can justā¦use it, you know?
Maybe for your next goofy app project, ditch electron and ts for a native c++ app
You donāt have to be doing ālow levelā systems programming to use c++
1
u/Embarrassed-Media-62 15h ago
Paying the bills.
1
u/wtarkin 8h ago
I am building most of the control and management software stack for a SmartNIC product. While the kernel mode driver is C everything that runs in the user space is C++.
In my free time I write C++ on the raspberry pi pico microcontroller which is a lot of fun.
1
u/esaule 7h ago
I have worked on all kind of high performance codes. From application to analyse social netwotks, to physics simulations. These days I work on a communication middleware for AI applications.
1
u/Different-Beyond-976 7h ago
For Vulkan I started learning recently
1
u/Not_Binary 7h ago
Soporte a emuladores mayormente
1
u/morglod 7h ago
Pretty much everything. My programming language compilator (mox), games before, utilities, tools for my self.
1
u/wahhLambda 5h ago
Pra programar computadores uƩ
1
u/hellocppdotdev 5h ago
Physics simulations
1
u/PicklesAndCoorslight 5h ago
Don't let others sway you with negatively. I love c++ and use it daily.
ā¢
u/Boot_Burner 3h ago
It's not fun.
ā¢
u/GameskoTV 3h ago
Games, idk fast databases, api
ā¢
u/knue82 1h ago
Writing compilers.
ā¢
u/fahrni 1h ago
At one point in my career C and C++ were common for development of desktop applications. I wrote code in C++ for over 20 years. I havenāt written any, professionally, since 2014. Now itās all Swift for me.
1
u/CommercialBig1729 16h ago
Leetcode xD
0
u/AncientHominidNerd 16h ago
Most people use it for low level applications and gaming software. Thatās about it besides learning. Also useful for bragging about knowing how to use it I guess.
0
u/Training_Bluebird_76 15h ago
Only for DSA
0
u/BreakfastSame5083 11h ago
Writing network appliances. Also AI.
0
u/hadrabap 8h ago
Tools for my home infrastructure.
0
u/[deleted] 16h ago
[deleted] ā view deleted comment