~/talk

Strongly-Typed Multi-View Stack-Based Computations

Talkat PPDP 2023 · 2023-10-22..10-23· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

A DSL embedded in a strongly typed functional host uses heterogeneous lists to statically ensure required stack arguments are present and that untouched tail of the stack is preserved, eliminating runtime stack-errors. It uses universally quantified type variables to allow functions with different stack layouts so mutually recursive functions of arbitrary arities typecheck. The implementation provides evaluation and pretty-printing views plus code generation that emits stack-machine code, generates fresh names for printed definitions, and is shown to work for examples though call-by-name control is left for future work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:41Goals of strongly-typed DSL
  3. 3:32Naive stack language limits
  4. 5:00Type system prevents stack errors
  5. 7:26Instruction composition without failures
  6. 9:20Adding functions
  7. 10:46Type system challenges with args
  8. 12:20Quantitative type system solution
  9. 13:23Recursive functions
  10. 15:11Implementing Z combinator
  11. 16:10Multi-view computations
  12. 17:55Multi-view design overview
  13. 18:56Evaluation view implementation
  14. 20:01Pretty-printing view
  15. 22:13Mutual recursion in views
  16. 23:30Printing class support
  17. 24:15Code generation
  18. 25:42Conclusion
  19. 27:13Extending control flow
  20. 28:31Call-by-name vs call-by-value
  21. 30:10Push instruction challenges
  22. 31:15Type system and memory tracking
  23. 32:56Comparison with typed assembly
  24. 33:38DSL design philosophy
  25. 34:01Future control flow work
~/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.