precept
precept copied to clipboard
A declarative programming framework
We want to keep other attributes in our namespace (`sub`, `error`) so just write a condition that removes those that resolve to `precept.spec.rulegen`.
Would be good to have listeners on or custom functions for `then`, `insert!`, `insert-unconditional!`, `retract!` At least four potential use cases: 1. Integrate in a parallel eav store (i.e. Datascript)...
We would like to incorporate the same behavior Datomic uses for attributes with the schema attribute `:db/isComponent` as described [here](http://docs.datomic.com/schema.html). Further consideration may require or convince us to deviate from...
The following rule should insert a fact about an enemy threatening a friendly **whenever an enemy unit is within "range" of a friendly one**: ```clj [[?enemy :unit/enemy ?enemy-loc]] [[?friendly :unit/friendly...
From the README: > Working with a rules means we know what changes from one state to the next. Given that, we don't need React and its diff algorithm. It...
The hash-map we receive from `activation-group-fn` includes the following meta-information. ```clj {:ns-name libx.perf-tuple :lhs [{:type :add-todo-action :constraints [] :fact-binding :?action}] :rhs (do (println Action cleanup) (retract! ?action)) :props {:group :cleanup...
Continuation of #41 and the Clara issue mentioned therein. Not sure the priority of this feature at present. Opening simply to track.
From a draft of the README: > Rules should be easily pluggable. We should be able to use general purpose rulesets the same way we use libraries. E.g. drag and...
Temp-ids
Forget why we don't have this already. Could implement the same way Datomic does, i.e. automatically assign `(util/guid)` to any fact inserted with a negative int and allow references with...
We've had a difficult time getting testing set up nicely in CLJS. Just opening this as an issue for now because it's an important one and should be tracked. We...