电池和电芯各有什么优缺点?

发布于 2024-09-26 23:23:52 字数 1437 浏览 0 评论 0 原文

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

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

发布评论

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

评论(2

坐在坟头思考人生 2024-10-03 23:23:53

警告:我是《电池》的作者之一(尽管我已经失去联系一年了),也是上面链接的“关于”页面的作者。

最大的区别如下:

  • Core 每天在工业环境中使用,而 afaik Batteries 没有相同的以下内容
  • Core 由一家公司维护,而 Batteries 是社区维护的
  • afaik(但我可能是错的),Core 没有不接受提交或功能请求,而 Batteries 确实
  • 接受任何为 OCaml 标准库编写的程序,而 Core 并不旨在保持向后兼容性
  • Batteries 用于附带其他外部工具(它们不在标准中)目前正在发行,但我希望它们会作为附加包返回),例如改进的顶层、需要零配置才能使用电池而不是 OCaml 的 stdlib 的编译器等。
  • 电池附带附加语言扩展,例如本地处理 Unicode ,具有新的、更安全且更可扩展的 printf 等。Batteries
  • 附带大量文档,而我上次检查时,Core 没有。

PS:是的,ExtLib 现在是电池的子集。

Caveat: I'm one of the authors of Batteries (although I've been out of touch for a year now) and the author of the about page linked above.

The big differences are the following:

  • Core is used daily in an industrial environment, while afaik Batteries doesn't have the same following
  • Core is maintained by one company, while Batteries is community-maintained
  • afaik (but I can be wrong), Core doesn't accept submissions or feature requests, while Batteries does
  • Batteries aims to accept any program written for OCaml's standard library, while Core doesn't aim to maintain backward-compatibility
  • Batteries used to come with additional external tools (they're not in the standard distribution at the moment, but I hope they'll return as an additional package), e.g. an improved toplevel, a compiler that requires zero configuration to use Batteries instead of OCaml's stdlib, etc.
  • Batteries comes with additional language extensions e.g. to handle Unicode natively, with a new, safer and more extensible printf, etc.
  • Batteries comes with lots of documentation, while last time I checked, Core didn't.

P.S.: Yes, ExtLib is now a subset of Batteries.

流心雨 2024-10-03 23:23:53

关于页面的电池似乎包含与回答此问题的其他库的比较

(向下滚动到“与其他库的关系”)

http://batteries.forge.ocamlcore.org/doc.preview:batteries-alpha3/html/about.html

The Batteries about page seems to include a comparison to other libraries that answers this question

(scroll down to "Relations to other libraries")

http://batteries.forge.ocamlcore.org/doc.preview:batteries-alpha3/html/about.html

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