~/talk

Laser: Static Analysis for Ruby, in Ruby

Talkat RubyConf 2011 · 2011-09-29..10-01· [ruby]
links:none on file
slides:none on file

Laser is a Ruby-implemented static analyzer that builds a control flow graph and rewrites it into static single assignment form to do flow-sensitive analyses; it runs top-level code until IO, duplicates CFGs per-type using a cartesian product algorithm, and then answers concrete questions like which methods are unused, which variables are dead, which methods may raise, and whether a method is block required/optional/ignored/foolish. The CFG builder is a single ~2,500-line file; dead-variable analysis is ~55 lines, block-usage is ~79 lines; it works on MRI 1.9.3, finds real bugs, but is currently slow and not Rails-ready.

AI-written summary · about

  1. 0:00Introduction to Laser
  2. 1:08Principles of static analysis
  3. 2:27Motivations and challenges
  4. 5:45Addressing metaprogramming
  5. 8:44Control flow and architecture
  6. 14:04Representing the object model
  7. 16:19Cartesian product algorithm
  8. 20:26Bug discovery and dead code
  9. 25:36Analyzing block usage
  10. 30:45Simulation and performance
  11. 33:40Project challenges
  12. 40:44Future potential of Laser
  13. 43:51Live demo and Q&A
~/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.