Rated↓ Article |
---|
Ruby Outperforms C: Breaking the Catch-22YJIT’s ability to improve performance by adapting to run-time behavior can increase the speed of our code in a way that dropping down to C can’t. As such, I think we should reconsider the common wisdom that “rewriting our Ruby in C” is the ideal path to performance optimization and take a serious look at “rewriting our C in Ruby” instead. 2023-08-29 Rails at Scale Aaron Patterson 3,000 words Rated Feb 13th - sethherr |
Tiny JITs for a Faster FFICan we have a faster FFI for CRuby? Yes. Feb 12th Rails at Scale Aaron Patterson 2,000 words Rated Feb 12th - sethherr |
Rewriting the Ruby parserAt Shopify, we have spent the last year writing a new Ruby parser, which we’ve called YARP (Yet Another Ruby Parser). As of the date of this post, YARP can parse a semantically equivalent syntax tree to Ruby 3.3 on every Ruby file in Shopify’s main codebase, GitHub’s main codebase, CRuby, and the 100 most popular gems downloaded from rubygems.org. We recently got approval to merge this work into CRuby, and are very excited to share our work with the community. This post will take you through... 2023-06-12 Rails at Scale 5,000 words Rated 2023-06-13 - sethherr |