compiled the Small Clojure Interpreter as a shared lib (.so, .dylib) and called it from c++! https://twitter.com/borkdude/status/1237774773813481474
For those interested I’m using this code to do AWS requests in Graal https://github.com/adgoji/aws-api/blob/master/src/adgoji/cognitect/aws/signers.cljc#L150 It needs some examples, but if you really want to this could be a start. I’ve also used it from Clojurescript (not tested lately). It has been tested with AWS STS requests (more to come)
Follow up on using sci as a shared lib: https://github.com/borkdude/sci/blob/master/doc/libsci.md
works on linux too :thumbsup: (with tweaks as described in the write-up)
$ time ./libsci/target/from_cpp "
> (println :foo)
> (require '[cheshire.core :as cheshire])
> (cheshire/generate-string {:a 1})"
:foo
{"a":1}
real 0m0.018s
user 0m0.004s
sys 0m0.014s
bravo @borkdude