~/talk

Describable, Typesafe Computations

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

Compares three concrete solutions for auditable business calculations: plain logging (error‑prone and order‑dependent), treelog (a Writer/monad‑transformer based described computation), and an implemented library calclock that represents calculations as data (enum cases Variable/Expression/Binding), uses typeclass operators, and is zero‑dependency at core. Demonstrates a royalties example with a 75% royalty and a minimum keeper share of €0.80 per sale, shows custom min operator and squants integration, produces tree or flat serializable logs, guarantees log/value consistency, and has been used in projects though performance is unmeasured.

AI-written summary · about

  1. 0:00Start
  2. 2:19Example use case
  3. 3:32SelfPub royalties calculation
  4. 4:28Calculation with logging
  5. 4:58Log output
  6. 11:03Accessing the result value
  7. 11:46Showing the tree log
  8. 12:11SelfPub royalty calculation log
  9. 12:39Assessment described computation
  10. 15:09Goals
  11. 16:04Solution
  12. 17:05calclog
  13. 43:52Summary (2)
  14. 45:36Thank you! Questions?
~/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.