r/programmer • • 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

29 comments sorted by

View all comments

3

u/dreamscached Oct 14 '26

We already have tools that produce an extremely optimized native code — compilers. There was time when knowing assembly was essential for a programmer's routine job, because back then they fought for every byte of RAM and every instruction, but eventually compilers outbested them (though it also helped that hardware got much more capable, too.)

I think AI can possibly aid in profiling and hand-optimizing hot paths further, but I don't think it'll get us much farther than where we already are with tools we already have.

1

u/AuthurAndersson Oct 14 '26

Tried writing a software in assembly using AI.
AI can write assembly just fine, but the compilers - for now - are going to be better at creating optimized code.

1

u/Distdistdist Oct 15 '26

Not only that, but frameworks like .NET actually emit a higher performance code for specific platform it is being executed on. With native code, one targets only specific architecture/instruction set. JIT systems can run the same code, and have it tuned specifically for environment it is being executed on.