r/C_Programming • • Oct 18 '26

C limitations

Hi all,

I am currently learning c++. Its okay. Not sexy but also not as bad as some say.

The reason I am learning c++ is that I have read that C has limitations as soon as a project gets more complicated. For example, if you make a scientific calculator with many features like graphs etc.

Trading engines/tools are also not recommended to programm in C.

Since I have not learned C and have only read from some old forum posts etc, I cannot confirm/deny these facts.

I am aware that "everything" is possible and that C++ comes with QoL improvements especially with Classes. But I assume that doesn't mean that someone has to use C only for kernel work. Embedded is also possible with C++ right?

I would appreciate your thoughts and opinions.

The goal of this post is to understand how and if C could fit me more with my goals and what real advantages or disadvantages C has.

54 Upvotes

114 comments sorted by

View all comments

-4

u/I_Messed_Up_2020 Oct 19 '26

As the century progresses I think knowing C++ will give one a more diverse employment landscape.

Here is the view from an AI perspective provided by AI.
Frontier AI models (like GPT-4, Claude, or DeepSeek) are not written in just a single programming language. Instead, building and running them requires a multi-layered software stack where different languages handle different parts of the pipeline:

1. Python (The Orchestrator & Research Language)

  • Role: High-level model architecture design, training loop coordination, data preprocessing, and research prototyping.
  • Why: Python is the default language for the machine learning ecosystem. Frameworks like PyTorch provide Python APIs that researchers and engineers use to define neural network layers, set up attention mechanisms, and orchestrate massive training runs.

2. C++ (The High-Performance Engine)

  • Role: Core runtime operations, memory management, and production inference.
  • Why: Python is too slow and has too much runtime overhead (like garbage collection) to efficiently drive thousands of GPUs at scale. Underneath the Python code, frameworks like PyTorch rely heavily on a C++ core (such as ATen) to execute heavy lifting. When deploying models for real-time user inference, C++ is heavily used to minimize latency.

3. CUDA & Triton (The Hardware Accelerators)

  • Role: Custom GPU computing and kernel optimization.
  • Why: Training frontier models requires squeezing every drop of performance out of clusters of tens of thousands of NVIDIA GPUs. Engineers write low-level CUDA C++ or use domain-specific languages like OpenAI's Triton (which lets developers write GPU kernels in a Python-like syntax) to custom-fuse mathematical operations, optimizing how data moves through GPU memory.

Summary

If you look at a frontier AI lab's codebase, you will see a blend: Python on the surface to glue experiments and training scripts together, driven by C++, CUDA, and Triton underneath to handle the blistering computational demands of matrix multiplication at scale.

3

u/noobyscientific Oct 19 '26

What are you even talking about.

2

u/LordRybec Oct 19 '26

Not sure responding to a lazy "I asked the AI" comment is worth the effort. I ask AI stuff a lot, and 99% of the time it misses a lot of things and says at least a handful of things that are wrong. On top of that, the OP could easily have asked the AI themselves, if they wanted a low quality, canned answer, based on random garbage inexperienced people say.

C++ currently has a larger job market than C, but the C++ market is constantly bleeding people to newer, more popular languages. The C market has largely already bled off what it was ever going to, to C++, so the C job market is probably going to remain more stable in the long term, while the C++ job market is going to continue to bleed off people to languages like Python, Erlang, Ruby, Go, etc... as those languages improve in performance and as technology gets faster so that performance and memory differences matter less.

Of course, that assumes that things will stay largely the same in terms of what kinds of applications are being made. I suspect that this will not happen. In fact, I already see a shift starting in consumer purchasing habits as well as business applications for computing equipment. What I'm starting to see is a general shift away from high power, general purpose computing devices and toward lower power special purpose devices. A decade or so ago, if someone wanted voice control they would have designed an application for a desktop or laptop computer. In fact, that's what Cortana was, along with some of the other "voice assistant" software. Most of those weren't popular enough keep developing. MS has already abandoned Cortana, and other major voice control software has largely been moved into special purpose devices, like Alexa. Communities of people rolling their own special purpose systems, like "writerdeck" systems, are growing, as people realize that they are more productive on a single-purpose system that does not have built in distractions. Raspberry Pis are making this extremely easy, but they are massive overkill in most cases. People building single purpose devices have been shifting toward cheaper, less powerful microcontrollers like the RP2040 and RP2350 (and for midrange, the Pi Zero and Pi Zero 2 systems are so popular that they are currently out of stock nearly everywhere except scalpers who are charging 6+ times the price). The lower level you go, the closer you get to C. A lot of these can be coded in C++, but single purpose systems rarely require such complex code that C++ has any advantages, and people looking for the cheapest system they can built are going for the lower memory and better performance of C.

So if we consider the current trends in computing, it actually looks a lot like modern technology is starting to move away from the kind of massively powerful systems with tons of memory that C++ is better suited to and is starting to move toward a larger number of smaller, cheaper, more compact devices that each do just one thing but do it extremely well, and C is pretty much the best language for that, once you get past the hobby level. It's currently mainly hobbyists driving this, but as hobbyists show off their devices, I'm seeing more people who are not technologically inclined asking where they can get their own. There are already companies trying to fill these markets, but they are struggling to keep up, because they are using languages like C++ that require them to use significantly more powerful hardware than is strictly necessary. You can get a $200 writerdeck with C++ software, but I can make the same thing for under $30 (I'd have to charge around $70 or $80 to cover my time) if I use C, because I can use a much cheaper processor, and mine will do more than the $200 one (like, make it easy to transfer files to your desktop or laptop for publication). Cyberdecks are starting to take on practical uses rather than just being decorative, and again, demand is increasing. I'm currently working on some projects using ultra-low resource microcontrollers, precisely to get into this market while it is still fresh, and I have some friends who have already developed and are now selling single purpose devices mainly programmed in C or light C++ (light meaning few or no objects and avoiding the use of features with high resource costs). If my business ends up getting off the ground within the next 5 years or so, I'll probably be looking to hire C programmers, not C++ programmers, because microcontroller cost will a significant factor as production scales up, and I can use much cheaper and lower power (in terms of energy, which means much longer battery life) microcontrollers if the firmware is written in C.

This is something the AI can't predict though, because it only has the past to work with, and it is trained on past data not on what is currently happening in real-time. Further, when you ask the AI something, it has maybe 20 seconds to search the internet for relevant data, load it, analyze it, etc... On the other hand, I've been watching these communities that are often hard to find for years now, and I can see what's going on within this field in general more clearly than an AI that is trained in everything and thus specializes in nothing.

The reality is, people have been calling C a dead language for over 10 years. It's not even close to that, but the AI only knows what it sees, and more people are incorrectly calling C a dead language, because they aren't aware of where or how much it is still used, so that's what the AI will echo. If the majority of things people claim online or in writing are wrong, and the AI is trained on that, the AI will also be wrong, because it is only repeating what it has heard. Relying on generalist AI for predictions of the future in specialized fields is extremely unwise, because it will be wrong the vast majority of the time. AI is not some kind of prophet, so quit treating it like it is!

2

u/kat-tricks Oct 19 '26

fucking meat proxies...