News for hackers. Stuff that matters.
Re:Integrated assembler improvements in LLVM 19 by brcmthrowaway on Monday July 01, 2024 @03:45AM (#40843463)
Any AI enhancements?
Re:Integrated assembler improvements in LLVM 19 by Smaug123 on Monday July 01, 2024 @03:51AM (#40843496)
Did you have anything in mind? I must say, "we added LLMs to LLVM" is a scenario that fills me with horror.
Re:Integrated assembler improvements in LLVM 19 by pjmlp on Monday July 01, 2024 @05:10AM (#40843937)
Actually I expect that eventually we will have such scenario.

Instead of LLM => some language generated output => its compiler => executable

We will get LLM => magic pixie dust => executable

The dream of many corporate overlords.

Re:Integrated assembler improvements in LLVM 19 by wyldfire on Monday July 01, 2024 @07:31AM (#40844738)
> We will get LLM => magic pixie dust => executable

Indeed one of the challenges with using machine learning as a part of compilation is reasoning about it when trying to investigate reported defects.

Some of the research focuses on simpler/more practical domains, such as the ordering of the compiler passes.

Re:Integrated assembler improvements in LLVM 19 by JonChesterfield on Monday July 01, 2024 @07:40AM (#40844797)
Have it emit plausible-looking x64 instructions by training on lots of executables, get a program out which has some behaviour. Might be worth seed funding at the moment.
Re:Integrated assembler improvements in LLVM 19 by pjmlp on Monday July 01, 2024 @08:09AM (#40844968)
Yeah, this is however the same kind of discussion as back in the day Assembly developers not trusting FORTRAN compilers, so it is a matter of time, and funding.
Re:Integrated assembler improvements in LLVM 19 by JonChesterfield on Monday July 01, 2024 @05:12PM (#40850754)
The Fortran compilers were trying to get the answer right whereas the proposed funding void would at best be trying to avoid a segv.

What probably does have real merit is tying a superoptimiser to a LLM, provided you've got the SAT solver included in the mix as well to know if it worked.

Re:Integrated assembler improvements in LLVM 19 by plingbang on Monday July 01, 2024 @06:10AM (#40844283)
Why not just an LLM-based interpreter that direclty executes a PDF spec plus edits received by email? No need to recomplile and restart the app. A DB is also not required - the LLM will naturally remember all user requests and figure out the current state. (We'll solve the limitations of context later)
Re:Integrated assembler improvements in LLVM 19 by abainbridge on Monday July 01, 2024 @06:06AM (#40844256)
You missed out the input to the LLM, which would presumably be a requirements spec with all behaviour specified in exact detail, including all the tricky corner cases were someone has to think hard about which solution is most useful and least confusing to the customer. Natural language isn't great for expressing such things. A formal notation would be easier. Perhaps something that makes it easy to express if-this-then-that kinds of things. I wonder if a programming language would be good for that.
Re:Integrated assembler improvements in LLVM 19 by pjmlp on Monday July 01, 2024 @08:07AM (#40844958)
Indeed, that is why, based on offshoring experience, I see a future where the developers of tomorrow are mostly technical architects, with Star Trek style "Computer do XYZ".

This has been tried before with UML, see Rational, Together or Enterprise Architect, however LLMs bring an additional automation step to the whole thing.

Re:Integrated assembler improvements in LLVM 19 by adrianN on Monday July 01, 2024 @09:11AM (#40845537)
If you have a verification step behind the llm that proves semantic equivalence between the original code and the llm output I could imagine scenarios where it can be beneficial.
Re:Integrated assembler improvements in LLVM 19 by binary132 on Monday July 01, 2024 @01:33PM (#40848107)
Error: I’m afraid I can’t let you compile that.
Re:Integrated assembler improvements in LLVM 19 by superb_dev on Monday July 01, 2024 @04:12AM (#40843612)
Finally, LLVM can hallucinate brand new instruction sets