~/talk

Intro to Decoders

Talkat ReasonConf 2019 · 2019-04-11..04-13· [typescript]
name:Matt Bray
links:none on file
slides:none on file

Library bs-decoders decodes JSON into custom Reason/OCaml domain types using composable combinators, not magic deriving. It gives contextual error messages (for example: while decoding a list in the second element expected int got true), supports variant dispatching and try-first decoders for ambiguous layouts, and provides a functor-based backend abstraction so the same decoders work with Yojson, Easy_json, BuckleScript, or native. Repo and npm package are available.

AI-written summary · about

  1. 0:00Introduction
  2. 0:43Decoders library
  3. 3:21Decoders vs PBX
  4. 5:11Basic usage
  5. 6:58Custom types capitalization
  6. 8:54Variant types like shapes
  7. 12:05Ambiguous JSON handling
  8. 13:09Sharing decoders Reason Bucklescript
  9. 15:17Roles and user decoders
  10. 16:31Library availability summary
~/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.