What sort of programs do we use C++ instead of Java or C# to make?

Quora Feeds

Active Member
Sergey Zubkov

  1. programs that run in resource-constrained environments: Java and C# can't handle running out of memory and aren't easy to use when the program has to handle running out of threads or sockets.
  2. programs that run under hard real-time constraints, like airplane flight controls, which have to guarantee a deadline.
  3. programs that have to use everything the available hardware can offer. This is usually important to large companies, like Amazon or Bloomberg, since at small scale or without competitors, the overhead of managed languages is often justifiable. Video games fall into this category too.
  4. portable programs (e.g. Dropbox and most other top mobile apps are mostly written in C++ in order to be energy-efficient and portable across all mobile platforms)
  5. large-scale software infrastructure: although Java and C#, with careful engineering, can probably work past 100 MLoC too (did you know there's a limit on how many jars you can put in a manifest?) , all large codebases I know of are C++.


See Questions On Quora

Continue reading...
 
Top