precept icon indicating copy to clipboard operation
precept copied to clipboard

Interactive code examples

Open alex-dixon opened this issue 7 years ago • 4 comments

See https://github.com/viebel/klipse

Guessing that we wouldn't be able to edit rules and see updates. Supports reagent and rendering DOM though.

alex-dixon avatar Apr 19 '17 01:04 alex-dixon

I am new to clara-rules, so apologies if this doesn't make sense, but given that cljs can be self-hosted ( as in klipse ) and given this entry in clara's wiki couldn't rules also be updated?

As a test this morning I tried running precept in my (self-hosted) setup but the #clj macros seem to break the self hosted compilation.

Here is a pull request that made re-frame self host compatible via macrovich. Maybe the same strategy can be used with precept.

I am taking a look at it, but there is a lot to digest :)

nrfm avatar Jun 08 '17 13:06 nrfm

@nrfm I think that makes perfect sense. It would be really great if we could be compatible with self-hosted Clojurescript. I'm a little gun shy because I ran into a few issues more with getting macros to work in Clojurescript than Clojure, but Clojurescript has huge value for us.

Thanks for sharing these great resources. I will look into them more as soon as I get the chance and try to figure out what it would take for Precept to implement.

alex-dixon avatar Jun 08 '17 16:06 alex-dixon

thanks @alex-dixon

nrfm avatar Jun 08 '17 16:06 nrfm

Looks like Klipse readily supports macros in cljs. Not positive this means our/Clara’s Clojure namespaces could be compiled but looks promising!

https://blog.klipse.tech/clojure/2019/03/08/spec-custom-defn.html

alex-dixon avatar Mar 09 '19 08:03 alex-dixon