Category Archives: C

rb_iterate replaced by rb_block_call API between Ruby 1.8 and 1.9

You may have noticed that some Ruby libraries using C extensions were suddenly having core dumps when compiled using Ruby 1.9, whereas compiling with Ruby 1.8 got no problems. A good culprit might be the usage of rb_iterate method in … Continue reading

C, Howto, Ruby , , , , , , , , , , ,

The Ruby C API – Basics

In my 2 previous posts, we saw how to write C extensions, and how to package them. Now time has come to see a little bit of the Ruby C API. This post will deal with the basics, next ones … Continue reading

C, Howto, Ruby , , , , , , , , , , , , , , , , , , , , , , , ,

Packaging Ruby C extensions in nice gems

In the first part of this series on Ruby and C, we’ve seen how easy it is to write a C extension and use it in Ruby environment. However, in real world problems, a Ruby library will have several C … Continue reading

C, Howto, New gem, Ruby , , , , , , , ,

How to write C extensions easily in Ruby

Lots of Ruby libraries suffer from performance. It is in fact one of the biggest criticism that is being made to Ruby. There are lots of ways to improve Ruby’s performance: use latest Ruby version, use JRuby, use Ruby Entreprise … Continue reading

C, Howto, Ruby , , , , , , , , , ,