3 ms·
explaining the compiler error messages should really be the first application of LLMs like GPT-4. in fact you can take all the knowledge crap out and just train
by DesiLurker 4y ago
explaining the compiler error messages should really be the first application of LLMs like GPT-4. in fact you can take all the knowledge crap out and just train it on programming info from gcc source code/tests & StackOverflow/GitHub. thereafter have it explain what went wrong. This would be especially useful if you are dealing with template instances and the user explains in a few sentances what they are trying to achieve.
I have multi-decade experience in coding C/C++ but its shameful how much time still gets wasted on these stupid compiler errors.
- mhh__ 4y agoOr 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)
- chrsig 4y agoHaving 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.
- remkop22 4y agoExactly. 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.