~/talk

Automatic Migration from Synchronous to Asynchronous JavaScript APIs

Talkat OOPSLA 2021 · 2021-10-17..10-22· [javascript, developer-experience]
links:none on file
links:none on file
name:Frank Tip
links:none on file
slides:none on file

A static-analysis refactoring converts synchronous I/O to async/await where safe, implemented as Desynchronizer and applied automatically to 12 projects with 316 sync API calls; it flags 256 candidates, actually rewrites 244 without tests breaking and produces 12 detectable behavioral changes tied mostly to call-graph unsoundness. Rewrites add await and propagate async through callers, sometimes wrapping files in an IIFE; constructors and promise-returning functions are skipped.

AI-written summary · about

  1. 0:00Start
  2. 0:16A bit of background...
  3. 0:47Asynchronous APIs
  4. 3:04Async/Await to the rescue
  5. 4:07Goal
  6. 4:213 Step Approach
  7. 5:08Identify Transformation Candidates
  8. 6:20Discard Unsupported Transformations
  9. 7:29Transform source code
  10. 8:45We built Desynchronizer!
  11. 10:15Evaluating Desynchronizer
  12. 10:50How many transformations are proposed by Desynchronizer?
  13. 11:47The technique is potentially unsound. How often does unsoundness manifest itself in practice?
  14. 12:38What is the impact of refactoring on the performance of applications?
  15. 13:32How long does it take to apply Desynchronizer to an application?
  16. 14:27Takeaways
~/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.