r/cpp • u/_bijan_ • Apr 07 '26
Can your AI rewrite your code in assembly?
https://lemire.me/blog/2026/04/05/can-your-ai-rewrite-your-code-in-assembly/
3
Upvotes
r/cpp • u/_bijan_ • Apr 07 '26
View all comments
-6
u/SoSKatan Apr 07 '26
I’m likely going to get down voted for this, but we are a few years away from likely an interesting development once AI can get decent enough at translating code to a machine language…
Others have pointed out to just use a compiler, which is the right call based on today’s AI tech. But give. A few years, once AI can master compiling, it will lead to a new interesting set of tools…
Imagine AI tools that can take any compiled app and turn it into source, in a language of your choosing. I suspect it will make CPU architectures less important. You could take any compiled application and transpile it to another CPU arch and run it at full speed.
Once we have that, then we can design a new and novel CPU instruction sets that don’t need to be backwards compatible and yet can run any existing compiled application at full speed.
That should all be possible with AI, the bigger question is really just about when and how soon. My guess is 4 to 5 years from now.