Cake 和 Leiningen 和有什么不一样? [英] What's the difference between Cake and Leiningen?

查看:16
本文介绍了Cake 和 Leiningen 和有什么不一样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cake 和 Leiningen 有什么区别?

What's the difference between Cake and Leiningen?

推荐答案

这个答案继续引起人们的兴趣,大概是作为 StackOverflow 中 Leiningen 的参考,因此现在对其进行了大量编辑以在 2014 年更新它.

This answer continues to get interest, presumably as a reference for Leiningen in StackOverflow so it is now significantly edited to update it for 2014.

Leiningen 和 Cake 于 2011 年合并.Leiningen(版本 2)现在是事实上的 Clojure 自动化工具.

Leiningen and Cake merged back in 2011. Leiningen (version 2) is now the de facto Clojure automation tool.

Leiningen 是 Clojure 的构建工具和依赖项管理器,其中包括使用适当的方式设置交互式 REPL 的能力配置的类路径以及所有 java 和 clojure 依赖项以自动方式从 maven 存储库和/或基于社区的 Clojars 获取.

Leiningenis a build tool and dependency manager for Clojure which includes the ability to set up an interactive REPL with the appropriately configured classpath and with all java and clojure dependencies acquired in an automated manner from maven repositories and/or the community based Clojars.

Cake 与 Leiningen 非常相似(当时使用相同的 project.clj 文件格式)但试图通过在后台保持持久的 JVM 来避免大量启动开销.在基于迭代 REPL 的开发的典型过程中,由于持久进程中的累积状态(旧的函数定义等),这更具响应性,但为错误交换了便利.结果证明这是一笔不划算的交易.

Cake was very similar to Leiningen (down to using the same project.clj file format at the time) but attempted to avoid a lot of startup overhead by keeping persistent JVMs around in the background. This was more responsive but traded convenience for bugs due to accumulated state in the persistent processes (old function definitions hanging around etc.) over the typical course of iterative REPL based development. This turned out to be a bad bargain.

Leiningen 的经验以及对更快启动时间的持续渴望导致了许多加快速度的建议和方法:https://github.com/technomancy/leiningen/wiki/Faster

Experience with Leiningen and a continued desire for faster startup times have lead to an number of recommendations and approaches for speeding things up: https://github.com/technomancy/leiningen/wiki/Faster

这篇关于Cake 和 Leiningen 和有什么不一样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆