~/talk

Integrating IDEs with Dotty the experimental Scala compiler

slides:none on file

Dotty exposes the typed ASTs (TASTy) so the IDE queries the compiler after typechecking to implement features like go-to-definition and rename; the interactive API that manages compilers and queries is under 1,000 lines and powers completion and navigation. A language server implements LSP in a few hundred lines and connects to VS Code via an SBT plugin that generates project JSON; debugging reuses the Java debug server and evaluates expressions by compiling them into a static method and loading it into the debug VM, though captured variables in transformed inner methods remain a known limitation. uses TASTy trees interactive API <1000 lines LSP server ~few hundred lines

AI-written summary · about

  1. 0:00Intro
  2. 0:40A CHANCE TO REDESIGN COMPONENTS
  3. 1:34STATE OF THE ART
  4. 2:28DESIGN PRINCIPLES
  5. 4:49SOURCE CODE
  6. 5:20TREE AFTER TYPECHECKING
  7. 6:53QUERYING THE COMPILER
  8. 12:54THE IDE PORTABILITY PROBLEM
  9. 15:48IMPLEMENTING THE DOTTY LANGUAGE SERVER
  10. 18:37SBT INTEGRATION
  11. 19:08CONFIGURATION FILES
  12. 20:29BUILD SERVER PROTOCOL
  13. 23:29EXPRESSION EVALUATION
  14. 24:19RUN THE COMPILER PIPEUNE
  15. 24:46EXTRACT TO A STATIC METHOD
  16. 25:49ON THE DEBUGGING VM
  17. 34:05FUTURE WORK
  18. 35:20CONCLUSION
  19. 37:19QUESTIONS ?
~/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.