~/talk

Do fish have legs: Language design for the commercial coder

Talkat Code Mesh LDN 2019 · 2019-11-07..11-08· [scala, compilers-and-language-design]
name:Yilin Wei
github:yilinwei
slides:none on file

Builds a small DSL in Scala for backend search queries, implements an AST, a runtime evaluator and a static typechecker that rejects impossible queries like "fish has legs", and demos it working. Shows concrete rules: record and union types, subtyping, and branch-aware type refinement for if expressions. Implementation totals about 200 lines of Scala with a roughly 10-line evaluator, uses Scala for function dispatch, and successfully types and runs the example queries.

AI-written summary · about

  1. 0:00Start
  2. 2:20Problem
  3. 7:04Evaluation
  4. 8:34Apply case
  5. 14:18Types
  6. 14:39Simplest type system
  7. 15:02Symbol case
  8. 15:58Restrictive type systems
  9. 16:59Rule 1 (revised)
  10. 18:09Further complications
~/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.