precept

Preception!
2017-06-22T08:55:49.803484Z

Hi all. I'm looking to use Precept / Clara (on its own) and I was interested to know if you could add and remove rules dynamically? I'm using it on Java with an app where users would be able to create rules to be applied to events occurring. Users would need to be able to add and remove rules (I imagine a rule would last about a day). Is this easily doable?

alex-dixon 2017-06-22T20:18:21.978804Z

@flipmokid Very good question! We would like to be able to do similar things ourselves, and so far we are finding that it would require pulling down the CLJS compiler for client-side applications. I think it would be possible to do in 100 percent Clojure without as many complications but I haven’t had time to try yet

alex-dixon 2017-06-22T20:19:47.006497Z

Clara’s sessions typically get their rules from provided namespaces, but you can create sessions with individual rule definitions in Clojure