~/talk

A DSL for My NoSQL Database

TalkinFrenchat Scala.IO 2017 · 2017-11-02..11-03· [databases]
links:none on file
slides:none on file

Describes a small Scala DSL that models Aerospike NoSQL actions as an algebra plus interpreter: operations are represented as a monadic program that delays effects until interpretation. Implementation uses Cats and Shapeless to build type-safe enums of operations, then translates those operations to an asynchronous Aerospike client by interpreting into Future/IO; a demo shows recording a score and reading it back so persistence happens only when the program is run.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Referential Transparency
  3. 2:01Future[A]
  4. 2:15Monad 10
  5. 3:43Algebra and Interpreter
  6. 4:13Algebra (monadic)
  7. 4:44Operations case class Mark(name: String, value: Int)
  8. 5:28Interpreter: Natural Transformation
  9. 6:14Interpreter: Kleisli
  10. 8:15Run program
  11. 8:56Thank you!
~/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.