~/talk

Certifying Derivation of State Machines from Coroutines

Talkat POPL 2022 · 2022-01-16..01-22· [security]
links:none on file
links:none on file
slides:none on file

A compiler implemented as a Coq tactic turns programs written with freer-monad coroutines into explicit state-machine code by searching for equivalence proofs; it supports coroutine storage (binary-tree lookup) to manage thousands of connections. A concrete TLS core with extracted Haskell is built and runs with reasonable throughput, but end-to-end compilation is very slow (compile times measured in hours) and generated code currently trails hand-written Haskell by tens of percent. Artifacts and proofs are available.

AI-written summary · about

  1. 0:00Intro
  2. 1:11TLS1.3 RFC: Simple Server Diagram
  3. 1:48One Connection: Blocking I/O
  4. 2:18More Connections, More Threads?
  5. 3:12Production Code: State Machines
  6. 4:07Risk: Superfluous Transitions (artificial example)
  7. 4:37OpenSSL 1998-2014
  8. 5:44Generating State Machines
  9. 7:06Nested Protocols
  10. 9:27Generating Nested State Machines
  11. 9:59Coq Encoding as Freer Monads
  12. 11:01Coroutines for Free!
  13. 11:49Per-connection State in Coroutines
  14. 14:38Prototype HTTPS Server Latency
  15. 15:10Future Directions
~/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.