Devchat.tv Episode Roundup
Devchat.tv Episode Roundup
Devchat.tv
Sep 4, 2018 · 44 min

RR 378: Ruby performance: MJIT with John Hawthorn

MP3
Panel:
Charles Max Wood
David Richards
Dave Kimura
Eric Berry
Special Guests: John Hawthorn
In this episode of Ruby Rogues, the panel talks to John Hawthorn about MJIT. John has been a Ruby programmer for about 9 years and is based in Victoria, B.C. They talk about what MJIT is, the effects you can see from using the MJIT compiler, and why the JIT doesn’t always work with other languages. They also touch on how you can use the JIT in your own code, how he makes his performance better, and more!
Show Topics:
5:00 – He had always been curious how a JIT would work and found that it was always too difficult to work with. Since discovering MJIT, he has been able to work with these compilers because he understands how to work with C code.
7:36 – Ruby has a bytecode and it looks a lot like an assembly language, which is approachable to a Rubyist.
17:30 – The MJIT doesn’t work as well with Rails because the code can’t get warmed up enough. Some things aren’t friendly to a JIT.
21:44 – Online, you can look into following people who have written various Ruby libraries to look at performance. You can look at people like Sam Saffron and Julia Evans.
23:57 –TruffleRuby is a new front-end on top of a mature virtual machine whereas MJIT is a brand new virtual machine on top of a Ruby front-end.
29:02 – You want to run a profiler that will give you a better idea of where to look for performance issues, but you really need a proper benchmark to say what is wrong with your performance. A great benchmark you can use is benchmark-ips.
Links:
Get a Coder Job Course
Ruby
MJIT
Playing with ruby's new JIT: MJIT by John Hawthorn
Rails
Bootsnap
Sam Saffron
Julia Evans
TruffleRuby
benchmark-ips
@jhawthorn
johnhawthorn.com
John’s GitHub
 
Sponsors
Sentry
Digital Ocean
Get a Coder Job Course
Picks:
Charles
Iron Druid Chronicles by Kevin Hearne
Zoom
Notion
Eric Begay
Dave
Sony WH-1000XM2
Ryobi Bench Sander
David
Stephen Fry in America
Eric
Remote for Slides
Zoom
John
Julia Evans Blog Posts
Celeste

Episodes play from the podcast's own servers, unmodified. Not affiliated with Podbay.