totalperspective / oolon

Bloom implementation for Clojure/ClojureScript leaning on Datomic datalog
https://github.com/totalperspective/oolon
Eclipse Public License 1.0
10 stars 0 forks source link

Periodic #11

Closed bahulneel closed 8 years ago

bahulneel commented 8 years ago

From bloom/bud:

System timer manifested as a scratch collection. System-provided attributes: [:key] => [:val] (key is a unique ID, val is an instant.) State declaration includes interval (in seconds).

(periodic can only be used on rhs of a Bloom statement.)

periodic :timer, 0.1 Note that because periodics are just a simple wrapper over the system clock, Bud provides few semantic guarantees about the behavior of periodics. In particular, periodics execute in a best-effort manner (there is no guarantee of timely delivery of a periodic tuple), and the system clock value stored in the val field may not be monotonically increasing (e.g., if the system clock is changed in the midst of Bud execution).

bahulneel commented 8 years ago

With a wall clock and an external tick we can implement this as a module later.