~/talk

Your Program Is a Language

Talkat ScalaCon November 2021 · 2021-11-02..11-05· [software-architecture]
links:none on file
slides:none on file

Claim: programs are just languages and the best embedded DSL style is tagless final. Demonstrations use Scala 3 features like opaque types and extension methods, plus Cats/free monad examples and an in-memory CRUD library wired to http4s and circe. Trade-offs shown: ADT/free gives easy serialization but extra runtime allocation and the expression problem; tagless final avoids that and supports multiple interpreters. A toy calculator and a running CRUD server prove the approaches compile and respond as expected.

AI-written summary · about

  1. 0:00Introduction to DSLs
  2. 1:49What are DSLs?
  3. 4:17Cohesion and coupling in DSLs
  4. 6:25Library code vs DSLs
  5. 8:10DSL styles and implementation
  6. 11:18Embedded vs external DSLs
  7. 12:40Tagless final style
  8. 14:46Opaque types for DSLs
  9. 15:49DSL as data structure
  10. 18:59Free monad for DSLs
  11. 20:45Tagless final approach
  12. 23:09Advantages of tagless final
  13. 25:41The expression problem
  14. 29:57Extending DSLs with tagless
  15. 30:38Calculator DSL example
  16. 32:23Tagless calculator demo
  17. 35:12CRUD DSL library
  18. 40:04CRUD server demo
  19. 42:30DSL design techniques
  20. 44:58Financial account DSL
  21. 45:19Key takeaways and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.