Top all-time · #20784
Stories by k0kubun on Medium
Personal blog · k0kubun.medium.comprogramming
Stories by k0kubun on Medium is a personal blog at k0kubun.medium.com about programming. Since 2021, 3 different Hacker News readers have linked it 3 times, most often “Ruby 3 JIT can make Rails faster”. The last post was in 2023, but the archive is still widely read.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link these Medium posts on Ruby's JIT compilers, MJIT and YJIT. One thread cites a post as background on the MJIT/YJIT difference, and another raises why Rails is hard for JITs.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Ruby 3 JIT can make Rails faster2 people · 2 mentions · first linked 2021-05-21
What Hacker News says?
There was already a JIT since Ruby 2.6, the MJIT: https://k0kubun.medium.com/ruby-3-0-jit-and-beyond-4d9404ce3... The author of that article (k0kubun) is also one of the reviewers on this PR. What is the difference between the two JITs?
Comment linking /ruby-3-0-jit-and-beyond-4d9404ce33c
on “Merge YJIT: an in-process JIT compiler”Submitted Ruby 3 JIT can make Rails faster as a story · 123 points
HN discussionRails uses Ruby in a way that is defeats virtually all best practices to produce a JIT-friendly code. I've seen this mentioned a lot, and certainly the history of compiled Ruby + Rails benchmarks indicates this is true. However, I've never quite understood -- why exactly is this the case? Is it just the sheer size of Rails? Or is it (ab)using Ruby in weird ways? edit: This is the more or less definitive answer, I gu…
Comment linking /ruby-3-jit-can-make-rails-faster-756310f235a
on “YJIT: Building a New JIT Compiler for CRuby”