News for hackers. Stuff that matters.
Re:How Should Compilers Explain Problems to Developers? (Pdf... by mhh__ on Monday March 27, 2023 @03:43PM (#35331369)
Or just fix the error message and add a hyperlink to an explanation...

You don't need an AI you just need the right abstractions in the code.

The AI could help you learn if you really don't understand but for just telling you what went wrong you don't need it. In fact the compiler can already fix a lot of these things for you if they bothered to implement it (see fixit in clang)

Re:How Should Compilers Explain Problems to Developers? (Pdf... by chrsig on Monday March 27, 2023 @04:18PM (#35331855)
Having a link to a detailed explanation would be amazing. Trying to even find the error message in a sea of c++ template notes is challenging...Then trying to actually parse it while examining the types is...painful.
Re:How Should Compilers Explain Problems to Developers? (Pdf... by remkop22 on Monday March 27, 2023 @04:44PM (#35332270)
Exactly. Compiler developers wrote the logic for the errors you see, they (mostly) have the knowledge to explain the error, why do we need a language model trained on all this derived information, when it could be provided upfront together with context from your own source code.