I'm really loving sci, and it's really cool seeing the wide range of uses it can have. I feel like it has a lot of untapped potential that I haven't quite wrapped my brain around yet.
I've messed with using it as a sort of client->server "query language" where you build up code structures in cljs, then send them as a string to a server, which hands the code string off to sci with whitelisted functions you want to allow. So instead of making an endpoint for every operation, you just have one endpoint that processes your sci strings, and you expose regular functions via `:allow``. What's more is you can easily use clojure language facilities to do aggregation and data processing ON the server but FROM the client. At the very least, this feels really nice to do during an exploratory phase, you can always create real/normal endpoints once the operations/functions you need are more solidified.
I also think it has a lot of potential as a cljs interpreter with a sort of real eval that is smoother than bootstrapping cljs in many situations.
7
u/jjttjj Mar 20 '20
I'm really loving sci, and it's really cool seeing the wide range of uses it can have. I feel like it has a lot of untapped potential that I haven't quite wrapped my brain around yet.
I've messed with using it as a sort of client->server "query language" where you build up code structures in cljs, then send them as a string to a server, which hands the code string off to sci with whitelisted functions you want to allow. So instead of making an endpoint for every operation, you just have one endpoint that processes your sci strings, and you expose regular functions via `:allow``. What's more is you can easily use clojure language facilities to do aggregation and data processing ON the server but FROM the client. At the very least, this feels really nice to do during an exploratory phase, you can always create real/normal endpoints once the operations/functions you need are more solidified.
I also think it has a lot of potential as a cljs interpreter with a sort of real eval that is smoother than bootstrapping cljs in many situations.