Tutorials

Instrumenting Thread Stalling in Ruby Applications | byroot’s blog
In the above example, the instrumentation tells you how long it took for the database to answer your query, but may also include the time needed for the Ruby thread to re-acquire the GVL, or perhaps the Ruby GC to run, or even the operating system...


Implementing a Game Boy emulator in Ruby | sacckey.dev
Introduction I created a Game Boy emulator in Ruby and released it as a gem called rubyboy! (I’d be happy if you could give it a star!)
And now it runs in the browser using WebAssembly!
Try the demo in your browser!
Screenshots Rubyでゲームボーイのエミュレータを...


Boosting JRuby Startup with AppCDS and AOT caching – Charles Oliver Nutter – Java, Ruby, and JVM guy trying to make sense of it all
I’m still ramping up my blogging efforts, but I wanted to share the results of recent experiments using JRuby with Application Class Data Store and the new AOTCache feature being previewed in JDK 24
Around the times of Java 1.7 or 1.8, teams at S...


How to Implement Relationship-Based Access Control (ReBAC) in a Ruby On Rails API? | Auth0
How to Implement Relationship-Based Access Control (ReBAC) in a Ruby On Rails API?
The way to implement an authorization system depends on your application's needs. Let's explore Relationship-Based Access Control (ReBAC) and implement it in a Rail...

Ordinal Numbers in Rails: 1st, 2nd, 3rd, 4th - Andy Croll
When developing Rails applications, you often need to present numbers in a more human-readable format. For instance, you might want to display “1st” and “42nd” instead of just “1” or “42”. Rails provides a neat solution for this through Active Sup...


Flexible API Versioning with Rails | Petr Hlavicka
API versioning is crucial for maintaining backward compatibility and allowing clients to update their integrations at their own pace.
When we create an API, we establish (often) an unwritten contract with our clients: if they implement our API, i...