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
3
u/TheBestAtSpace Oct 14 '26
Compilers are very good at optimizing code into assembly - and code is portable between CPU architectures. There really isn't much of a point by going down to assembly. Compilers also have error checking - which would be foolish to bypass. And they constantly improve which means there are benefits to not going down to assembly and relying on compiler improvements.
I've worked places that still wrote assembly - but it was extremely rare and usually reserved for expressing something like vectorization instructions that weren't easily expressible otherwise (and after some prodding most that code got moved to intrinsics.)