2017
DOI: 10.1145/3138818
|View full text |Cite
|
Sign up to set email alerts
|

Learning to blame: localizing novice type errors with data-driven diagnosis

Abstract: Localizing type errors is challenging in languages with global type inference, as the type checker must make assumptions about what the programmer intended to do. We introduce Nate, a data-driven approach to error localization based on supervised learning. Nate analyzes a large corpus of training data -pairs of ill-typed programs and their "fixed" versions -to automatically learn a model of where the error is most likely to be found. Given a new ill-typed program, Nate executes the model to generate a list of … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
2

Citation Types

0
19
0

Year Published

2018
2018
2022
2022

Publication Types

Select...
6
1

Relationship

0
7

Authors

Journals

citations
Cited by 20 publications
(19 citation statements)
references
References 52 publications
0
19
0
Order By: Relevance
“…For functional languages, prior works have focused on localizing and fixing type errors [Chen and Erwig 2014;Lerner et al 2007;Pavlinovic et al 2014Pavlinovic et al , 2015Seidel et al 2017;Zhang et al 2017]. For example, Seidel et al [2017] recently proposed a data-driven approach to localize type errors in OCaml programs. ; studied how type errors are fixed and presented Learnskell for producing user-friendly feedback on type errors.…”
Section: Related Workmentioning
confidence: 99%
See 3 more Smart Citations
“…For functional languages, prior works have focused on localizing and fixing type errors [Chen and Erwig 2014;Lerner et al 2007;Pavlinovic et al 2014Pavlinovic et al , 2015Seidel et al 2017;Zhang et al 2017]. For example, Seidel et al [2017] recently proposed a data-driven approach to localize type errors in OCaml programs. ; studied how type errors are fixed and presented Learnskell for producing user-friendly feedback on type errors.…”
Section: Related Workmentioning
confidence: 99%
“…Automated feedback generation. Recently, a large amount of work has been devoted to providing feedback on logical errors [D'Antoni et al 2016;Gulwani et al 2018;Kim et al 2016;Pu et al 2016;Singh et al 2013;Wang et al 2018], type errors [Seidel et al 2017;, syntax errors [Bhatia et al 2018;Gupta et al 2017], and performance problems [Gulwani et al 2014] in students' programs. AutoGrader [Singh et al 2013], which repairs students' programs using predetermined correction rules provided by instructors, has inspired recent advances in automatic feedback generation.…”
Section: Related Workmentioning
confidence: 99%
See 2 more Smart Citations
“…Since the seminal work of Wand [1986], which keeps track of all unification steps in order to help debugging, many algorithms have been proposed to better assist programmers. A large variety of techniques has been explored, including slicing [Haack and Wells 2003;Tip and Dinesh 2001], heuristics [Zhang et al 2015], SMT constraint solving [Pavlinovic et al 2014], counter-example generation [Nguyen and Horn 2015;Seidel et al 2016], machine learning [Seidel et al 2017], and other search-based approaches, such as Seminal [Lerner et al 2007] and counterfactual change inference .…”
Section: Related Workmentioning
confidence: 99%