~/talk

Sound, Heuristic Type Annotation Inference for Ruby

Talkat DLS 2020 · 2020-11-17..11-20· [ruby]
links:none on file
links:none on file
links:none on file
slides:none on file

InferDL automatically generates Ruby type annotations by combining constraint solving with checked heuristic guesses: heuristics propose nominal or precise hash types which are added to the constraint graph and rolled back if they violate constraints, preserving soundness. A key rule, Struct-to-Nominal, turns structural method sets into nominal classes (e.g. String -> String for normalize_username), while name rules like int_names map identifiers to Integer. Evaluation on 250 methods (496 types) yields about 22% more correct annotations and uncovers six real bugs; heuristics cost extra time (32s vs 9s).

AI-written summary · about

  1. 0:00Start
  2. 1:53Example of Constraint Base Type Inference
  3. 4:03Constraint Resolution
  4. 4:19Solution Extraction
  5. 8:32Overall Heuristic Solution Extraction Procedure
  6. 14:42Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.