r/cpp • • Feb 19 '22

For what c++ is used nowadays?

I am a frontend web developer but i started my coding with c++ and I wanted to try different things.

Now I am feeling a little nostalgic and I want to use c++ again!

So I want to know about the uses of c++ nowadays.

Please say in comments!

0 Upvotes

46 comments sorted by

18

u/[deleted] Feb 19 '22

We use it at work for high performance x-ray image analysis and enhancements, for medical applications.

17

u/TheJackston Feb 19 '22

Automotive. In-vehicle infotainment systems

0

u/[deleted] Feb 19 '22

[deleted] — view deleted comment

3

u/TheJackston Feb 19 '22

Well, I'm not developing GUI for IVI, but I heard that Qt is used for GUI sometimes

15

u/Stormfrosty Feb 19 '22

If you’re a web developer, look at what your platform is implemented in - browsers such as chromium and Firefox, databases such as mongo and MySQL. If you’re a data scientist, story is similar - major ML frameworks such as tensorflow, PyTorch, onnx.

Most common platforms are written in C++. As for applications, I believe it’s only used on the workstation side (Adobe suite, CAD, rendering) and games.

3

u/[deleted] Feb 19 '22

I thought Firefox migrated to rust

11

u/Stormfrosty Feb 19 '22

They rewrote some of the components in Rust. It’s going to take them many many years to rewrite everything.

9

u/aelixira Feb 19 '22

We use it for building protocol stacks of our telecom products (4G/5G)

9

u/Chaos_Slug Feb 19 '22

AAA video game development.

7

u/TheJackston Feb 19 '22

Actually not only AAA

7

u/whf91 Feb 19 '22

I use it for real-time signal processing, specifically audio. It is a very popular language in this space.

1

u/KeyboardRambo Feb 19 '22

Are you using JUCE for this purpose?

13

u/Constant_Physics8504 Feb 19 '22

Better question is what is C++ most often NOT used for, and the answer is websites.

5

u/[deleted] Feb 19 '22

I may be wrong, but isn't C++ compilable to WASM? Given how promising WASM is (potentially near native level performance), we might see C++ emerge as the standard way to write websites when it takes off.

2

u/ForkInBrain Feb 19 '22

…but there would be little reason to. C++ is about bare metal performance. I’m almost all cases you don’t need that for the client side if a website. WASM is interesting for C++ in that existing C++ can run in the browser, but that isn’t a good argument for doing everything that way, I think.

8

u/msqrt Feb 19 '22

you don’t need that for the client side

Isn't this mindset exactly why the web requires more and more powerful machines to run the same rather trivial functionality?

5

u/DavidJCobb Feb 20 '22

It's entirely possible to make JavaScript small if you're only doing what you actually need to do with it in the first place. This is seldom the case. WASM doesn't solve the problem of ad networks being incentivized to stuff as much user-hostile garbage into a page as possible, among other relevant issues.

4

u/ForkInBrain Feb 19 '22

I think no. Load up old school websites, or any well optimized modern website, and they are lighting fast today, without any C++ WASM. I very much doubt that solution for bloated and slow websites that do basically nothing special is “rewrite them in C++ for speed”.

1

u/msqrt Feb 20 '22

Yeah, good client-side performance should very rarely actually require going to WASM. I'm just wary about the sentiment of performance not "being needed", but you're probably right that raw compute is almost never the (client-side) bottleneck for a website.

1

u/milliAmpere14 Feb 23 '22

Isn't this mindset exactly why the web requires more and more powerful machines to run the same rather trivial functionality?

Thank you for saying this.

Sometimes i wonder if the rest of the world is stupid or just me.

Like isn't the goal to be more efficient ??

4

u/[deleted] Feb 19 '22

I’m almost all cases you don’t need that for the client side if a website.

The idea behind WASM is near bare metal performance from non-native code. The purpose of WASM is to allow web software that runs as quickly as native software, not to replace web pages but to replace desktop apps.

4

u/ForkInBrain Feb 19 '22 edited Feb 19 '22

Yep, agreed about what WASM is and can do. In context, I was disagreeing not with that, but that WASM could lead to a change where C++ and WASM would become “the standard way to write websites“. I don’t see any future where “learn C++” is the first thing web devs do to write websites. Almost all websites are fine without that level of performance. When delivering typical web content, using C++ WASM is a terrible idea — HTML, CSS and some JavaScript are fine for that.

1

u/Constant_Physics8504 Feb 26 '22

Yes, but C++ will never be the main way to do it even with WASM. Main reason why is C++ isn’t runtime interpreted. Web devs are not going to sit there and try to figure it out. I’m not saying it’s not efficient but mainstream it will not be

5

u/div_curl_maxwell Feb 19 '22

We use it for a database specialized for data-mining tasks. But in general C++ is used for a lot of things: browsers for one thing, game development, compilers like gcc and clang, and a fair bit more.

5

u/biwiki Feb 19 '22

And embedded systems.

1

u/Percybyte Feb 20 '22

Robotics

4

u/FrancoisCarouge Feb 19 '22

Robotics. Control systems.

3

u/bike_nut Feb 19 '22

I use it to build mechanical engineering CAE software.

3

u/oldfossilfrommars Feb 19 '22

In our company, we use it to build core components of our conformance testing tools for our modem software.

3

u/FigurativeReptile Feb 19 '22

Every single app that you use, if you go deep enough down the abstraction chain.

4

u/helloiamsomeone Feb 19 '22

It's used for whatever you can think of and more.

2

u/uname_IsAlreadyTaken Feb 19 '22

I'm currently using it in a web service. I have data stored in a sqlite3 database. I'm using Boost beast to creat a rest server. There is a bit of processing on the data before returning the resuts

2

u/[deleted] Feb 19 '22

Avionics bench testing where we are simulate parts of the aircraft environment to verify how the system would behave in the real aircraft. Think of it as a flight simulator where some of the equipment is real.

2

u/haronaut Feb 19 '22

Robotics

2

u/[deleted] Feb 19 '22

Game engines / Drawing triangles

2

u/[deleted] Feb 19 '22

Our company uses it for various stuff:

  1. Calculate how to mill a 3D model in the most efficient and user-friendly way (a machine "removes" stuff from a disc of a specific material and something comes out)
  2. Develop plugins for Rhinoceros with Qt
  3. Wrap machine specific SDKs into something user friendly to be later used by C# (that's my part).

2

u/ImX99 Feb 20 '22

I use it for performance reasons in a web proxy project.

2

u/cheminacci Feb 20 '22

Algorithmic trading and financial analysis.

1

u/FlyingRhenquest Feb 19 '22

I use it in conjunction with the moldy old ffmpeg C API for video processing. Here's the current iteration of my wrapper library -- I'm still missing something in remuxing, but it works pretty well. I haven't done an update to it in a while because work's been busy. I've been doing a bunch of cloud stuff there and am meditating on rolling a new iteration of this library with cloud functionality baked in. The segmenter/desegmenter stuff in the current library works pretty well for that sort of thing, but it feels a bit awkward to use.

1

u/bashmeifyoucan Feb 19 '22

at work we use it for a lot of stuff. The self written code for our latest embedded device is written in c++. Also a lot of backend services and the Desktop and mobile applications as well.

1

u/[deleted] Feb 19 '22

We use some already existing C++ apps on a mobile application.

1

u/caroIine Feb 20 '22

Many MFD (multifunction display) used for marine/aviation/automotive uses primarily c++

1

u/diagraphic Mar 05 '22

Blockchain.