Let’s imagine that a clojure program wants to load clojure files during runtime. I want to emulate weechat scripting system in clojure.
The clojure files are stored as ~/.program/scripts/*.clj
I could, for example, add ~/.program/scripts to classpath, scan ~/.program/scripts, and require clj files in ~/.program/scripts. Is there a better way?
That’s a great option for guaranteed sandboxing. Sandboxing native clojure is an intractable problem. A minimal clojure dialect is sandboxed by default.
It seems that combination of GraalVM and sci enables a lot of things including dad which I always wanted to have.