This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-17
Channels
- # adventofcode (2)
- # beginners (153)
- # cider (14)
- # clara (9)
- # cljs-dev (8)
- # cljsjs (1)
- # cljsrn (4)
- # clojure (124)
- # clojure-dev (9)
- # clojure-france (18)
- # clojure-greece (22)
- # clojure-italy (11)
- # clojure-nlp (5)
- # clojure-russia (9)
- # clojure-spec (21)
- # clojure-uk (40)
- # clojurescript (82)
- # core-async (12)
- # cursive (3)
- # data-science (2)
- # datomic (225)
- # devcards (8)
- # docs (2)
- # duct (1)
- # emacs (18)
- # figwheel (2)
- # fulcro (117)
- # graphql (13)
- # hoplon (10)
- # jobs (7)
- # jobs-discuss (7)
- # keechma (8)
- # leiningen (4)
- # off-topic (16)
- # om (2)
- # om-next (3)
- # perun (11)
- # precept (4)
- # re-frame (24)
- # reagent (2)
- # remote-jobs (8)
- # ring (2)
- # ring-swagger (9)
- # rum (42)
- # shadow-cljs (8)
- # spacemacs (3)
- # specter (7)
- # uncomplicate (10)
- # unrepl (58)
- # yada (9)
Can precept be used for back-end applications? I have a server use-case that I think fits with re-frame/precept style, and given that I already use clara rules I think precept would be a good framework to adopt to enforce some consistency. I don’t need any rendering functionality, mostly interested in the EAV/subscription style/framework around Clara.
@dadair Hey. Sorry for the delayed response. You definitely can, but there are caveats. The EAV syntax and Datomic-style schema integration and fact types are Clojure compatible. Subscriptions are currently not. They depend on Reagent r/atoms and cursors, which are CLJS only (Note: I might actually be wrong about this so will research and if I am get back to you if so). So if your server is Clojure/Java I wouldn’t expect them to work at this time
That said I think it’d be fairly trivial to make changes that support different atom and/or cursor implementations to enable the same subscription model in Clojure
Actually after looking through the code I think we might just need to drop in a reagent cursor implementation for Clojure here https://github.com/CoNarrative/precept/blob/issue-19/src/cljc/precept/core.cljc#L292