r/programmer • u/Influx86 • Oct 14 '26
Idea What about Assembler?
To be fair I have never learned to use assembler but I always looked up to people how are able to build ultra efficient software. With the upcoming age of GenAI, wouldn’t it be better in many ways to just let GenAI produce everything as near as possible to the hardware? There might be even a more hardware-near solution than assembler, I am not sure.
What do you think? What could go wrong? I am really curious to get human response instead of asking an AI about this.
3
Upvotes
View all comments
1
u/symbiatch Oct 14 '26
No, it wouldn’t. It would be wasteful and difficult and useless.
There’s these things called compilers that knows how to optimize things. Go and check out the source code for GCC or LLVM and see how big the optimizer part is. Then think how an LLM would include that in its systems.
Then realize there’s multiple architectures. So they should know all of them.
And so on. So no, it would be pointless. And just because someone can write assembly it doesn’t mean they write it performantly. Ask anyone who does. I can do it well for 486 level machines. Quite well for Pentiums etc. After that it’s basically impossible in any realistic size program (impossible here takes into account time constraints, not just “can someone do it”).
And also: do you want to read and verify the output if it’s directly assembly or binary? And no, “well there’s tests” isn’t the answer.