TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

YJIT: Building a New JIT Compiler for CRuby

78 pointsby tarellelover 3 years ago

7 comments

geospeckover 3 years ago
That&#x27;s very interesting! It seems that big Ruby shops like Shopify and Stripe are investing a lot on improving Ruby&#x27;s performance. Here is a tweet from Stripe&#x27;s CEO regarding the performance of their custom Ruby compiler <a href="https:&#x2F;&#x2F;twitter.com&#x2F;patrickc&#x2F;status&#x2F;1410269843585069056?lang=en" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;patrickc&#x2F;status&#x2F;1410269843585069056?lang...</a>
评论 #28876328 未加载
sm_tsover 3 years ago
Just in case anybody finds the subject interesting and would like to play with this topic, there&#x27;s an experimental native-Ruby JIT project by @tenderlove: <a href="https:&#x2F;&#x2F;github.com&#x2F;tenderlove&#x2F;tenderjit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tenderlove&#x2F;tenderjit</a> (and the companion native-Ruby assembler Fisk: <a href="https:&#x2F;&#x2F;github.com&#x2F;tenderlove&#x2F;fisk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tenderlove&#x2F;fisk</a>), which is (IMO) considerably easier to work with.
kaba0over 3 years ago
How does it compare to Truffle Ruby? Is it really harder to run C FFI libs inside graal, than writing a new JIT compiler?
评论 #28875890 未加载
评论 #28876879 未加载
maherbegover 3 years ago
This is so exciting to see! I&#x27;m excited about the internal changes to MRI to unlock even bigger performance. I&#x27;d also love to see some research on what FFI changes would be helpful for enabling more performance across the FFI boundary. A lot of conversation ends up at &quot;well, we go into C and it&#x27;s terrible&quot; but that feels defeatist.
montblancover 3 years ago
Is the main difference in performance between JS and the others (Perl, Ruby, PHP) the fact that JS is JIT&#x27;ed and the others are not? I mean JS used to be slowish and until V8 came, what is V8 doing? Why can&#x27;t Python &#x2F; Ruby do the same thing?
评论 #28876510 未加载
评论 #28874956 未加载
评论 #28874933 未加载
评论 #28881248 未加载
评论 #28875760 未加载
jhoechtlover 3 years ago
How many Jit compiler attempts did we already see? It seems to me there has never been substantial progress towards speed or is it just that other languages implementations increase speedwise at the same pace?<p>Source: Computer Languages Shootout
评论 #28876271 未加载
评论 #28875892 未加载
DeathArrowover 3 years ago
It&#x27;s a bit late. If it was released by the time Rails was hip and cool it would for certain help with Ruby adoption and retention. But people in search for new and shiny thing jumped ships already to platforms such as Node.js which has decent performance.<p>Even for PHP the new VMs and speed improvements might be too late.
评论 #28875326 未加载