~/talk

A New Standard ML Prettyprinter Library, An Experience Report

links:none on file
slides:none on file

A new Standard ML prettyprinter library claims a simpler, more predictable design by synthesizing PPML and Hughes/Wadler ideas, implemented as modules in a strict purely functional style that uses a format intermediate data structure and a conservative flat measure for lookahead. Rendering is essentially linear, avoids laziness, and supports blocks, alignments, soft/hard breaks, indent and alt choices. The implementer iterates 10+ times and has reimplemented 11 non-trivial pretty-printers successfully, so the design works for typical compiler ASTs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Frustrations with old printer
  3. 2:28Prettyprinting history
  4. 6:54Design goals
  5. 9:43Core concepts
  6. 12:57Indentation and flattening
  7. 14:05Conditional rendering
  8. 17:37Rendering process
  9. 18:39Example: tree prettyprint
  10. 20:29Real-world usage
  11. 21:34Enhancements and future
  12. 24:46Conclusion
  13. 26:55Where to find the library
~/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.