~/talk

Simple Functional Effects with Tag Unions

Talkat YOW! Melbourne 2022 · 2022-12-08..12-09· [functional-programming]
slides:none on file

A simple effect system built on tag unions (available in Roc and via OCaml polymorphic variants) models I/O as an operation list so HTTP, file-read and file-write tasks keep their precise error types yet automatically accumulate errors for exhaustive pattern matches. Example: a package-downloader composes http.getBytes, file.exists and file.writeBytes into a simulatable state machine that can be logged and tested without real servers. Prototype type-checked; full runtime implementation is pending but expected to be as efficient as Rust async with minimal allocations.

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Package Downloader
  3. 1:57Download tarball
  4. 6:05What is an enum
  5. 7:36Using an enum
  6. 8:22Advantages of enums
  7. 10:54GetEncoding
  8. 12:21Logging
  9. 14:22Tag Unions
  10. 15:34Tag Union Types
  11. 27:46William Brandon
  12. 28:26Operation
  13. 31:44Simulation
  14. 34:03Task wrapper
  15. 37:49Runtime representation
  16. 40:01No Heap allocations
  17. 40:18Summary
~/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.