~/talk

Syntactic Code Search with Sequence-to-Tree Matching: Supporting Syntactic Search with(…)

Talkat PLDI 2024 · 2024-06-24..06-28· [developer-experience]
links:none on file
name:Wode Ni
links:none on file
links:none on file
links:none on file
slides:none on file

A new search architecture drops parsing and uses only tokenization plus a novel sequence-to-tree matching algorithm built on top-down tree automata to give semantics to incomplete queries. It ships as stsearch, supports every tokenizable (previously unparsable) query, implements subtree and sibling wildcards, and reports results comparable to Semgrep. Evaluation runs 161 real-world queries over ~100 npm packages and shows early tokens filter most matches, enabling stable interactive feedback.

AI-written summary · about

  1. 0:00Syntactic code search intro
  2. 1:04Limitations of current tools
  3. 3:07Desired behavior for queries
  4. 4:08Architecture shift to token matching
  5. 5:12Query language with wildcards
  6. 6:38Sequence-to-tree matching formalized
  7. 7:43Introducing tri automata
  8. 9:28Evaluating interactive queries
  9. 11:14Summary
  10. 11:34Q&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.