~/talk

Structured diagnostics for the OCaml compiler

Talkat OCaml 2024 · on Saturday, 2024-09-07· [developer-experience]
links:none on file
slides:none on file

Adds machine-readable S-expression output and a small DSL that generates serializers, printers and validators for compiler diagnostics. Implements a versioned ADT model with additive subtyping: new record fields are safe, variant arguments can be expanded by wrapping old payloads in a content field, and new constructors carry an approximate mapping to older kinds so old tools degrade gracefully. Prototype serializer/validator and a toy XML validator exist and survive minor compiler changes while preserving backward compatibility.

AI-written summary · about

  1. 0:00Structured diagnostics in OCaml
  2. 1:23Text to machine-readable output
  3. 2:52Structured data types and versioning
  4. 5:02Subtyping rules for error types
  5. 7:31Variant constructors in versioned formats
  6. 11:01Breaking changes and compatibility
  7. 12:07Versioning with algebraic data types
  8. 15:28Generating output with a DSL
  9. 16:55Schema validation and tooling
  10. 18:01Q&A
~/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.