~/talk

Writing a GraphQL compiler in Rust, a case study

Talkat RustConf 2022 · on Friday, 2022-08-05· [rust]
slides:none on file

apollo-rs is a production compiler pipeline written in Rust that turns GraphQL SDL into a salsa-based database and an ergonomic query API, using rowan and ongrammer for a recursive-descent, lossless parser and memoized queries. The system is fault tolerant (it collects errors rather than panicking), emits precise diagnostics with Miet-style reporting, and in a demo surfaces four distinct errors then repairs the document; the compiler pipeline works and is already usable as apollo-parser and apollo-compiler crates.

AI-written summary · about

  1. 0:00Intro
  2. 0:38Welcome
  3. 2:33Preface
  4. 5:28What is GraphQL compiler
  5. 7:41Why GraphQL
  6. 11:18Twitter Review
  7. 12:36Small demo
  8. 16:32compiler stages
  9. 18:47architecture
  10. 20:42recursive descent parsing
  11. 22:45fault tolerant parsing
  12. 24:33lossless parser
  13. 26:33GraphQL schema
  14. 29:19The database
  15. 30:35Query system
  16. 32:08Database of facts
  17. 33:06Schema
  18. 36:09Conclusion
~/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.