TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ZJIT has been merged into Ruby

50 点作者 tekknolagi10 天前

3 条评论

sabslikesobs9 天前
I don&#x27;t know anything about compliers, so this note about reasons and intentions from the presentation link was helpful to me:<p>&gt; YJIT can make Ruby code run faster, but this is a balancing act, because the JIT compiler itself must consume both memory and CPU cycles to compile and optimize your code while it is running. Furthermore, in large-scale production environments such as those of GitHub, Shopify and Stripe, we end up in a situation where YJIT is compiling the same code over and over again on a very large number of servers, which seems very inefficient.<p>&gt; In this presentation, we will go over the design of ZJIT, a next generation Ruby JIT which aims to save and reuse compiled code between executions. We hope that this will help us eliminate duplicated work while also allowing the compiler to spend more time optimizing code so that we can get better performance.<p>Seems pretty cool. I haven&#x27;t run into any these limitations in my own usage really, but I&#x27;m working at very small scales.
评论 #43990213 未加载
pjmlp9 天前
Quite curious how it will evolve, yet another JIT to track as compiler geek.<p>Plus points for having all code generation flags in the standard implementation, instead of requiring a debug build like on V8, or an additional plugin like on most JVMs.
burnt-resistor9 天前
Possibly a Crystal killer in the near future.
评论 #43993542 未加载