This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-15
Channels
- # admin-announcements (2)
- # beginners (93)
- # boot (34)
- # capetown (1)
- # cider (15)
- # cljs-dev (30)
- # cljsjs (9)
- # clojars (8)
- # clojure (199)
- # clojure-austin (3)
- # clojure-france (3)
- # clojure-greece (2)
- # clojure-italy (46)
- # clojure-quebec (7)
- # clojure-russia (2)
- # clojure-spec (76)
- # clojure-uk (16)
- # clojurescript (43)
- # core-async (7)
- # cursive (14)
- # data-science (1)
- # datascript (4)
- # datomic (3)
- # devcards (60)
- # editors (5)
- # funcool (5)
- # garden (3)
- # hoplon (32)
- # immutant (22)
- # jobs (1)
- # lein-figwheel (21)
- # leiningen (1)
- # mental-health (11)
- # mount (2)
- # off-topic (6)
- # om (16)
- # onyx (15)
- # re-frame (43)
- # reagent (20)
- # rum (18)
- # specter (37)
- # sql (2)
- # testing (8)
- # untangled (7)
- # yada (19)
@lucasbradstreet: your guys development speed is humbling. awesome work.
could someone help me understand what an event map is? http://www.onyxplatform.org/docs/user-guide/latest/lifecycles.html I feel like i got this a while back but the docs aren’t helping me out
Each Onyx peer under the covers runs a task lifeycle in a loop. https://github.com/onyx-platform/onyx/blob/0.9.x/src/onyx/peer/task_lifecycle.clj#L353-L374
Pretty much all operations are done on this map. Applying flow conditions, applying any transforms, error handling, etc…
And to support user lifecycles, we just let you hook into it.
If you’re talking about it from the perspective of how it relates to lifecycles, its where you would store any state you want for later.
i think i get it how its used in the lesson. 4_0 in learn onyx uses the term “event map” without defining it, 4_1 talks more about how you can use the event map. I need to dig into https://github.com/clojure-emacs/cider/blob/master/doc/debugging.md so i can inspect things easier. Or is there any easier way?
I’m not sure how far you’re going to get with the debugging tools in Cider, if you’re just looking to see how Onyx works internally then I recommend tracing through this function, sticking in some println’s and running the tests https://github.com/onyx-platform/onyx/blob/0.9.x/src/onyx/peer/task_lifecycle.clj#L353-L374
gotcha. thanks!
i printed the event map. you werent lying, its all in there 😓
@drewverlee: Might be useful for exploration https://github.com/walmartlabs/datascope
thats awesome
i know what im doing today...
@drewverlee: Full event map is documented here - https://github.com/onyx-platform/onyx/blob/0.9.x/src/onyx/information_model.cljc#L506
I should have searched harder.