向量 API 再次进入孵化阶段,这是它在 JDK 中的第十次亮相。该 API 旨在让 Java 能够利用 CPU 的向量指令,从而比标量计算更高效。在 JDK 25 中,它进行了两项重要改进:其一,底层数学函数的实现从 HotSpot JVM 内部的 C++ 代码迁移到通过 外部函数与内存 API 调用原生数学库,提升了可维护性;其二,在支持的 x64 CPU 上,Float16 ...
作者 | Michael Redlich 译者 | 平川OpenJDKJEP 532(模式、instanceof 和 switch 中的基本类型第五轮预览)已从候选状态提升至 Proposed to Target 状态,计划在 JDK 27 中交付。该 JEP 在 JDK 23 至 JDK 26 期间经历了四轮预览后,现在推出了第五个预览版,内容保持不变。该特性增强了模式匹配功能,允许在所有模式上 ...
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Dany Lepage discusses the architectural ...
Learn how to use pattern-matching features in your Java programs, including pattern matching with switch statements, when clauses, sealed classes, and a preview of primitive type pattern matching in ...