首页 文章

在背景中运行带有Clojure的JVM

提问于
浏览
1

有没有办法在背景中运行带有Clojure的JVM,它可以根据需要评估Clojure代码?

目标是在Clojure中编写一些小的“脚本”,例如用bash这样的脚本语言 .

有一种方法可以使用引导构建工具编写“shebang-style”脚本,但是由于JVM / Clojure启动时间,执行时间太长 .

1 回答

  • 1

    使用clojure.tools.nrepl启动"runs in the background"的nREPL服务器 . 然后你可以通过附加nREPL客户端来运行任何"script" .

相关问题