最新资讯
dev.to 我们在 DolphinBench 上测试记忆检索:纯关键词搜索暴露了自身回归 dev.to 别再把 Agent 写成 while 循环,把它建模为状态机 bloomberg.com Rightmove 与 Scout24 借 AI 产品应对低迷房市并上调展望 stackoverflow.blog 欢迎来到芯片时代:半导体制造、AI 数据中心与芯片设计的未来 www.youtube.com AI Agent 总犯同样的错:CentralAgent AI 将记忆重构为经验系统 pub.towardsai.net Netflix 科学家建议重采样 LLM 评判:5 次仅将误差棒缩小 13% pub.towardsai.net Jev 作为 LLM 前的静默层:构建提示感知的模型路由器 reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准 dev.to FreeToken:在自有 GPU 上运行前沿 MoE 模型及其内存需求 dev.to 当 AI Agent 说“完成”时,究竟完成了什么? dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者
多元动态
登录 注册
行业动态 openjdk.org · @Hacker News

JEP 544:Java 提前编译(AOT)提案

原文 我的收藏

OpenJDK 提出 JEP 544,主题为 Java 的提前编译(Ahead-of-Time Code Compilation)。该提案明确‘不支持 HotSpot 当前支持的全部 CPU 架构’并非目标,但表示预期通过常规移植工作最终覆盖主要架构。Hacker News 讨论中将其与 GraalVM Native Image、Project Crema、Excelsior JET 和 IBM J9 的既有 AOT 方案进行比较,并讨论 JVM 作为沙箱与跨平台抽象层的定位变化。输入未包含 JEP 正文,具体实现细节与落地时间尚不明确。

AI推荐理由 OpenJDK 官方 JEP 544 提案页面,主题为 Java 提前编译(AOT),来源权威、事实明确,属开发者工具链层面的实质进展。输入仅含 HN 讨论区评论片段(10 分、8 条评论),未提供 JEP 正文细节,无法评估具体实现范围与时间表;评论中关于 GraalVM Native Image、Project Crema、Excelsior JET、IBM J9 的对比属个人观点,不能作为已验证结论。对 JVM 生态与编译优化方向有参考价值。

68

正文

Domain: openjdk.org Points: 10 | Comments: 8 [Top Comments] - I hope at some point we'll get AOT-only mode (or compile to native) and maybe even cross-compilation. - We have that in Codename One, yes it's not really "Java" but it compiles bytecode AOT and cross compiles to some of the platforms. - If you haven't checked it out yet, GraalVM's Native Image [1] already let's do AOT compilation suitable for distribution. You have to do some configuration to deal with reflection and dynamic class loading since there's no JVM in the produced build, but it comes with tooling to simplify that. And that restriction is being addressed by Project Crema [2]. [1] -- [https://www.graalvm.org/latest/reference-manual/native-image...](https://www.graalvm.org/latest/reference-manual/native-image/) [2] -- - progress, not perfection! Java is on fire right now with new stuff landing. We'll get there! - Excelsior JET did that 25 years ago: It's a shame that Sun/Oracle never partnered with them to bring native apps. This could have saved Java on the desktop. - IBM's J9 had AOT for a long time too. I wonder how JEP 544 compares. - So we've gone full circle again? I suppose write once run anywhere is no longer a goal either. "It is not a goal to support all CPU architectures currently supported by HotSpot." This pretty much validates the point of view that VM design is now baggage, as a sandbox it has been flawed, for performance it's been prohibitive, and cross platform portability by virtue of being virtual, was just a convenient byproduct. AI now handles the portability, sandbox security hasn't changed (cf. docker still has sandbox problems, LLMs have sandbox problems, it's always an ongoing concern) and that just leaves Java, as always, chasing performance. - The very next sentence after the one you posted is "We expect normal porting activities to eventually add support for all major architectures." Goals and non-goals inform the scope of the proposal. Given this is effectively an "add-on", I don't think it's unreasonable to prioritize the most popular platforms. Others will continue to execute Java perfectly fine in JVM mode.

来源报道 · 1 篇 · 以下链接均前往原始媒体

Hacker News JEP 544:Java 提前编译(AOT)提案 09-11 · 原文发布
← 返回精选动态 原文

更多内容