News

rb_gc_force_recycle is deprecated in Ruby 3.1 - Peter Zhu
It’s almost Christmas, and you know what that means! That’s right, Ruby 3.1 is around the corner. In Ruby 3.1, the public function in the Ruby C API called rb_gc_force_recycle will be deprecated (see ticket). Additionally, this function has been c...


Noteflakes: Extralite - a new Ruby gem for working with SQLite databases
In the last year I’ve been working a lot with SQLite databases. I started by using the popular sqlite3-ruby Ruby gem, but quickly noticed that for my usage there were a few things missing in the gem’s API. Being a tinkerer, and having had some exp...

Exploring dependency injection in Ruby - Remi Mercier
Lately, I’ve been interested in abstractions: why objects behave the way they do, how do we architecture our code so it’s open to change (without causing unnecessary headaches), to which class that specific behavior should belong? And during that ...


The two common ways to call a Ruby block - Code with Jason
Ruby blocks can be difficult to understand. One of the details which presents an obstacle to fully understanding blocks is the fact that there is more than one way to call a block.In this post we’ll go over the two common ways of calling a Ruby bl...

A Rubyist's Walk Along the C-side (Part 7): TypedData Objects - Peter Zhu
In the previous article, you saw how to define and use Ruby classes and modules through the C API. However, you might have noticed that for pretty much every operation, we needed to call into Ruby (e.g. reading and writing instance variables, call...

