| ▲ | zarzavat an hour ago |
| C++ is dying. The only thing keeping it going pre-AI was the large number of experienced C++ developers who had invested decades into learning the language, and I say this as one of those people. AI makes it easier to write new code in Rust, easier to rewrite old code from C++, and easier to exploit C++ code. There's no way back for the language, inertia will carry it for the next 10+ years but its eventual irrelevance is a certainty. |
|
| ▲ | fwsgonzo an hour ago | parent | next [-] |
| Indeed. I've converted one of my projects to Rust via LLMs and it was completely painless and ~same performance. LLMs found a swathe of issues that I ended up porting back as well. I still maintain the C++ library, but it's mostly for my own and existing usages now. I think newer projects will be looking for the Rust crate. I've also noticed that LLMs are doing better with Rust overall: Building, testing, formatting, linting and publishing is all standardized. As it should be. LLMs are quite good at hand-written assembly though, so my C++ library still has a large lead for platforms where that work is done. I can probably port that to Rust as well, but I did start out with forbid(unsafe). |
| |
|
| ▲ | ChrisRR 20 minutes ago | parent | prev | next [-] |
| I can't see it going anywhere soon. The amount of existing projects in C++ still need developers |
| |
| ▲ | windward a few seconds ago | parent | next [-] | | What kind of existence? COBOL and Ada 'exist'. The machine already knows the CPP core guidelines better than any human, so you won't be able to drop in on a project as a consultant just from knowing the language well. There's a project I once worked on that would be unfeasible to rewrite because there is so much unwritten about how it should perform - there are too many features and targets to test exhaustively. But that company already did layoffs pre-AI, because it already didn't take many devs with domain knowledge to keep it ticking. That project won't demand much language support and an industry of these projects won't be desirable to work in. | |
| ▲ | neuwirth 3 minutes ago | parent | prev | next [-] | | We live in a world where the labs are still training on Fortran! If Fortran hasn't gone C++ won't either. So no, it isn't going anywhere soon, just by nature of being an incumbent. | |
| ▲ | trinix912 11 minutes ago | parent | prev [-] | | They've been saying C++ is dying for decades now but it's still here with (almost) all its problems :) |
|
|
| ▲ | jibalt 43 minutes ago | parent | prev | next [-] |
| You seem to have missed a few things in TFA, as well as the amount of deployed C++ code and the number of installations, not just developer count (which is also massive). |
|
| ▲ | gambiting an hour ago | parent | prev [-] |
| It's still the most popular language for writing video games in, and it's an industry larger than films. C++ isn't going anywhere, unless Sony/Nintendo/Microsoft somehow provide SDKs for anything other than C++. But they can't even provide non-windows compilers for their toolchains, so I won't hold my breath. |
| |
| ▲ | fwsgonzo an hour ago | parent | next [-] | | And this is a problem why? As if an LLM couldn't make an SDK in < 1 day for any of these? Maybe I'm missing something, but I have a game project that publishes for homebrew Switch and PS5. Currently playing my game on my TV. The toolchains are nothing special, just the same old LLVM libc++ (maybe with musl for static) with some custom stubbing to "virtualize" filesystems and what not, since I did use std::filesystem for desktop clients. I have no idea why you couldn't do the same in Rust in less than a day, even without LLMs. Sure, you'd have to understand toolchains and some low-level library things, and BSD-isms (SIGSYS begone!). You can also mix things up. I had OpenGL for the login screen for a while, and Vulkan for in-game. No particular reason other than a transition. | |
| ▲ | roflcopter69 8 minutes ago | parent | prev [-] | | https://akaganite.com Just saying. C++ will soon have no moat in video games anymore. |
|