That’s wishful thinking. Just because things haven’t changed in the past doesn’t mean it won’t change in the future.

I don’t doubt that the amount of code will not reduce, it’ll just be easier and easier to get AI to fix it.

We are still less than two years into widespread use of this technology, and it’s surprising how good it is.

I am a ‘greybeard’ compiler guy and modern LLMs fix compiler bugs better than me, to a large extent. And it keeps slightly getting better every few weeks.

As compiler guy, how do you see direct machine code generation?

I firmly believe having LLMs generate code for current languages is a transition step, just like Assembly devs had to be convinced optimising compilers were generating the same kind of code they would write themselves.

They are not there yet, but the day will come.

LLMs’ design is around novelty and creativity. It was the missing left brain of computation. We should stick to traditional styles of computation for compilation.

Presumably this would need some advancements in formal verification to make sure the results are correct.

But ignoring that for now, LLMs can already do better than modern compilers when it comes to optimizing code.

It has become a neat way of finding opportunities to implement in a compiler.

Give the LLM a compiler generated piece of assembly and it will sometimes spit out a slightly better version. Then you try and figure out if it's possible to implement it in the compiler. This works really well for blind spots in compilers like generating good vectorized code.

Sure, it took only what, 40 years of intensive hardware improvements* for assembly to move to the fringe? And we still reach out to it more often that I would like to because reasons?

Yep, I guess you can train an LLM on a bunch of binaries to get it to mimic a SotA compiler with some accuracy, which may or may not improve over time, but come on. Times where there were free performance increases are gone, and this is not the area where shipping any bullshit real fast will get you any sort of advantage.

* Which are unlikely to happen again in the foreseeable future.