~/talk

A Better REST with Type level Programming in Scala

Talkat LambdaConf 2017 · 2017-05-25..05-27· [scala, compilers-and-language-design]
slides:none on file

Library called Maya (Scala and Scala.js) embeds a type-level DSL so API shape, arguments, local errors and multiplicities live in the Scala type system; a single generic serve function is parameterized by an API type and compiles requests into matching responses. Implementation uses Scala type-level functions, implicit resolution and shapeless-style tricks, produces a working prototype that compiles (IntelliJ has limitations) and mirrors Haskell Servant ideas though it is not yet feature-complete.

AI-written summary · about

  1. 0:00Introduction
  2. 1:16What is Maya
  3. 3:08The Two Ideas
  4. 6:15Overview
  5. 7:25Why should anyone care
  6. 11:30API Contract
  7. 15:20Maya
  8. 17:38GraphQL
  9. 20:00Infinite Data
  10. 22:46Finite Data
  11. 27:10Extensions
  12. 30:21Local Errors
  13. 32:01Multiplicities
  14. 35:33Rich Language
  15. 36:47Person Requests
  16. 40:35Atomic Context
  17. 43:36Request
  18. 46:00Person Request
  19. 50:23dsltype
  20. 52:52Type level functions
  21. 54:46Defining a type
~/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.