Top
Best
New

Posted by simonask 9 hours ago

C++ Needs to Catch Up(www.vinniefalco.com)
197 points | 201 commentspage 5
tonyhart7 7 hours ago|
"C++ is the language of AI because PyTorch, TensorRT-LLM, CUDA, and llama.cpp run underneath"

ok, this is sad

topspin 7 hours ago||
I think an example of non-dysfunctional C++ that supports the arguments in this post has to be what Espressif has done with ESP-IDF. Much of the power of that platform is found in the working package management, endemic CMake, FreeRTOS batteries and uncompromising CLI tooling. These work together smoothly and much of the workflow that the post wishes existed for conventional C++ is found in ESP-IDF. AI absolutely thrives in ESP-IDF.

It isn't flawless. Builds can take longer than one would wish, for one thing. But you can haul in a dependency with one line of CMake, use whatever FreeRTOS facilities you need to do whatever you need done, build, flash and it "just works." All I know is that if non-embedded C++ worked like that, C++ would be in a much better place.

rramadass 5 hours ago||
The article only states that the author doesn't like std::execution, thinks coroutines are the bees knees, the tool ecosystem around C++ is not unified (like for Rust) and hence some trouble to setup, some criticisms of the standards committee (everybody has an opinion) and that's it.

And yet people are reading what they want into it.

There are tons more code in C/C++ than most other languages and given its origins there is bound to be some difficulties since it started out with different assumptions i.e. the onus is on the programmer to put together everything. Since it is already being modernized (albeit slowly) i really don't see the hoopla around gloom and doom.

AI workflow is being optimized around tooling which is certainly better for other modern languages but in no way is it a hard limiting factor i.e. C++ will soon be made "AI-friendly" even though not standardized. If there is one thing i can say for the standards committee they do understand current sentiments/needs and do work towards making C++ better to fit in.

r2vcap 7 hours ago||
[dead]
Jasonsf737 8 hours ago||
[dead]
qmplayveil 5 hours ago||
[dead]
Woshiwuja 8 hours ago||
[dead]
mk89 8 hours ago||
My experience with LLMs: by default they choose Rust (backends, clis, etc.), Javascript (front-end), or Python (scripts, etc). .

It's hard to catch up when new software is vibecoded.

unglaublich 8 hours ago|
And why wouldn't they? All these languages have quite good error-reporting, linting and static analysis, debugging and runtime introspection features.

With C++, you first have to resolve your linker and crypting template compilation errors, wait forever to build an app, get a debug build, attach a debugger, and navigate even more cryptic symbols and stacktraces.

The core language requirement for agentic software development is that the iterative loop is fast and informative. Apply small delta; feedback; loop. The loop in C++ is too involved, slow, and uninformative.

samiv 7 hours ago||
You're right about the compile time. What helps a lot though is (and what I personally do) continuously build while I keep on editing the code. Keep the edits unsaved in the editor buffer as long as the build is still running.

Having small unit test apps that you can build quicker and debug quicker than the "main app" also helps.

tontinton 9 hours ago|
Or not? who cares about deprecated tech?
dwb 8 hours ago||
Deprecated by who?
antonvs 7 hours ago||
Developers who’ve collectively left it behind.
dwb 4 hours ago||
And what authority or weight do they have? C++ is far from a niche language, however much anyone might want it to be.
adev_ 9 hours ago|||
> who cares about deprecated tech?

The "deprecated tech" is probably powering multiple devices with you in your room right now. Multiple airplane passing ion top of your head right now and the cars in front of your street.

There is tremendous incentive to modernize and support C++ for the next 20y.

The world is more complex than "Judt rewrite in Rust".

TuxSH 8 hours ago||
Also the Nintendo 3DS and Nintendo Switch 1 and 2.

It's pretty nice for dependency-less monorepos.

WelkinFolk 9 hours ago||
Tonnes of people do. Some, purely so because they love it.

Strange POV to have towards anything.

rapsey 9 hours ago||
I think most are bitter for developing skills over decades that have been made irrelevant in Rust based codebases that are becoming ever more popular.
hnav 8 hours ago||
Knowing C++ is a huge leg up when picking up Rust since you already understand memory ownership. There's also a problem in the Rust community in the sense that a lot of it is dilettantes from the ruby-on-rails world.