~/talk

Relational Algebra in Scala3 - how is it possible?

Talkat Scala Love 2022 · on Friday, 2022-02-18· [scala, databases]
slides:none on file

Claims that most relational algebra operations run at compile time by generating plain-tuple code and proves it with concrete implementations of projection, cross product (concatenation), join, column replace/rename and a small expression DSL. It uses Scala 3 inline, match types and constValue/constTuple plus type lambdas to derive schemas and per-row converters; the runtime representation is a flat tuple. A few pragmatic workarounds remain: some explicit casts and a manually passed appended schema due to current type-dependency limits, and no performance numbers yet.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Agenda
  3. 2:45Inline
  4. 4:04Match on types
  5. 4:50Type level computation
  6. 6:20Inline function
  7. 7:20Const value
  8. 10:07Type ontology
  9. 12:39New schema
  10. 13:59tuple
  11. 17:29operations
  12. 18:26relation
  13. 19:17projection
  14. 22:04cross
  15. 23:35concatenation
  16. 25:22cast
  17. 25:41apply to data
  18. 26:28speed up
  19. 26:47replace and rename
  20. 27:09calculate column
  21. 27:38dsl
  22. 28:38application
~/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.