logoalt Hacker News

ToyKeepertoday at 5:51 PM4 repliesview on HN

It's funny to see someone using a LLM as a compiler, making it convert higher-level operations into assembly, instead of just using a compiler.


Replies

vitally3643today at 8:32 PM

Given how few programmers very seriously write lots of assembly, it's kind of astonishing how good LLMs are at working with assembly. They can compile and decompile all on their own with apparently very little effort.

I suspect (with zero proof or understanding) that this has something to do with how well C maps to assembly. It's not a stretch to say the model's vector space maps this chunk of assembly with that line of C. And we all know how much C code exists online.

show 2 replies
pjmlptoday at 6:33 PM

Eventually that will be the way, revenge of COBOL and 4GLs.

duskwufftoday at 8:18 PM

"Congratulations! You've reinvented compilers, except slower, unpredictable, hopelessly proprietary, and you have to pay to use it."

(Oh, and the "compiler" will also refuse to generate certain types of programs.)

idiotsecanttoday at 7:16 PM

There is evidence that LLMs are capable of making assembly that runs a great deal more efficiently than the compiler can manage on its own.

show 5 replies