gpt4 book ai didi

java - JGL 和 JAL 是 JDK 的一部分吗?

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:43:05 26 4
gpt4 key购买 nike

我是 Java 的新手,正在寻找 Java 中的标准数据结构和算法库。

通过谷歌搜索,我碰到了 JGLJAL .我发现对它们的大多数讨论都已有好几年了,例如 http://www4.ncsu.edu/~kaltofen/courses/Languages/JavaExamples/jgl3.1.0/doc/index.html .然而,JGL 似乎有一个新网站 http://www.recursionsw.com/products/JGL/JGL-collections-and-algorithms.html ,虽然我还没有发现 JAL(也许 JAL 已并入 JGL?)。

它们是 JDK 的一部分,就像 JDK 中的 Java 集合一样吗?

不知道它们是否被使用,在什么情况下它们比Java集合更好?谢谢。

最佳答案

不,JGL 和 JAL 不是 JDK 的一部分。两者都非常古老,非常过时(例如,JAL 中 Colt 库的最后一次更改是 10 多年前的事了!)。 Java 集合远远优于 JGL。

Those who believe JGL to be superior to Java Collections are very wrong. I did exhaustive performance comparisons when the Collections API was added to Java, and it beat the pants off of JGL. It wasn't even close. As to whether JGL was superior in design, well, de gustibus non est disputandum. JGL was much larger, and had a much lower power-to-weight ratio, but it was more familiar to those versed in STL. -- Josh Bloch

如果您需要 Java 的常见数学算法的实现,我建议您查看 Apache Commons Math library .如果您想要更高级的 Java 集合,请查看 Google's Guava库(但是默认的 Java 集合非常好)。

关于java - JGL 和 JAL 是 JDK 的一部分吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26567262/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com