Add guidance on when to use AOT compilation
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- clojure
调研方向
首先查看 issue 中链接的现有 AOT 编译参考资料,并确定应在何处加入有关使用和不使用的指导。为应用程序作者和库作者添加文档化的指导,包括所列出的依赖项、元数据和 Clojure 版本相关注意事项。完成的标准是文档清楚说明何时适合使用 AOT,以及库作者如何安全地使用它。
由索引模型根据 Issue 内容生成。
描述
There is a good reference on AOT compilation, but I don't see strong guidance on when to use it, or more specifically when to not use it.
My understanding is that it is relatively safe to employ AOT compilation for an app.
But sometimes a library author will naively use AOT compilation when creating their release jar without realizing the problems this can cause for users of their library. These problems include (additions and corrections most welcome):
- aot compilation will create class files for library dependencies, this effectively brings in these dependencies (or portions of dependencies) at jar creation time, rather than runtime. A user might bring in different versions of those dependencies. Having multiple instances of a dependency on the classpath at runtime leads to confusion.
- a class file will not include metadata such as original clojure filename and line number.
- different versions of Clojure can generate different bytecode
I suppose a note on how/when to safely employ AOT compilation for a lib might also be helpful.
- 主要语言
- HTML
- 星标
- 259
- 派生
- 275
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
clojure/clojure-site 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
clojure/clojure-site#723 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
clojure/clojure-site#538 · 3 条评论 ·
-
help wanted
难度 1/5 1 小时以内 新手友好度 62/100
clojure/clojure-site#386 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 55/100
clojure/clojure-site#715 ·
-
难度 5/5 一周以上 新手友好度 25/100
clojure/clojure-site#713 ·
查看 clojure/clojure-site 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
objectionary/eo#8923 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
Coarray integration tests carry no LABELS, so run_tests.py silently skips them under every backend 未关闭coarray
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 95/100