~/talk

Trieste: A C++ DSL for Flexible Tree Rewriting (Tool paper)

Talkat SLE 2024 · 2024-10-20..10-21· [compilers-and-language-design]
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Trieste is a C++ DSL that implements in-place subtree pattern matching to run multipass compiler pipelines, with each pass checked by dynamic well-formedness checks that act as postconditions and preconditions. Effects are arbitrary C++ so rules can lift nodes, build constraints, and update scopes; well-formedness specs also power random well-formed tree generation for fuzzing. The system reduces visitor boilerplate and is used to ship fully compliant YAML and JSON parsers, a YAML→JSON transpiler, and a C++ Rego compiler/interpreter.

AI-written summary · about

  1. 0:00Introduction to Trieste and the speaker
  2. 0:16What is Trieste and who developed it
  3. 1:18Problem with multi-pass compiler pipelines
  4. 3:09How flexible trees work in Trieste
  5. 4:16Well-formedness specifications explained
  6. 6:05Overview of the Trieste pipeline
  7. 7:32Writing a MinML compiler front end in Trieste
  8. 8:56How parsing works in Trieste
  9. 11:45Rewriting with Trieste: first example
  10. 13:32Pattern and effect in rewrite rules
  11. 14:59Error handling and traversal direction
  12. 15:44Restructuring let bindings in MinML
  13. 16:49Rewriting simple expressions and binary operators
  14. 18:15Type inference with Trieste
  15. 20:00Order of passes and well-formedness as postconditions
  16. 21:04Final tree structure after all passes
  17. 21:48Existing projects using Trieste
  18. 22:09Summary of Trieste program structure
  19. 22:30Advantages of flexible trees and minimal boilerplate
  20. 23:36Q&A: Pattern matching and properties in nodes
  21. 25:45Q&A: Comparison with Stratego and Stratego/XT
  22. 27:13Q&A: Modular language evolution in Trieste
~/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.