keechma

Keechma stack. Mention @U050986L9 or @U2J1PHYNM if you have any questions
carkh 2019-07-16T06:29:02.278900Z

I have a question, those behavior trees can send events, and the controller has an API to execute these. they're passed the controller itself, the app-db-atom and the event arg

carkh 2019-07-16T06:30:04.280Z

The question is, should they, in your opinion, receive the app-db-atom or just the app-db, leaving them to other devices if they want to update it

carkh 2019-07-16T06:32:06.280700Z

or maybe let them return a naked app-db ... I opted for the app-db-atom thinking that's the most versatile

carkh 2019-07-16T06:33:40.281900Z

Also i disagree with the direction of your <cmd arrows ! you're viewing this from the perspective of the guy that made the controller, rather than the user, and it's the opposite direction compared to core.Async !

carkh 2019-07-16T06:34:33.282200Z

too late now to do anything about it though =)

mihaelkonjevic 2019-07-16T06:37:17.286200Z

I use app-db-atom for lower level interfaces, because it makes it easier to build abstractions on top of it, and app-db for apis that have deref and timing guarantees. As for the arrows on cmd and sub, they are from the perspective of a component (incoming or outgoing). I think they were inspired by some re-frame wiki page with the ideas for helper apis, so I picked it up from there :)

mihaelkonjevic 2019-07-16T06:37:46.287Z

The lib looks really interesting, can't wait to do a deep dive

carkh 2019-07-16T06:38:04.287500Z

hah well i was only nitpicking with those arrows =)

carkh 2019-07-16T06:40:38.288700Z

There is no timing garanties in this case, those events are there to start websockets or do any number of other side effecting stuff, so i guess i'll keep it as is

carkh 2019-07-16T06:40:41.288900Z

thanks

carkh 2019-07-16T06:44:13.290200Z

there is an overlap with pipelines, my stuff is more verbose, bigger machinery, probably a bit slower, but is more versatile and totally testable

mihaelkonjevic 2019-07-16T06:49:19.291700Z

This looks very powerful, and I'll have to dig in more, but I did have cases where something like this would be a perfect fit

carkh 2019-07-16T06:50:15.292100Z

let me know if you find bugs ! now back to regular app dev =)