Your Golden Ticket to the Chocolate Factory 🍫

Today we’ll be touring the wondrous Ruby on Rails chocolate factory to see how its marvelous candy, consumed by web apps and developers everywhere, is made and tested. Golden tickets in hand? Let’s go! Welcome! 🎩 This Week’s Rails Contributors This week, 26 fabulous...

Ruby 2.1: Profiling Ruby

Ruby 2.1 is shipping with rb_profile_frames(), a new C-api for fetching ruby backtraces. The api performs no allocations and adds minimal cpu overhead making it ideal for profiling, even in production environments. I’ve implemented a sampling callstack profiler...

Ruby 2.1: Out-of-Band GC

Ruby 2.1’s GC is better than ever, but ruby still uses a stop-the-world GC implementation. This means collections triggered during request processing will add latency to your response time. One way to mitigate this is by running GC in-between requests, i.e....

Ruby 2.1: RGenGC

Ruby 2.1 adds a “restricted” generational collector, with minor mark phases that dramatically reduce the cost of GC. Let’s take a look at the evolution of Ruby’s GC. Ruby 1.8: simple mark and sweep Classic mark and sweep implementation. The...