upvote
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).

reply
I remembered your username, hello libriscv guy, cool to see you posting here! I suppose you are talking about https://github.com/libriscv/libriscv-rs ? Cool to see it!
reply
Yes, that's the one. Here's a benchmark I did on the performance: https://github.com/libriscv/libriscv/releases/download/v1.22...

The Rust version is currently middle of the pack. But it's in my view a success. The trick to getting good performance with tailcall dispatch in Rust is keeping the argument list low enough to fit in the calling convention, on stable. For nightly the "become" keyword is faster as I can put a few things in the stack frame to speed things up even more.

I'm not sure how to improve the Rust performance anymore than this, other than trying to go for cheap wins in the bytecodes themselves. The only big lever left is hand-written assembly, which I may have mentioned exists in the C++ version, hence the outrageous performance.

reply
bad mistake. would have been more productive to use that LLM to rectify your c++ instead.
reply
The emulator is fairly "complete" right now, I'm not aware of anything that needs rectifying in the sandboxed-supported paths. And the performance is already best in class. I don't think it needs constant changing unless there's a reason?
reply
I can't see it going anywhere soon. The amount of existing projects in C++ still need developers
reply
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.
reply
What labs?

We have some of our country's most powerful supercomputers, and the people supervising them don't know any Fortran. Last century's Fortran books from their predecessors are still here, but "My Fortran doesn't work" is going to get you the same odd stares as "Why can't I pay with farthings?" or other stuff that hasn't made sense for decades. [The farthing is about £0.001 and thus it was already basically worthless when it was formally demonetized in 1961]

reply
AFAIK Fortran is still heavily used in the physical sciences, from particle simulations to weather and climate models.
reply
R is partially implemented in Fortran.

So while no one where I work knows Fortran either, we have people who know R and so are dependent on Fortran by association.

reply
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.

reply
They've been saying C++ is dying for decades now but it's still here with (almost) all its problems :)
reply
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).
reply
The transition will take a very long time, but it's happening. Deployed code will get rewritten by AI, nobody wants to maintain an insecure C++ codebase in 2026, it's too much of a liability for anything not airgapped.
reply
At least C++ has an ABI and can produce dynamically linked executables and libraries.
reply
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.
reply
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.

reply
https://akaganite.com

Just saying. C++ will soon have no moat in video games anymore.

reply