upvote
I think C++ very likely might still be the choice for GPU stuff or trading or any kind of number crunching, maybe also game engines

but it really doesn't matter since it's such a niche area. Rust doesn't need to take these over, there's really no any need to

but the vast majority of old C++ was simply general purpose stuff like web servers/backends/databases etc. and now it's more of a liability to use it, especially for a backend with untrusted clients interacting with it

for games, probably it'll be hidden behind FFI, like a lot of it already is like in the ML space

reply
Unless they turn around, even Epic is downgrading their C++ support with Unreal 6, all gameplay code will be a mix of Verse and AI, Blueprints and C++ are out.
reply
For low latency trading, C++ templates and constexpr are the significant unique selling points. If Rust gets at least equivalent or better functionality, then there's not much reason to continue using C++. Other opinions may differ.
reply
> Any language that gives you consistent “pythonic” standards and compile time “if it compiles it runs” guarantees (or tries to) seems to perform VASTLY better with AI than the ones that can’t.

So Nim?! ;) At least my AI agents seem to be able to build very quickly with Nim. The performance is generally on par with c++/rust. Though Nim sits much closer to the if it compiles it runs side of things.

I had Claude literally one shot a GUI demo app in Nim the other day. It compiled and ran like a charm first try! I was pretty happy with that.

Theres advantages that C++ has over rust still with const exprs and template specialization, which Nim shares as well. IMHO, thats the sweet spot. Rust might get there one day.

reply
I mean to be fair I use F# and after the initial "It has no idea how this language works because its not JS/Python" phase about a year ago it's been wonderful.

Pretty much anything that fits the pattern though seems to do quite well and I suspect AI will help these languages.

Of course that's before crushing them because "why in the hell would i use <niche lang>" when the AI can just pick something from the common toolkit like rust/TS/python.

I am curious if someone is going to use an LLM to take 2 something at assembly level and get as close to bare metal as possible but still with guarantees, or something like that.

Then again I'm the moron who figured I'd do AoC this year in Uiua so you know, grain of salt.

reply
what AI literally does is make unobservable language/code level differences between languages irrelevant.

compile times, code/codebase size, and obviously the observables in the final product (memory usage and runtime performance, security) will matter. but the actual code is next to irrelevant, assuming that AI can work with any language at about the same level.

rust still loses on all of these except security. it doesnt matter if in practice rust only loses by 0.5% on perf because the core libraries everyone uses just aren't optimized enough - as long as that changes, certain applications (e.g. those that dont care about the built in compile time security and are happy to fix it up in cpp with AI loops), those projects wont switch to rust.

compile times are especially horrendous btw. hard to think someone came up with a language that takes even longer to compile and iterate on than cpp .

reply
Rust still has the issue that its reference compilers depend on C++ tooling.

Until it is fully bootstraped, it can't fully replace it.

Note that LLVM and GCC are the few projects that have a similar level of contributions as the Linux kernel.

reply
Why would you think this is an issue? Replacing LLVM with something written in Rust is immaterial to Rust's success for developing any other project than LLVM.
reply
Because that is the usual hype from Rust Evangelism Strike Force of 100% C++ and C replacement, while forgetting the small detail regarding the compiler itself.

As user of managed languges whose runtimes have enough C++ under the hood, I am perfectly aware that as much as I would like them to be fully bootstraped it will never going to happen for various kinds of reasons, not really technical ones, rather economic, human, historical baggage kind of stuff.

Which doesn't seem to be the case every time we get those RIR advocacy posts, and that gets tiresome on the audience.

reply
So it's an imaginary problem that an imaginary person has.

Still looking forward to meeting this mythical Rust Evangelism Strike Force. I keep hearing about how prolific and intrusive they are, yet somehow they seem to have left the room just before anyone sees them, every time. It's curious.

reply
Then you have not been reading enough "XYZ rewritten in Rust" blog posts and related comments.

Or how they managed to push ThePhd and Actix-Web original author away from the community.

The WG14 and C has a lot to thank for having ThePhd refocus on C.

reply
It will last forever now that LLMs are around to detect and describe ways to fix c++ gotchas.
reply