News for hackers. Stuff that matters.
Re:Relic: Functional relational programming for Clojure(Script) by wcerfgba on Sunday February 26, 2023 @04:19PM (#34949576)
How are updates triggered, what's the mechanism? From the examples it seems like you don't need to subscribe and provide a function to be called when changes happen, but then how does it work?
Re:Relic: Functional relational programming for Clojure(Script) by wotbrew on Sunday February 26, 2023 @04:47PM (#34949863)
A relic db is a persistent data-structure [1]. Applying a transaction with rel/transact gives you a new database, rel/track-transact also returns the changes to relations you have opted-in to change tracking (using rel/watch).

[1] https://en.wikipedia.org/wiki/Persistent_data_structure