在 clojure repl 中使用时生成的类文件的位置

发布于 2024-09-11 06:14:48 字数 130 浏览 9 评论 0原文

当我在 Repl 中输入 (use 'some.namespace) 时,就会编译并加载相应的 clojure 文件。编译后的类文件是存储在文件系统上,还是仅驻留在内存中? Repl 从命令行启动,不涉及编辑器/IDE。

When I enter (use 'some.namespace) in the Repl, the corresponding clojure file is compiled and loaded. Are the compiled class files stored on the file system, or they only reside in the memory? The Repl is started from the command line, no editor/IDE is involved.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事↓在人 2024-09-18 06:14:53

据我所知,当您使用命名空间时,不会在任何地方生成类文件。唯一生成类文件的时间是您显式 AOT 编译代码时,大多数情况下您不需要这样做。

您可以在此处了解有关编译的更多信息:http://clojure.org/compilation

When you use a namespace, no class files are generated anywhere that I know of. The only time class files are generated are if you explicitly AOT compile your code, and most of the time, you won't need to.

You can learn more about compilation here: http://clojure.org/compilation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文