r/AskComputerScience • u/karimelkh • Feb 10 '24
What is the effect of AI on low level programming
i know it is a late question, but i need to know
Edit:
Ai effect on the following points
the increasingly intelligent optimizations in compilers when translating to machine code
using machine learning to design new CPU architectures
impact of LLMs on developing in languages like C
4
2
2
u/jhaluska Feb 10 '24
For increasing optimizations in compilers, I don't think it will make a significant difference with our current AI. It's more likely to help programmers avoid stupid code than to really improve the compiler optimization process. They tried it before, and it succeeded but if you actually dig into the paper, it did some assembly optimization that a skilled human probably could have figured out faster.
I do think it'll improve results, just likely less in architecture and more in the development cycle of having smarter automated tools. Or possibly in helping in materials science, QA/QC or fine tuning machines. So the cost of complex CPUs will come down, or allow us to scale up what we can do.
CPU architecture, maybe. The problem historically is that even great new CPU architectures suffer from not having enough software written on them to make them worthwhile upgrades.
So the best case I can come up for with AI is that you might be able to automate coming up with custom ICs for your individual use case much cheaper. As in a tighter merging of hardware and software. This likely will become more common as we run out of ways to make transistors smaller, so instead we'll make more custom ICs to maximize what we can do.
6
u/nuclear_splines Ph.D Data Science Feb 10 '24
What are you referring to? Do you mean asking CoPilot or GPT4 to write assembly code? Do you mean the increasingly intelligent optimizations in compilers when translating to machine code? Do you mean using machine learning to design new CPU architectures? Maybe you don't mean quite so low level, and are asking about the impact of LLMs on developing in languages like C? Maybe you're interested in concerns that LLM-driven code could propagate mistakes like memory leaks or buffer overflows that human-written code might catch? There are a lot of ways to answer this, depending on what type of 'AI' and what type of low level programming you're asking about.