Addressing Compiler Errors: Stack Overflow or Large Language Models?
Patricia Widjojo, Christoph Treude

TL;DR
This study compares the effectiveness of Stack Overflow and large language models, especially GPT-4, in explaining and resolving compiler error messages, highlighting GPT-4's superior performance and influencing search strategies.
Contribution
It provides a systematic evaluation of GPT-4 versus Stack Overflow for compiler errors, revealing insights into search methods, prompt phrasing, and model performance improvements.
Findings
GPT-4 outperforms Stack Overflow in explaining errors
Adding code snippets improves Stack Overflow search effectiveness depending on method
GPT-4 surpasses GPT-3.5, with specific prompts yielding better results
Abstract
Compiler error messages serve as an initial resource for programmers dealing with compilation errors. However, previous studies indicate that they often lack sufficient targeted information to resolve code issues. Consequently, programmers typically rely on their own research to fix errors. Historically, Stack Overflow has been the primary resource for such information, but recent advances in large language models offer alternatives. This study systematically examines 100 compiler error messages from three sources to determine the most effective approach for programmers encountering compiler errors. Factors considered include Stack Overflow search methods and the impact of model version and prompt phrasing when using large language models. The results reveal that GPT-4 outperforms Stack Overflow in explaining compiler error messages, the effectiveness of adding code snippets to Stack…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Online Learning and Analytics
