~/talk

Text Processing in APL

Talkat Dyalog '22 · 2022-10-09..10-13· [data-engineering]
name:Aaron Hsu
links:none on file
slides:none on file

Claim: APL handles real-world text parsing by replacing recursive PEG-style parsers with data-parallel linear passes that tokenize, compute delimiter depths with a sum-scan depth trick, convert depth to a depth→parent vector to build ASTs and report errors, and run type/link analyses as isolated passes. Implementation: a new co-dfns linear passes parser used in the compiler. Result: it works and scales — measured at roughly 62× speedup versus the old recursive interpreter-heavy parser.

AI-written summary · about

  1. 0:00APL for processing text data
  2. 1:20Most text parsing tasks result in a structured model such as a tree
  3. 2:00Regular expressions (regex) are convenient but limited
  4. 3:44Parsing expression grammars are recursive
  5. 5:38Issues with a recursive parser
  6. 7:50Performance of recursive parsers
  7. 9:21How to do data-parallel, idiomatic parsing
  8. 11:32Balanced parentheses example
  9. 15:12High level overview of the new co-dfns parser
  10. 17:50Link variables to their bindings example
  11. 20:22Parsing strands example
  12. 21:42Notes on flexibility, maintainability and performance
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.