This "small" Clojure interpreter can be used from Clojure on the JVM and GraalVM and JavaScript/ClojureScript. It implements a subset of Clojure. The main goal is be able to execute snippets of Clojure in environments where you normally don't get to use Clojure's "eval" or where it isn't safe to do so. Its main use is being the interpreter for https://github.com/borkdude/babashka , a native Clojure scripting tool whi…
Show HN: Small Clojure Interpreter
11–13 of 13 posts
It would be really nice if you could expose the parser to Javascript as well. I could use this to integrate with some Javascript tooling in my CLJS frontend (e.g. purgecss extractors).
Re: Show HN: Small Clojure Interpreter
#12This "small" Clojure interpreter can be used from Clojure on the JVM and GraalVM and JavaScript/ClojureScript. It implements a subset of Clojure. The main goal is be able to execute snippets of Clojure in environments where you normally don't get to use Clojure's "eval" or where it isn't safe to do so. Its main use is being the interpreter for https://github.com/borkdude/babashka , a native Clojure scripting tool whi…
It would be really nice if you could expose the parser to Javascript as well. I could use this to integrate with some Javascript tooling in my CLJS frontend (e.g. purgecss extractors).
There is a parser lib which was extracted from sci: https://github.com/borkdude/edamame. I guess that could have a JS interface, but I'm not sure what it would look like to make it useful for you.
Hit me up on Clojurians Slack or Twitter so we can discuss your needs.
Re: Show HN: Small Clojure Interpreter
#13This is cool stuff, but submitting it twice 24 hours apart is not that cool: https://news.ycombinator.com/item?id=21167211
Yet not that uncool, either.