~/talk

Leroy: Library Learning for Imperative Programming Languages

Talkat HATRA 2024 · on Sunday, 2024-10-20· [machine-learning]
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Leroy converts Python programs to a lisp-like AST and runs Stitch to extract repeated fragments, then prunes and patches candidates back into valid Python functions. On 122 test programs it prunes roughly 3,000 malformed or too-small abstractions, yields six usable abstractions applied about 2.5 call sites each, and achieves about 1.04x compression (≈4% size reduction). The pipeline detects macro-like fragments, fixes missing returns and parameters, and rejects call sites that break loop-updated variables.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Library Learning overview
  3. 3:43Extending Stitch to Python
  4. 5:31Lispifying Python for Stitch
  5. 6:12Filtering Stitch abstractions
  6. 8:24Augmenting abstractions to Python
  7. 9:28Validating abstraction call sites
  8. 10:54Evaluating Leroy on Python
  9. 12:41Future plans and limits
  10. 13:03Summary and discussion
  11. 13:23Q&A
  12. 13:46Supercompilation and abstractions
  13. 14:27Analysis time and scalability
  14. 15:50Imports and cycles
  15. 17:16Reusable abstractions
  16. 18:42Six abstractions details
  17. 19:26Closing remarks
~/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.