~/talk

An experience report on writing usable DSLs in Coq

Talkat CoqPL 2021 · on Tuesday, 2021-01-19
links:none on file
slides:none on file

A hardware DSL called koika is implemented as a deeply embedded AST in Coq with a few thousand lines of code and hundreds of lines of notations; usability comes from replacing Coq's parser with custom entries (Coq 8.9) so Gallina-like syntax inside double curly braces generates koika constructors and editor tooling still highlights and indents. An escape hatch via backticks mixes Gallina when needed. Identifier-to-string conversion uses Ltac2 to capture names without quotes, and a typeclass trick infers dependently typed membership proofs automatically; the libraries are a single short file and work in practice.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17All custom entries
  3. 5:48identtostring
  4. 7:57dependentlytyped
~/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.